diff --git a/sdk/core/src/pageable.rs b/sdk/core/src/pageable.rs index f8ab069c7d..f9eb43fc91 100644 --- a/sdk/core/src/pageable.rs +++ b/sdk/core/src/pageable.rs @@ -42,10 +42,12 @@ where r#try!(request.await) } State::Continuation(token) => { - let request = make_request(Some(Continuation::new(token))); + let request = make_request(Some(token)); r#try!(request.await) } - State::Done => return None, + State::Done => { + return None; + } }; let next_state = response @@ -82,12 +84,12 @@ impl std::fmt::Debug for Pageable { /// A type that can yield an optional continuation token pub trait Continuable { - fn continuation(&self) -> Option; + fn continuation(&self) -> Option; } #[derive(Debug, Clone, PartialEq)] enum State { Init, - Continuation(String), + Continuation(Continuation), Done, } diff --git a/sdk/core/src/request_options/continuation.rs b/sdk/core/src/request_options/continuation.rs index 518d8ad0ad..9ae2404c4c 100644 --- a/sdk/core/src/request_options/continuation.rs +++ b/sdk/core/src/request_options/continuation.rs @@ -1,15 +1,50 @@ -use crate::{headers, Header}; +use crate::{headers, request_options::NextMarker, request_options::Range, Header}; +use std::ops::Range as StdRange; -#[derive(Debug, Clone)] -pub struct Continuation(String); +#[derive(Debug, Clone, PartialEq, Eq)] +pub enum Continuation { + String(String), + Range(StdRange), +} -impl Continuation { - pub fn new(c: String) -> Self { - Self(c) +impl From for Continuation { + fn from(next_marker: NextMarker) -> Self { + Continuation::String(next_marker.as_str().to_string()) + } +} + +impl From<&str> for Continuation { + fn from(value: &str) -> Self { + Continuation::String(value.to_string()) + } +} + +impl From for Continuation { + fn from(value: String) -> Self { + Continuation::String(value) } +} + +impl From> for Continuation { + fn from(value: StdRange) -> Self { + Continuation::Range(value) + } +} - pub fn into_raw(self) -> String { - self.0 +impl From for Continuation { + fn from(value: Range) -> Self { + Continuation::Range(value.start..value.end) + } +} + +impl Continuation { + pub fn as_string(&self) -> String { + match self { + Self::String(c) => c.clone(), + Self::Range(_) => { + panic!("unable to convert Continuation::Range to string") + } + } } } @@ -19,6 +54,6 @@ impl Header for Continuation { } fn value(&self) -> headers::HeaderValue { - self.0.to_owned().into() + self.as_string().into() } } diff --git a/sdk/core/src/request_options/next_marker.rs b/sdk/core/src/request_options/next_marker.rs index cbffd9fda5..4d2d903dd3 100644 --- a/sdk/core/src/request_options/next_marker.rs +++ b/sdk/core/src/request_options/next_marker.rs @@ -48,7 +48,7 @@ impl AppendToUrlQuery for NextMarker { impl From for NextMarker { fn from(next_marker: Continuation) -> Self { - Self::new(next_marker.into_raw()) + Self::new(next_marker.as_string()) } } diff --git a/sdk/data_cosmos/src/operations/list_attachments.rs b/sdk/data_cosmos/src/operations/list_attachments.rs index e92d93abc1..6903e42707 100644 --- a/sdk/data_cosmos/src/operations/list_attachments.rs +++ b/sdk/data_cosmos/src/operations/list_attachments.rs @@ -160,7 +160,7 @@ impl ListAttachmentsResponse { } impl Continuable for ListAttachmentsResponse { - fn continuation(&self) -> Option { - self.continuation_token.clone() + fn continuation(&self) -> Option { + self.continuation_token.clone().map(Continuation::from) } } diff --git a/sdk/data_cosmos/src/operations/list_collections.rs b/sdk/data_cosmos/src/operations/list_collections.rs index 4161b1bb71..697c0e89fc 100644 --- a/sdk/data_cosmos/src/operations/list_collections.rs +++ b/sdk/data_cosmos/src/operations/list_collections.rs @@ -116,7 +116,7 @@ impl ListCollectionsResponse { } impl Continuable for ListCollectionsResponse { - fn continuation(&self) -> Option { - self.continuation_token.clone() + fn continuation(&self) -> Option { + self.continuation_token.clone().map(Continuation::from) } } diff --git a/sdk/data_cosmos/src/operations/list_databases.rs b/sdk/data_cosmos/src/operations/list_databases.rs index 780524c986..a9f23e3743 100644 --- a/sdk/data_cosmos/src/operations/list_databases.rs +++ b/sdk/data_cosmos/src/operations/list_databases.rs @@ -112,8 +112,8 @@ impl ListDatabasesResponse { } impl Continuable for ListDatabasesResponse { - fn continuation(&self) -> Option { - self.continuation_token.clone() + fn continuation(&self) -> Option { + self.continuation_token.clone().map(Continuation::from) } } diff --git a/sdk/data_cosmos/src/operations/list_documents.rs b/sdk/data_cosmos/src/operations/list_documents.rs index e361c5fec5..f2649eb34c 100644 --- a/sdk/data_cosmos/src/operations/list_documents.rs +++ b/sdk/data_cosmos/src/operations/list_documents.rs @@ -192,8 +192,8 @@ where } impl Continuable for ListDocumentsResponse { - fn continuation(&self) -> Option { - self.continuation_token.clone() + fn continuation(&self) -> Option { + self.continuation_token.clone().map(Continuation::from) } } diff --git a/sdk/data_cosmos/src/operations/list_permissions.rs b/sdk/data_cosmos/src/operations/list_permissions.rs index 16d6174819..937f37e275 100644 --- a/sdk/data_cosmos/src/operations/list_permissions.rs +++ b/sdk/data_cosmos/src/operations/list_permissions.rs @@ -107,7 +107,7 @@ impl ListPermissionsResponse { } impl Continuable for ListPermissionsResponse { - fn continuation(&self) -> Option { - self.continuation_token.clone() + fn continuation(&self) -> Option { + self.continuation_token.clone().map(Continuation::from) } } diff --git a/sdk/data_cosmos/src/operations/list_stored_procedures.rs b/sdk/data_cosmos/src/operations/list_stored_procedures.rs index 01759373aa..449847739f 100644 --- a/sdk/data_cosmos/src/operations/list_stored_procedures.rs +++ b/sdk/data_cosmos/src/operations/list_stored_procedures.rs @@ -113,7 +113,7 @@ impl ListStoredProceduresResponse { } impl Continuable for ListStoredProceduresResponse { - fn continuation(&self) -> Option { - self.continuation_token.clone() + fn continuation(&self) -> Option { + self.continuation_token.clone().map(Continuation::from) } } diff --git a/sdk/data_cosmos/src/operations/list_triggers.rs b/sdk/data_cosmos/src/operations/list_triggers.rs index 15a90aa5e4..c6b58fbc2d 100644 --- a/sdk/data_cosmos/src/operations/list_triggers.rs +++ b/sdk/data_cosmos/src/operations/list_triggers.rs @@ -149,7 +149,7 @@ impl ListTriggersResponse { } impl Continuable for ListTriggersResponse { - fn continuation(&self) -> Option { - self.continuation_token.clone() + fn continuation(&self) -> Option { + self.continuation_token.clone().map(Continuation::from) } } diff --git a/sdk/data_cosmos/src/operations/list_user_defined_functions.rs b/sdk/data_cosmos/src/operations/list_user_defined_functions.rs index 49f06e52a9..52ae1efe5f 100644 --- a/sdk/data_cosmos/src/operations/list_user_defined_functions.rs +++ b/sdk/data_cosmos/src/operations/list_user_defined_functions.rs @@ -153,7 +153,7 @@ impl ListUserDefinedFunctionsResponse { } impl Continuable for ListUserDefinedFunctionsResponse { - fn continuation(&self) -> Option { - self.continuation_token.clone() + fn continuation(&self) -> Option { + self.continuation_token.clone().map(Continuation::from) } } diff --git a/sdk/data_cosmos/src/operations/list_users.rs b/sdk/data_cosmos/src/operations/list_users.rs index 4bf3339744..4155399da1 100644 --- a/sdk/data_cosmos/src/operations/list_users.rs +++ b/sdk/data_cosmos/src/operations/list_users.rs @@ -119,7 +119,7 @@ impl IntoIterator for ListUsersResponse { } impl Continuable for ListUsersResponse { - fn continuation(&self) -> Option { - self.continuation_token.clone() + fn continuation(&self) -> Option { + self.continuation_token.clone().map(Continuation::from) } } diff --git a/sdk/data_cosmos/src/operations/query_documents.rs b/sdk/data_cosmos/src/operations/query_documents.rs index bcdbeb71ca..61173e989a 100644 --- a/sdk/data_cosmos/src/operations/query_documents.rs +++ b/sdk/data_cosmos/src/operations/query_documents.rs @@ -431,7 +431,7 @@ impl std::convert::TryFrom> for QueryDocumentsRespo } } impl Continuable for QueryDocumentsResponse { - fn continuation(&self) -> Option { - self.continuation_token.clone() + fn continuation(&self) -> Option { + self.continuation_token.clone().map(Continuation::from) } } diff --git a/sdk/iot_hub/src/service/requests/query_builder.rs b/sdk/iot_hub/src/service/requests/query_builder.rs index c8b492f8f6..bc4a8cc664 100644 --- a/sdk/iot_hub/src/service/requests/query_builder.rs +++ b/sdk/iot_hub/src/service/requests/query_builder.rs @@ -31,7 +31,7 @@ impl<'a> QueryBuilder<'a> { } azure_core::setters! { - continuation: String => Some(Continuation::new(continuation)), + continuation: String => Some(Continuation::String(continuation)), max_item_count: i32 => MaxItemCount::new(max_item_count), } diff --git a/sdk/storage_blobs/examples/blob_00.rs b/sdk/storage_blobs/examples/blob_00.rs index c88bb246ab..31b5d2a81e 100644 --- a/sdk/storage_blobs/examples/blob_00.rs +++ b/sdk/storage_blobs/examples/blob_00.rs @@ -37,7 +37,10 @@ async fn main() -> azure_core::Result<()> { // this is a single call that retrieves the first 1KB of the blob (or less if the blob is // smaller). The range(...) call is optional. - let response = Box::pin(blob_client.get().range(0u64..1024).stream(1024)) + let response = blob_client + .get() + .range(0u64..1024) + .into_stream() .next() .await .expect("stream failed")?; @@ -47,7 +50,7 @@ async fn main() -> azure_core::Result<()> { let mut complete_response = vec![]; // this is how you stream a blob. You can specify the range(...) value as above if necessary. // In this case we are retrieving the whole blob in 8KB chunks. - let mut stream = Box::pin(blob_client.get().stream(1024 * 8)); + let mut stream = blob_client.get().chunk_size(0x2000u64).into_stream(); while let Some(value) = stream.next().await { let data = value?.data; println!("received {:?} bytes", data.len()); diff --git a/sdk/storage_blobs/examples/blob_01.rs b/sdk/storage_blobs/examples/blob_01.rs index 7e86141439..0d828cded2 100644 --- a/sdk/storage_blobs/examples/blob_01.rs +++ b/sdk/storage_blobs/examples/blob_01.rs @@ -23,8 +23,10 @@ async fn main() -> azure_core::Result<()> { let container_client = storage_client.container_client(&container_name); let blob_client = container_client.blob_client("SorgeniaReorganizeRebuildIndexes.zip"); - // only get the first 8k chunk - let result = Box::pin(blob_client.get().stream(1024 * 8)) + // only get the first chunk + let result = blob_client + .get() + .into_stream() .next() .await .expect("stream failed")?; diff --git a/sdk/storage_blobs/examples/blob_range.rs b/sdk/storage_blobs/examples/blob_range.rs index ec7f15e45a..97d5694e07 100644 --- a/sdk/storage_blobs/examples/blob_range.rs +++ b/sdk/storage_blobs/examples/blob_range.rs @@ -41,7 +41,10 @@ async fn main() -> azure_core::Result<()> { assert_eq!(blob.len(), buf.len()); - let chunk0 = Box::pin(blob_client.get().range(0u64..1024).stream(1024)) + let chunk0 = blob_client + .get() + .range(0u64..1024) + .into_stream() .next() .await .expect("stream failed")?; @@ -50,7 +53,10 @@ async fn main() -> azure_core::Result<()> { assert_eq!(chunk0.data[i], 71); } - let chunk1 = Box::pin(blob_client.get().range(1024u64..1536).stream(1024)) + let chunk1 = blob_client + .get() + .range(1024u64..1536) + .into_stream() .next() .await .expect("stream failed")?; @@ -63,7 +69,11 @@ async fn main() -> azure_core::Result<()> { // this time, only download them in chunks of 10 bytes let mut chunk2 = vec![]; - let mut stream = Box::pin(blob_client.get().range(1536u64..3584).stream(10)); + let mut stream = blob_client + .get() + .range(1536u64..3584) + .chunk_size(10u64) + .into_stream(); while let Some(result) = stream.next().await { chunk2.extend(result?.data); } @@ -72,7 +82,7 @@ async fn main() -> azure_core::Result<()> { assert_eq!(chunk2[i], 73); } - let mut stream = Box::pin(blob_client.get().stream(512)); + let mut stream = blob_client.get().chunk_size(512u64).into_stream(); println!("\nStreaming"); let mut chunk: usize = 0; diff --git a/sdk/storage_blobs/examples/list_containers2.rs b/sdk/storage_blobs/examples/list_containers2.rs index e76196ddfd..4dfb5bc3f6 100644 --- a/sdk/storage_blobs/examples/list_containers2.rs +++ b/sdk/storage_blobs/examples/list_containers2.rs @@ -24,38 +24,22 @@ async fn main() -> azure_core::Result<()> { .storage_client(); let blob_service_client = storage_client.blob_service_client(); - let response = storage_client - .container_client("azuresdkforrust") - .list_blobs() - .into_stream() - .next() - .await - .expect("stream failed")?; - - println!("key response = {:#?}", response); - let response = blob_service_client .list_containers() .into_stream() .next() .await .expect("stream failed")?; - println!("key response = {:#?}", response); + println!("response = {:#?}", response); - // let's test a SAS token - // the code is identical - // once instantiated - let sas_token = "?sv=2019-12-12&ss=bfqt&srt=sco&sp=rwdlacupx&se=2020-12-05T20:20:58Z&st=2020-12-05T12:20:58Z&spr=https&sig=vxUuKjQW4%2FmB884f%2BdqCp4h3O%2BYuYgIJN8RVGHFVFpY%3D"; - let blob_service_client = - StorageAccountClient::new_sas_token(http_client.clone(), &account, sas_token)? - .blob_service_client(); - let response = blob_service_client - .list_containers() + let response = storage_client + .container_client("$logs") + .list_blobs() .into_stream() .next() .await .expect("stream failed")?; - println!("sas response = {:#?}", response); + println!("response = {:#?}", response); Ok(()) } diff --git a/sdk/storage_blobs/examples/list_containers_and_blobs.rs b/sdk/storage_blobs/examples/list_containers_and_blobs.rs index 27797894c6..3983c70232 100644 --- a/sdk/storage_blobs/examples/list_containers_and_blobs.rs +++ b/sdk/storage_blobs/examples/list_containers_and_blobs.rs @@ -4,21 +4,18 @@ use futures::StreamExt; #[tokio::main] async fn main() -> azure_core::Result<()> { - env_logger::init(); - // First we retrieve the account name, container and blob name from command line args - - let account = std::env::args() - .nth(1) - .expect("please specify the account name as first command line parameter"); - - let account_key = - std::env::var("STORAGE_ACCOUNT_KEY").expect("Set env variable STORAGE_ACCOUNT_KEY first!"); + // First we retrieve the account name and access key from environment variables. + let account = + std::env::var("STORAGE_ACCOUNT").expect("Set env variable STORAGE_ACCOUNT first!"); + let access_key = + std::env::var("STORAGE_ACCESS_KEY").expect("Set env variable STORAGE_ACCESS_KEY first!"); let http_client = azure_core::new_http_client(); - let storage_account_client = - StorageAccountClient::new_access_key(http_client, &account, &account_key); - let blob_service_client = storage_account_client.blob_service_client(); + let storage_client = + StorageAccountClient::new_access_key(http_client.clone(), &account, &access_key) + .storage_client(); + let blob_service_client = storage_client.blob_service_client(); let mut stream = blob_service_client.list_containers().into_stream(); @@ -27,7 +24,7 @@ async fn main() -> azure_core::Result<()> { for container in entry.containers { println!("container: {}", container.name); - let container_client = storage_account_client.container_client(container.name); + let container_client = storage_client.container_client(container.name); let mut blob_stream = container_client.list_blobs().into_stream(); while let Some(blob_entry) = blob_stream.next().await { diff --git a/sdk/storage_blobs/examples/stream_blob_00.rs b/sdk/storage_blobs/examples/stream_blob_00.rs index 325c71738a..cadc416b6c 100644 --- a/sdk/storage_blobs/examples/stream_blob_00.rs +++ b/sdk/storage_blobs/examples/stream_blob_00.rs @@ -2,7 +2,6 @@ use azure_core::error::{ErrorKind, ResultExt}; use azure_storage::core::prelude::*; use azure_storage_blobs::prelude::*; use futures::stream::StreamExt; -use std::{cell::RefCell, rc::Rc}; // This example shows how to stream data from a blob. We will create a simple blob first, the we // ask it back using streaming features of the future crate. In this simple example we just @@ -47,23 +46,17 @@ async fn main() -> azure_core::Result<()> { // http overhead will be less but it also means you will have to wait for more // time before receiving anything. In this example we use a very small chunk size // just to make sure to loop at least twice. - let mut stream = Box::pin(blob_client.get().stream(128)); + let mut stream = blob_client.get().chunk_size(128u64).into_stream(); - let result = Rc::new(RefCell::new(Vec::new())); + let mut result = vec![]; - { - let mut res_closure = result.borrow_mut(); - while let Some(value) = stream.next().await { - let mut value = value?.data.to_vec(); - println!("received {:?} bytes", value.len()); - res_closure.append(&mut value); - } + while let Some(value) = stream.next().await { + let value = value?.data; + println!("received {:?} bytes", value.len()); + result.extend(&value); } - let returned_string = { - let rlock = result.borrow(); - String::from_utf8(rlock.to_vec()).map_kind(ErrorKind::DataConversion)? - }; + let returned_string = { String::from_utf8(result).map_kind(ErrorKind::DataConversion)? }; // You can of course conctenate all the // pieces as shown below. diff --git a/sdk/storage_blobs/examples/stream_blob_01.rs b/sdk/storage_blobs/examples/stream_blob_01.rs index 9647207b2f..15b8c007b1 100644 --- a/sdk/storage_blobs/examples/stream_blob_01.rs +++ b/sdk/storage_blobs/examples/stream_blob_01.rs @@ -29,7 +29,7 @@ async fn main() -> azure_core::Result<()> { .container_client(&container_name) .blob_client(file_name); - let mut stream = Box::pin(blob_client.get().stream(1024)); + let mut stream = blob_client.get().into_stream(); while let Some(res) = stream.next().await { println!("{:?}", res.unwrap()); } diff --git a/sdk/storage_blobs/src/blob/operations/get_blob.rs b/sdk/storage_blobs/src/blob/operations/get_blob.rs index b351b693d6..dabe150a58 100644 --- a/sdk/storage_blobs/src/blob/operations/get_blob.rs +++ b/sdk/storage_blobs/src/blob/operations/get_blob.rs @@ -1,125 +1,83 @@ use crate::{blob::Blob, prelude::*}; use azure_core::{ - error::{ErrorKind, ResultExt}, - headers::{self, *}, + collect_pinned_stream, + error::{Error, ErrorKind, ResultExt}, + headers::*, prelude::*, - CollectedResponse, RequestId, + Context, Pageable, RequestId, Response as AzureResponse, }; use bytes::Bytes; use chrono::{DateTime, Utc}; -use futures::stream::Stream; -use std::{ - convert::{TryFrom, TryInto}, - str::FromStr, -}; +use std::str::FromStr; + +const DEFAULT_CHUNK_SIZE: u64 = 0x1000 * 0x1000; -#[derive(Debug, Clone, Copy)] -pub struct GetBlobBuilder<'a> { - blob_client: &'a BlobClient, +#[derive(Clone)] +pub struct GetBlobBuilder { + blob_client: BlobClient, range: Option, - blob_versioning: Option<&'a BlobVersioning>, - client_request_id: Option<&'a ClientRequestId>, + blob_versioning: Option, timeout: Option, lease_id: Option, + chunk_size: u64, + context: Context, } -impl<'a> GetBlobBuilder<'a> { - pub(crate) fn new(blob_client: &'a BlobClient) -> Self { +impl GetBlobBuilder { + pub(crate) fn new(blob_client: BlobClient) -> Self { Self { blob_client, blob_versioning: None, timeout: None, range: None, lease_id: None, - client_request_id: None, + chunk_size: DEFAULT_CHUNK_SIZE, + context: Context::new(), } } setters! { range: Range => Some(range), - blob_versioning: &'a BlobVersioning => Some(blob_versioning), - client_request_id: &'a ClientRequestId => Some(client_request_id), + chunk_size: u64 => chunk_size, + blob_versioning: BlobVersioning => Some(blob_versioning), timeout: Timeout => Some(timeout), lease_id: LeaseId => Some(lease_id), } - async fn execute(&self) -> azure_core::Result { - let mut url = self.blob_client.url_with_segments(None)?; - - self.blob_versioning.append_to_url_query(&mut url); - self.timeout.append_to_url_query(&mut url); - - let mut request = - self.blob_client - .prepare_request(url.as_str(), http::Method::GET, None)?; - if let Some(item) = &self.range { - for (name, value) in item.as_headers() { - request.insert_header(name, value); - } - } - request.add_optional_header_ref(&self.client_request_id); - request.add_optional_header(&self.lease_id); - - let response = self - .blob_client - .http_client() - .execute_request_check_status(&request) - .await?; - - (self.blob_client.blob_name(), response).try_into() - } - - pub fn stream( - self, - chunk_size: u64, - ) -> impl Stream> + 'a { - enum States { - Init, - Progress(Range), - End, - } - - // this can either be the range requested by the caller or the complete file. - let requested_range = self.range.unwrap_or_else(|| Range::new(0, u64::MAX)); - - futures::stream::unfold(States::Init, move |state| async move { - let mut remaining = match state { - States::Init => requested_range, - States::Progress(range) => range, - States::End => return None, - }; - - let range = if remaining.start + chunk_size > remaining.end { - Range::new(remaining.start, remaining.end) - } else { - Range::new(remaining.start, remaining.start + chunk_size) - }; - - let req = self.range(range); - - let response = match req.execute().await { - Ok(response) => response, - Err(err) => return Some((Err(err), States::End)), - }; - - // now that we know what the remote blob size is, let's update the - // boundary. We do this only if it's smaller than the requested size because the could - // have specified a smaller range. - remaining.end = match response.content_range { - None => requested_range.end, - Some(content_range) => { - std::cmp::min(requested_range.end, content_range.total_length()) + pub fn into_stream(self) -> Pageable { + let make_request = move |continuation: Option| { + let this = self.clone(); + let mut ctx = self.context.clone(); + async move { + let mut url = this.blob_client.url_with_segments(None)?; + + let range = match continuation { + Some(Continuation::String(_)) => { + panic!("unexpected contination type") + } + Some(Continuation::Range(range)) => range.into(), + None => initial_range(this.chunk_size, this.range), + }; + + this.blob_versioning.append_to_url_query(&mut url); + this.timeout.append_to_url_query(&mut url); + + let mut request = + this.blob_client + .prepare_request(url.as_str(), http::Method::GET, None)?; + + for (name, value) in range.as_headers() { + request.insert_header(name, value); } - }; - let next_state = if remaining.end > range.end { - States::Progress(Range::new(range.end, remaining.end)) - } else { - States::End - }; + request.add_optional_header(&this.lease_id); - Some((Ok(response), next_state)) - }) + let response = this.blob_client.send(&mut ctx, &mut request).await?; + + GetBlobResponse::try_from(this, response).await + } + }; + Pageable::new(make_request) } } @@ -129,16 +87,21 @@ pub struct GetBlobResponse { pub blob: Blob, pub data: Bytes, pub date: DateTime, - pub content_range: Option, + pub remaining_range: Option, } -impl TryFrom<(&str, CollectedResponse)> for GetBlobResponse { - type Error = crate::Error; - fn try_from((blob_name, response): (&str, CollectedResponse)) -> azure_core::Result { - let request_id = request_id_from_headers(response.headers())?; - let date = date_from_headers(response.headers())?; +impl GetBlobResponse { + async fn try_from( + request: GetBlobBuilder, + response: AzureResponse, + ) -> azure_core::Result { + let (_, headers, body) = response.deconstruct(); + let data = collect_pinned_stream(body).await?; - let content_range_header = response.headers().get(&headers::CONTENT_RANGE); + let request_id = request_id_from_headers(&headers)?; + let date = date_from_headers(&headers)?; + + let content_range_header = headers.get(&CONTENT_RANGE); let content_range = match content_range_header { Some(hv) => { Some(ContentRange::from_str(hv.as_str()).map_kind(ErrorKind::DataConversion)?) @@ -146,12 +109,127 @@ impl TryFrom<(&str, CollectedResponse)> for GetBlobResponse { None => None, }; - Ok(GetBlobResponse { + let remaining_range = remaining_range(request.chunk_size, request.range, content_range); + + Ok(Self { request_id, - blob: Blob::from_headers(blob_name, response.headers())?, - data: response.into_body(), + blob: Blob::from_headers(request.blob_client.blob_name(), &headers)?, + data, date, - content_range, + remaining_range, }) } } + +impl Continuable for GetBlobResponse { + fn continuation(&self) -> Option { + self.remaining_range.map(Continuation::from) + } +} + +// caclculate the first Range for use at the beginning of the Pageable. +fn initial_range(chunk_size: u64, request_range: Option) -> Range { + match request_range { + Some(range) => { + let len = std::cmp::min(range.len(), chunk_size); + Range::new(range.start, range.start + len) + } + None => Range::new(0, chunk_size), + } +} + +// After each request, calculate how much data is left to be read based on the +// requested chunk size, requested range, and Content-Range header from the response. +// +// The Content-Range response is authoritative for the current size of the blob, +// which we use that to determine the next chunk size. If the Content-Range is +// missing from the response, we assume the response had the entire blob. +// +// If the Content-Range indicates the response was at the end of the blob or +// user's requested slice, we return None to indicate the response is complete. +// +// The remaining range is calculated from immediately after the response until +// the end of the requested range or chunk size, which ever is smaller. +fn remaining_range( + chunk_size: u64, + base_range: Option, + content_range: Option, +) -> Option { + // if there was no content range in the response, assume the entire blob was + // returned. + let content_range = content_range?; + + // if the next byte is at or past the total length, then we're done. + if content_range.end() + 1 >= content_range.total_length() { + return None; + } + + // if the user didn't specify a range, assume the entire size + let requested_range = base_range.unwrap_or_else(|| Range::new(0, content_range.total_length())); + + // if the response said the end of the blob was downloaded, we're done + if content_range.end() >= requested_range.end { + return None; + } + + // if the user specified range is smaller than the blob, truncate the + // requested range. Note, we add + 1, as we don't need to re-fetch the last + // byte of the previous request. + let start = content_range.end() + 1; + let remaining_size = requested_range.end - start; + + let size = std::cmp::min(remaining_size, chunk_size); + + Some(Range::new(start, start + size)) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_initial_range() -> azure_core::Result<()> { + let result = initial_range(3, Some(Range::new(0, 10))); + let expected = Range::new(0, 3); + assert_eq!(result, expected); + + let result = initial_range(3, Some(Range::new(3, 10))); + let expected = Range::new(3, 6); + assert_eq!(result, expected); + + let result = initial_range(3, None); + let expected = Range::new(0, 3); + assert_eq!(result, expected); + Ok(()) + } + #[test] + fn test_remaining_range() -> azure_core::Result<()> { + let result = remaining_range(3, None, None); + assert!(result.is_none()); + + let result = remaining_range(3, Some(Range::new(0, 10)), None); + assert!(result.is_none()); + + let result = remaining_range( + 3, + Some(Range::new(0, 10)), + Some(ContentRange::new(0, 3, 10)), + ); + assert_eq!(result, Some(Range::new(4, 7))); + + let result = remaining_range( + 3, + Some(Range::new(0, 10)), + Some(ContentRange::new(0, 10, 10)), + ); + assert!(result.is_none()); + + let result = remaining_range(3, None, Some(ContentRange::new(0, 10, 10))); + assert!(result.is_none()); + + let result = remaining_range(3, None, Some(ContentRange::new(0, 10, 20))); + assert_eq!(result, Some(Range::new(11, 14))); + + Ok(()) + } +} diff --git a/sdk/storage_blobs/src/clients/blob_client.rs b/sdk/storage_blobs/src/clients/blob_client.rs index bf300c2b66..ba7610858f 100644 --- a/sdk/storage_blobs/src/clients/blob_client.rs +++ b/sdk/storage_blobs/src/clients/blob_client.rs @@ -2,7 +2,7 @@ use crate::{blob::operations::*, prelude::*, BA512Range}; use azure_core::{ error::{Error, ErrorKind, ResultExt}, prelude::*, - HttpClient, Request, Response, + Request, Response, }; use azure_storage::core::{ clients::StorageCredentials, @@ -46,13 +46,6 @@ impl BlobClient { &self.blob_name } - pub(crate) fn http_client(&self) -> &dyn HttpClient { - self.container_client - .storage_client() - .storage_account_client() - .http_client() - } - #[allow(dead_code)] pub(crate) fn storage_account_client(&self) -> &StorageAccountClient { self.container_client @@ -75,17 +68,23 @@ impl BlobClient { .map_kind(ErrorKind::DataConversion) } + // stream blob downloads + // + // By default, blobs are downloaded in 1MB chunks to reduce the impact of + // intermittent network issues while downloading large blobs. pub fn get(&self) -> GetBlobBuilder { - GetBlobBuilder::new(self) + GetBlobBuilder::new(self.clone()) } // helper function that returns the entire blob stream pub async fn get_content(&self) -> azure_core::Result> { let mut blob = Vec::new(); - let mut stream = Box::pin(self.get().stream(1024 * 8)); + // NOTE: this uses the default chunk size of 1MB, which enables the + // pipeline to handle intermitent connection failures with retry, rather + // than restarting the whole blob on a failure. + let mut stream = self.get().into_stream(); while let Some(value) = stream.next().await { let data = value?.data; - println!("received {:?} bytes", data.len()); blob.extend(&data); } Ok(blob) diff --git a/sdk/storage_blobs/src/container/operations/list_blobs.rs b/sdk/storage_blobs/src/container/operations/list_blobs.rs index ebeddad5ff..ef73476abd 100644 --- a/sdk/storage_blobs/src/container/operations/list_blobs.rs +++ b/sdk/storage_blobs/src/container/operations/list_blobs.rs @@ -73,7 +73,7 @@ impl ListBlobsBuilder { if let Some(continuation) = continuation { url.query_pairs_mut() - .append_pair("marker", &continuation.into_raw()); + .append_pair("marker", &continuation.as_string()); } this.prefix.append_to_url_query(&mut url); @@ -188,8 +188,8 @@ impl ListBlobsResponse { } impl Continuable for ListBlobsResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(Continuation::from) } } diff --git a/sdk/storage_blobs/src/container/operations/list_containers.rs b/sdk/storage_blobs/src/container/operations/list_containers.rs index e2ffa92cee..79b4e79a59 100644 --- a/sdk/storage_blobs/src/container/operations/list_containers.rs +++ b/sdk/storage_blobs/src/container/operations/list_containers.rs @@ -60,7 +60,7 @@ impl ListContainersBuilder { if let Some(continuation) = continuation { url.query_pairs_mut() - .append_pair("marker", &continuation.into_raw()); + .append_pair("marker", &continuation.as_string()); } if let Some(include) = match (this.include_metadata, this.include_deleted) { @@ -125,7 +125,7 @@ impl ListContainersResponse { } impl Continuable for ListContainersResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(Continuation::from) } } diff --git a/sdk/storage_blobs/tests/blob.rs b/sdk/storage_blobs/tests/blob.rs index e295544f71..904f87563e 100644 --- a/sdk/storage_blobs/tests/blob.rs +++ b/sdk/storage_blobs/tests/blob.rs @@ -21,22 +21,21 @@ use url::Url; use uuid::Uuid; #[tokio::test] -async fn create_and_delete_container() { - let name: &'static str = "azuresdkrustetoets"; +async fn create_and_delete_container() -> azure_core::Result<()> { + let container_name = format!("create-{}", Uuid::new_v4().to_string()); let storage_client = initialize().storage_client(); let blob_service = storage_client.blob_service_client(); - let container = storage_client.container_client(name); + let container = storage_client.container_client(&container_name); container .create() .public_access(PublicAccess::None) .into_future() - .await - .unwrap(); + .await?; // get acl without stored access policy list - let _result = container.get_acl().into_future().await.unwrap(); + let _result = container.get_acl().into_future().await?; // set stored acess policy list let dt_start = Utc::now().with_timezone(&FixedOffset::east(0)); @@ -50,11 +49,10 @@ async fn create_and_delete_container() { .set_acl(PublicAccess::None) .stored_access_policy_list(sapl.clone()) .into_future() - .await - .unwrap(); + .await?; // now we get back the acess policy list and compare to the one created - let result = container.get_acl().into_future().await.unwrap(); + let result = container.get_acl().into_future().await?; assert!(result.public_access == PublicAccess::None); // we cannot compare the returned result because Azure will @@ -70,22 +68,21 @@ async fn create_and_delete_container() { assert!(i1.permission == i2.permission); } - let res = container.get_properties().into_future().await.unwrap(); + let res = container.get_properties().into_future().await?; assert!(res.container.public_access == PublicAccess::None); let list = blob_service .list_containers() - .prefix(name) + .prefix(container_name.clone()) .into_stream() .next() .await - .unwrap() - .unwrap(); + .unwrap()?; let cont_list: Vec<&Container> = list .containers .deref() .into_iter() - .filter(|e| e.name == name) + .filter(|e| e.name == container_name) .collect(); if cont_list.len() != 1 { @@ -106,8 +103,9 @@ async fn create_and_delete_container() { .delete() .lease_id(lease_id) // must pass the lease here too .into_future() - .await - .unwrap(); + .await?; + + Ok(()) } #[tokio::test] @@ -266,14 +264,14 @@ async fn put_block_blob() { } #[tokio::test] -async fn copy_blob() { +async fn copy_blob() -> azure_core::Result<()> { let blob_name: &'static str = "copysrc"; - let container_name: &'static str = "rust-upload-test"; + let container_name = format!("copy-blob-{}", Uuid::new_v4().to_string()); let data = Bytes::from_static(b"abcdef"); let storage = initialize().storage_client(); let blob_service = storage.blob_service_client(); - let container = storage.container_client(container_name); + let container = storage.container_client(&container_name); let blob = container.blob_client(blob_name); if blob_service @@ -292,8 +290,7 @@ async fn copy_blob() { .create() .public_access(PublicAccess::None) .into_future() - .await - .unwrap(); + .await?; } // calculate md5 too! @@ -303,8 +300,7 @@ async fn copy_blob() { .content_type("text/plain") .hash(digest) .into_future() - .await - .unwrap(); + .await?; trace!("created {:?}", blob_name); @@ -318,7 +314,10 @@ async fn copy_blob() { )) .unwrap(); - cloned_blob.copy(url).into_future().await.unwrap(); + cloned_blob.copy(url).into_future().await?; + + container.delete().into_future().await?; + Ok(()) } async fn requires_send_future(fut: F) -> O @@ -329,14 +328,14 @@ where } #[tokio::test] -async fn put_block_blob_and_get_properties() { +async fn put_block_blob_and_get_properties() -> azure_core::Result<()> { let blob_name: &'static str = "properties"; - let container_name: &'static str = "rust-upload-test"; + let container_name = format!("properties-{}", Uuid::new_v4().to_string()); let data = Bytes::from_static(b"abcdef"); let storage = initialize().storage_client(); let blob_service = storage.blob_service_client(); - let container = storage.container_client(container_name); + let container = storage.container_client(&container_name); let blob = container.blob_client(blob_name); if blob_service @@ -376,6 +375,8 @@ async fn put_block_blob_and_get_properties() { assert_eq!(blob_properties.blob.properties.content_length, 6); let _ = requires_send_future(blob.get_properties().into_future()); + container.delete().into_future().await?; + Ok(()) } #[tokio::test] diff --git a/sdk/storage_blobs/tests/stream_blob00.rs b/sdk/storage_blobs/tests/stream_blob00.rs index 703a51b7c8..5169347eb4 100644 --- a/sdk/storage_blobs/tests/stream_blob00.rs +++ b/sdk/storage_blobs/tests/stream_blob00.rs @@ -1,19 +1,18 @@ #![cfg(all(test, feature = "test_e2e"))] -use azure_core::{ - error::{ErrorKind, ResultExt}, - prelude::*, -}; +use azure_core::error::{ErrorKind, ResultExt}; use azure_storage::core::prelude::*; use azure_storage_blobs::prelude::*; use futures::StreamExt; +use uuid::Uuid; #[tokio::test] async fn create_blob_and_stream_back() { + println!("once"); code().await.unwrap(); } async fn code() -> azure_core::Result<()> { - let container_name = "azuresdkforrust"; + let container_name = format!("create-{}", Uuid::new_v4().to_string()); let file_name = "azure_sdk_for_rust_stream_test.txt"; // First we retrieve the account name and access key from environment variables. @@ -27,7 +26,7 @@ async fn code() -> azure_core::Result<()> { let storage = StorageAccountClient::new_access_key(http_client.clone(), &account, &access_key) .storage_client(); let blob_service = storage.blob_service_client(); - let container = storage.container_client(container_name); + let container = storage.container_client(&container_name); let blob = container.blob_client(file_name); if blob_service @@ -41,6 +40,7 @@ async fn code() -> azure_core::Result<()> { .find(|x| x.name == container_name) .is_none() { + println!("create container"); container .create() .public_access(PublicAccess::None) @@ -49,6 +49,7 @@ async fn code() -> azure_core::Result<()> { } let string = "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"; + println!("putting block {}", string.len()); blob.put_block_blob(string) .content_type("text/plain") @@ -57,49 +58,24 @@ async fn code() -> azure_core::Result<()> { println!("{}/{} blob created!", container_name, file_name); - for dropped_suffix_len in &[3usize, 2, 1, 0] { - // this is how you stream data from azure blob. Notice that you have - // to specify the range requested. Also make sure to specify how big - // a chunk is going to be. Bigger chunks are of course more efficient as the - // http overhead will be less but it also means you will have to wait for more - // time before receiving anything. In this example we use an awkward value - // just to make the test worthwile. - let slice_range = 0..(string.len() - dropped_suffix_len); - let expected_string = &string[slice_range.clone()]; - let range: Range = slice_range.into(); - - let chunk_size = 8; - - let mut stream = Box::pin(blob.get().range(range).stream(chunk_size)); - - let result = std::rc::Rc::new(std::cell::RefCell::new(Vec::new())); - - { - let mut res_closure = result.borrow_mut(); - while let Some(value) = stream.next().await { - let mut value = value?.data.to_vec(); - assert!(value.len() as u64 <= chunk_size); - println!("received {:?} bytes", value.len()); - res_closure.append(&mut value); - } - } - - let returned_string = { - let rlock = result.borrow(); - String::from_utf8(rlock.to_vec()).map_kind(ErrorKind::DataConversion)? - }; - - println!( - "dropped_suffix_len == {} returned_string == {}", - dropped_suffix_len, returned_string - ); - - assert_eq!(expected_string, returned_string); + let mut stream = blob.get().chunk_size(5u64).into_stream(); + let mut result = vec![]; + while let Some(entry) = stream.next().await { + let entry = entry?; + println!("got {:?}", entry.data); + result.extend(&entry.data); } + let returned_string = { String::from_utf8(result).map_kind(ErrorKind::DataConversion)? }; + assert_eq!(string, returned_string); + // test streaming a blob smaller than the chunk size issue 239. - let mut stream = Box::pin(blob.get().stream(1024 * 8)); - while let Some(_value) = stream.next().await {} + let mut stream = blob.get().chunk_size(0xFFFFu64).into_stream(); + let first = stream.next().await.expect("first chunk")?; + let result = String::from_utf8(first.data.to_vec()).map_kind(ErrorKind::DataConversion)?; + assert_eq!(result, string); + + assert!(stream.next().await.is_none(), "second chunk should be None"); blob.delete() .delete_snapshots_method(DeleteSnapshotsMethod::Include) @@ -108,5 +84,6 @@ async fn code() -> azure_core::Result<()> { println!("{}/{} blob deleted!", container_name, file_name); + container.delete().into_future().await?; Ok(()) } diff --git a/sdk/storage_datalake/src/operations/file_systems_list.rs b/sdk/storage_datalake/src/operations/file_systems_list.rs index e28784ca5d..beb0663aec 100644 --- a/sdk/storage_datalake/src/operations/file_systems_list.rs +++ b/sdk/storage_datalake/src/operations/file_systems_list.rs @@ -106,8 +106,8 @@ impl ListFileSystemsResponse { } impl Continuable for ListFileSystemsResponse { - fn continuation(&self) -> Option { - self.next_marker.clone().map(|m| m.as_str().into()) + fn continuation(&self) -> Option { + self.next_marker.clone().map(Continuation::from) } } diff --git a/sdk/storage_datalake/src/operations/path_list.rs b/sdk/storage_datalake/src/operations/path_list.rs index 3376f8b8a5..c265f2dccc 100644 --- a/sdk/storage_datalake/src/operations/path_list.rs +++ b/sdk/storage_datalake/src/operations/path_list.rs @@ -112,8 +112,8 @@ impl ListPathsResponse { } impl Continuable for ListPathsResponse { - fn continuation(&self) -> Option { - self.continuation.clone().map(|m| m.as_str().into()) + fn continuation(&self) -> Option { + self.continuation.clone().map(Continuation::from) } } diff --git a/services/autorust/codegen/src/codegen_models.rs b/services/autorust/codegen/src/codegen_models.rs index f148aa0dac..a3983a119d 100644 --- a/services/autorust/codegen/src/codegen_models.rs +++ b/services/autorust/codegen/src/codegen_models.rs @@ -705,11 +705,11 @@ fn create_struct(cg: &CodeGen, schema: &SchemaGen, struct_name: &str, pageable: if *is_required { continuable = quote! { impl azure_core::Continuable for #struct_name_code { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.#field_name.is_empty() { None } else { - Some(self.#field_name.clone()) + Some(azure_core::prelude::Continuation::from(self.#field_name.clone())) } } } @@ -717,8 +717,8 @@ fn create_struct(cg: &CodeGen, schema: &SchemaGen, struct_name: &str, pageable: } else { continuable = quote! { impl azure_core::Continuable for #struct_name_code { - fn continuation(&self) -> Option { - self.#field_name.clone() + fn continuation(&self) -> Option { + self.#field_name.clone().map(azure_core::prelude::Continuation::from) } } }; @@ -730,7 +730,7 @@ fn create_struct(cg: &CodeGen, schema: &SchemaGen, struct_name: &str, pageable: // adding a Continuable that always returns None. continuable = quote! { impl azure_core::Continuable for #struct_name_code { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -744,7 +744,7 @@ fn create_struct(cg: &CodeGen, schema: &SchemaGen, struct_name: &str, pageable: // Handle that by // adding a Continuable that always returns None. continuable = quote! { impl azure_core::Continuable for #struct_name_code { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/autorust/codegen/src/codegen_operations.rs b/services/autorust/codegen/src/codegen_operations.rs index 5e2c507605..0f91363bda 100644 --- a/services/autorust/codegen/src/codegen_operations.rs +++ b/services/autorust/codegen/src/codegen_operations.rs @@ -597,7 +597,7 @@ fn create_operation_code(cg: &CodeGen, operation: &WebOperationGen) -> Result Option { + fn continuation(&self) -> Option { match self { #continuation_response } @@ -729,15 +729,18 @@ fn create_operation_code(cg: &CodeGen, operation: &WebOperationGen) -> Result { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; #new_request_code #stream_api_version let req_body = azure_core::EMPTY_BODY; req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { #new_request_code #ts_request_builder diff --git a/services/mgmt/activedirectory/src/package_2020_03/models.rs b/services/mgmt/activedirectory/src/package_2020_03/models.rs index 149a68b30f..5f5cf9c104 100644 --- a/services/mgmt/activedirectory/src/package_2020_03/models.rs +++ b/services/mgmt/activedirectory/src/package_2020_03/models.rs @@ -66,7 +66,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -112,8 +112,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -247,8 +247,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -376,8 +376,8 @@ pub struct PrivateLinkPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkPolicyListResult { diff --git a/services/mgmt/activedirectory/src/package_2020_03/operations.rs b/services/mgmt/activedirectory/src/package_2020_03/operations.rs index 8c740a70b9..9f32841a97 100644 --- a/services/mgmt/activedirectory/src/package_2020_03/operations.rs +++ b/services/mgmt/activedirectory/src/package_2020_03/operations.rs @@ -407,9 +407,9 @@ pub mod private_link_for_azure_ad { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -428,6 +428,9 @@ pub mod private_link_for_azure_ad { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -483,9 +486,9 @@ pub mod private_link_for_azure_ad { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -504,6 +507,9 @@ pub mod private_link_for_azure_ad { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -589,9 +595,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/microsoft.aadiam/privateLinkForAzureAd/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . policy_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -610,6 +616,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -774,9 +783,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/microsoft.aadiam/privateLinkForAzureAd/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . policy_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -795,6 +804,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/activedirectory/src/package_preview_2020_03/models.rs b/services/mgmt/activedirectory/src/package_preview_2020_03/models.rs index 9c8eaad16b..7478ccabce 100644 --- a/services/mgmt/activedirectory/src/package_preview_2020_03/models.rs +++ b/services/mgmt/activedirectory/src/package_preview_2020_03/models.rs @@ -66,7 +66,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -100,8 +100,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -170,8 +170,8 @@ pub struct PrivateLinkPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkPolicyListResult { diff --git a/services/mgmt/activedirectory/src/package_preview_2020_03/operations.rs b/services/mgmt/activedirectory/src/package_preview_2020_03/operations.rs index ff50f491e6..1b2f16bb33 100644 --- a/services/mgmt/activedirectory/src/package_preview_2020_03/operations.rs +++ b/services/mgmt/activedirectory/src/package_preview_2020_03/operations.rs @@ -404,9 +404,9 @@ pub mod private_link_for_azure_ad { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -425,6 +425,9 @@ pub mod private_link_for_azure_ad { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -480,9 +483,9 @@ pub mod private_link_for_azure_ad { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -501,6 +504,9 @@ pub mod private_link_for_azure_ad { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -586,9 +592,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/microsoft.aadiam/privateLinkForAzureAd/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . policy_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -607,6 +613,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/activedirectory/src/package_preview_2020_07/models.rs b/services/mgmt/activedirectory/src/package_preview_2020_07/models.rs index 39fb7d530b..bc7436900e 100644 --- a/services/mgmt/activedirectory/src/package_preview_2020_07/models.rs +++ b/services/mgmt/activedirectory/src/package_preview_2020_07/models.rs @@ -83,7 +83,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -157,8 +157,8 @@ pub struct AzureAdMetricsListResult { pub next_link: Option, } impl azure_core::Continuable for AzureAdMetricsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureAdMetricsListResult { diff --git a/services/mgmt/activedirectory/src/package_preview_2020_07/operations.rs b/services/mgmt/activedirectory/src/package_preview_2020_07/operations.rs index 72f4d0a9de..99378d8d6b 100644 --- a/services/mgmt/activedirectory/src/package_preview_2020_07/operations.rs +++ b/services/mgmt/activedirectory/src/package_preview_2020_07/operations.rs @@ -401,9 +401,9 @@ pub mod azure_ad_metrics { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -422,6 +422,9 @@ pub mod azure_ad_metrics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -477,9 +480,9 @@ pub mod azure_ad_metrics { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -498,6 +501,9 @@ pub mod azure_ad_metrics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/adhybridhealthservice/src/package_2014_01/models.rs b/services/mgmt/adhybridhealthservice/src/package_2014_01/models.rs index 441cdd7593..e75c10ea03 100644 --- a/services/mgmt/adhybridhealthservice/src/package_2014_01/models.rs +++ b/services/mgmt/adhybridhealthservice/src/package_2014_01/models.rs @@ -42,8 +42,8 @@ pub struct AddsConfiguration { pub continuation_token: Option, } impl azure_core::Continuable for AddsConfiguration { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddsConfiguration { @@ -193,8 +193,8 @@ pub struct AddsServiceMembers { pub continuation_token: Option, } impl azure_core::Continuable for AddsServiceMembers { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddsServiceMembers { @@ -424,7 +424,7 @@ pub struct AlertFeedbacks { pub value: Vec, } impl azure_core::Continuable for AlertFeedbacks { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -450,8 +450,8 @@ pub struct Alerts { pub continuation_token: Option, } impl azure_core::Continuable for Alerts { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Alerts { @@ -1023,7 +1023,7 @@ pub struct Connectors { pub value: Vec, } impl azure_core::Continuable for Connectors { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1058,7 +1058,7 @@ pub struct Credentials { pub value: Vec, } impl azure_core::Continuable for Credentials { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1075,7 +1075,7 @@ pub struct DataFreshnessDetails { pub value: Vec, } impl azure_core::Continuable for DataFreshnessDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1183,8 +1183,8 @@ pub struct Dimensions { pub continuation_token: Option, } impl azure_core::Continuable for Dimensions { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Dimensions { @@ -1236,7 +1236,7 @@ pub struct ErrorCounts { pub value: Vec, } impl azure_core::Continuable for ErrorCounts { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1277,7 +1277,7 @@ pub struct ErrorReportUsersEntries { pub value: Vec, } impl azure_core::Continuable for ErrorReportUsersEntries { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1480,8 +1480,8 @@ pub struct ExportStatuses { pub continuation_token: Option, } impl azure_core::Continuable for ExportStatuses { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExportStatuses { @@ -1569,7 +1569,7 @@ pub struct GlobalConfigurations { pub value: Vec, } impl azure_core::Continuable for GlobalConfigurations { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1735,8 +1735,8 @@ pub struct IpAddressAggregates { pub continuation_token: Option, } impl azure_core::Continuable for IpAddressAggregates { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IpAddressAggregates { @@ -1949,7 +1949,7 @@ pub struct Items { pub value: Vec, } impl azure_core::Continuable for Items { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2041,7 +2041,7 @@ pub struct MergedExportErrors { pub value: Vec, } impl azure_core::Continuable for MergedExportErrors { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2127,8 +2127,8 @@ pub struct MetricMetadataList { pub continuation_token: Option, } impl azure_core::Continuable for MetricMetadataList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetricMetadataList { @@ -2183,8 +2183,8 @@ pub struct Metrics { pub continuation_token: Option, } impl azure_core::Continuable for Metrics { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Metrics { @@ -2311,8 +2311,8 @@ pub struct OperationListResponse { pub continuation_token: Option, } impl azure_core::Continuable for OperationListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResponse { @@ -2490,7 +2490,7 @@ pub struct ReplicationDetailsList { pub next_link: Option, } impl azure_core::Continuable for ReplicationDetailsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2555,7 +2555,7 @@ pub struct ReplicationSummaryList { pub value: Vec, } impl azure_core::Continuable for ReplicationSummaryList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2611,7 +2611,7 @@ pub struct RiskyIpBlobUris { pub value: Vec, } impl azure_core::Continuable for RiskyIpBlobUris { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2858,8 +2858,8 @@ pub struct ServiceMembers { pub continuation_token: Option, } impl azure_core::Continuable for ServiceMembers { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceMembers { @@ -2973,8 +2973,8 @@ pub struct Services { pub continuation_token: Option, } impl azure_core::Continuable for Services { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Services { diff --git a/services/mgmt/adhybridhealthservice/src/package_2014_01/operations.rs b/services/mgmt/adhybridhealthservice/src/package_2014_01/operations.rs index 3159ce5bec..3f3377a226 100644 --- a/services/mgmt/adhybridhealthservice/src/package_2014_01/operations.rs +++ b/services/mgmt/adhybridhealthservice/src/package_2014_01/operations.rs @@ -317,9 +317,9 @@ pub mod adds_services { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -338,6 +338,9 @@ pub mod adds_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -653,9 +656,9 @@ pub mod adds_services { &this.group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -674,6 +677,9 @@ pub mod adds_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -731,9 +737,9 @@ pub mod adds_services { &this.group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -752,6 +758,9 @@ pub mod adds_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -815,9 +824,9 @@ pub mod adds_services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -836,6 +845,9 @@ pub mod adds_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1191,9 +1203,9 @@ pub mod adds_services { &this.service_member_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1212,6 +1224,9 @@ pub mod adds_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1295,9 +1310,9 @@ pub mod adds_services { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1316,6 +1331,9 @@ pub mod adds_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1417,9 +1435,9 @@ pub mod alerts { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1438,6 +1456,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1533,9 +1554,9 @@ pub mod configuration { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1547,6 +1568,9 @@ pub mod configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1756,9 +1780,9 @@ pub mod dimensions { &this.dimension ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1777,6 +1801,9 @@ pub mod dimensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1871,9 +1898,9 @@ pub mod adds_service_members { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1892,6 +1919,9 @@ pub mod adds_service_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2153,9 +2183,9 @@ pub mod ad_domain_service_members { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2174,6 +2204,9 @@ pub mod ad_domain_service_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2616,9 +2649,9 @@ pub mod adds_services_service_members { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2637,6 +2670,9 @@ pub mod adds_services_service_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2758,9 +2794,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2779,6 +2815,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3124,9 +3163,9 @@ pub mod services { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3145,6 +3184,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3276,9 +3318,9 @@ pub mod services { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3297,6 +3339,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3532,9 +3577,9 @@ pub mod services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3553,6 +3598,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3769,9 +3817,9 @@ pub mod services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3790,6 +3838,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3948,9 +3999,9 @@ pub mod services { &this.group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3969,6 +4020,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4026,9 +4080,9 @@ pub mod services { &this.group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4047,6 +4101,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4110,9 +4167,9 @@ pub mod services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4131,6 +4188,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4877,9 +4937,9 @@ pub mod service_members { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4898,6 +4958,9 @@ pub mod service_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5138,9 +5201,9 @@ pub mod service_members { &this.service_member_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5159,6 +5222,9 @@ pub mod service_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5433,9 +5499,9 @@ pub mod service_members { &this.service_member_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5454,6 +5520,9 @@ pub mod service_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5762,9 +5831,9 @@ pub mod list { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5783,6 +5852,9 @@ pub mod list { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/adp/src/package_2020_07_01_preview/models.rs b/services/mgmt/adp/src/package_2020_07_01_preview/models.rs index 6771049c0b..d071867113 100644 --- a/services/mgmt/adp/src/package_2020_07_01_preview/models.rs +++ b/services/mgmt/adp/src/package_2020_07_01_preview/models.rs @@ -36,8 +36,8 @@ pub struct AccountList { pub next_link: Option, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -216,8 +216,8 @@ pub struct DataPoolList { pub next_link: Option, } impl azure_core::Continuable for DataPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataPoolList { @@ -289,7 +289,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -357,8 +357,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/adp/src/package_2020_07_01_preview/operations.rs b/services/mgmt/adp/src/package_2020_07_01_preview/operations.rs index d16d9983d7..cce3ea0a21 100644 --- a/services/mgmt/adp/src/package_2020_07_01_preview/operations.rs +++ b/services/mgmt/adp/src/package_2020_07_01_preview/operations.rs @@ -109,9 +109,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -260,9 +263,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -281,6 +284,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -336,9 +342,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -357,6 +363,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -747,9 +756,9 @@ pub mod data_pools { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -768,6 +777,9 @@ pub mod data_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/adp/src/package_2021_02_01_preview/models.rs b/services/mgmt/adp/src/package_2021_02_01_preview/models.rs index c8fe174504..475d99cc37 100644 --- a/services/mgmt/adp/src/package_2021_02_01_preview/models.rs +++ b/services/mgmt/adp/src/package_2021_02_01_preview/models.rs @@ -91,8 +91,8 @@ pub struct AccountList { pub next_link: Option, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -355,8 +355,8 @@ pub struct DataPoolList { pub next_link: Option, } impl azure_core::Continuable for DataPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataPoolList { @@ -431,7 +431,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -499,8 +499,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/adp/src/package_2021_02_01_preview/operations.rs b/services/mgmt/adp/src/package_2021_02_01_preview/operations.rs index 337ca2b87c..d8a65aa0be 100644 --- a/services/mgmt/adp/src/package_2021_02_01_preview/operations.rs +++ b/services/mgmt/adp/src/package_2021_02_01_preview/operations.rs @@ -109,9 +109,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -321,9 +324,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -342,6 +345,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -397,9 +403,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -418,6 +424,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -808,9 +817,9 @@ pub mod data_pools { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -829,6 +838,9 @@ pub mod data_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/adp/src/package_2021_11_01_preview/models.rs b/services/mgmt/adp/src/package_2021_11_01_preview/models.rs index 1e6632d9d4..1eb216d93d 100644 --- a/services/mgmt/adp/src/package_2021_11_01_preview/models.rs +++ b/services/mgmt/adp/src/package_2021_11_01_preview/models.rs @@ -91,8 +91,8 @@ pub struct AccountList { pub next_link: Option, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -359,8 +359,8 @@ pub struct DataPoolList { pub next_link: Option, } impl azure_core::Continuable for DataPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataPoolList { @@ -449,7 +449,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -517,8 +517,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/adp/src/package_2021_11_01_preview/operations.rs b/services/mgmt/adp/src/package_2021_11_01_preview/operations.rs index 085856167d..d01938cde4 100644 --- a/services/mgmt/adp/src/package_2021_11_01_preview/operations.rs +++ b/services/mgmt/adp/src/package_2021_11_01_preview/operations.rs @@ -109,9 +109,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -321,9 +324,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -342,6 +345,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -397,9 +403,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -418,6 +424,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -808,9 +817,9 @@ pub mod data_pools { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -829,6 +838,9 @@ pub mod data_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/advisor/src/package_2017_03/models.rs b/services/mgmt/advisor/src/package_2017_03/models.rs index 0cb82e5937..ee024e8c73 100644 --- a/services/mgmt/advisor/src/package_2017_03/models.rs +++ b/services/mgmt/advisor/src/package_2017_03/models.rs @@ -51,8 +51,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -266,8 +266,8 @@ pub struct ResourceRecommendationBaseListResult { pub value: Vec, } impl azure_core::Continuable for ResourceRecommendationBaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceRecommendationBaseListResult { diff --git a/services/mgmt/advisor/src/package_2017_03/operations.rs b/services/mgmt/advisor/src/package_2017_03/operations.rs index e6a4b6336e..b574078b38 100644 --- a/services/mgmt/advisor/src/package_2017_03/operations.rs +++ b/services/mgmt/advisor/src/package_2017_03/operations.rs @@ -252,9 +252,9 @@ pub mod recommendations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -273,6 +273,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -390,9 +393,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Advisor/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -411,6 +414,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/advisor/src/package_2017_04/models.rs b/services/mgmt/advisor/src/package_2017_04/models.rs index c5a886833e..4f86bb34dd 100644 --- a/services/mgmt/advisor/src/package_2017_04/models.rs +++ b/services/mgmt/advisor/src/package_2017_04/models.rs @@ -69,8 +69,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -110,8 +110,8 @@ pub struct MetadataEntityListResult { pub next_link: Option, } impl azure_core::Continuable for MetadataEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataEntityListResult { @@ -202,8 +202,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -420,8 +420,8 @@ pub struct ResourceRecommendationBaseListResult { pub value: Vec, } impl azure_core::Continuable for ResourceRecommendationBaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceRecommendationBaseListResult { @@ -469,8 +469,8 @@ pub struct SuppressionContractListResult { pub value: Vec, } impl azure_core::Continuable for SuppressionContractListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SuppressionContractListResult { diff --git a/services/mgmt/advisor/src/package_2017_04/operations.rs b/services/mgmt/advisor/src/package_2017_04/operations.rs index 6f13abd0f3..23714644a3 100644 --- a/services/mgmt/advisor/src/package_2017_04/operations.rs +++ b/services/mgmt/advisor/src/package_2017_04/operations.rs @@ -168,9 +168,9 @@ pub mod recommendation_metadata { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Advisor/metadata", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -189,6 +189,9 @@ pub mod recommendation_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -293,9 +296,9 @@ pub mod configurations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -314,6 +317,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -662,9 +668,9 @@ pub mod recommendations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -683,6 +689,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -800,9 +809,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Advisor/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -821,6 +830,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1088,9 +1100,9 @@ pub mod suppressions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1109,6 +1121,9 @@ pub mod suppressions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/advisor/src/package_2020_01/models.rs b/services/mgmt/advisor/src/package_2020_01/models.rs index 98f65966c0..f4d80d0ccd 100644 --- a/services/mgmt/advisor/src/package_2020_01/models.rs +++ b/services/mgmt/advisor/src/package_2020_01/models.rs @@ -26,7 +26,7 @@ pub struct ArmErrorResponse { pub error: Option, } impl azure_core::Continuable for ArmErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -126,8 +126,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -234,8 +234,8 @@ pub struct MetadataEntityListResult { pub next_link: Option, } impl azure_core::Continuable for MetadataEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataEntityListResult { @@ -326,8 +326,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -592,8 +592,8 @@ pub struct ResourceRecommendationBaseListResult { pub value: Vec, } impl azure_core::Continuable for ResourceRecommendationBaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceRecommendationBaseListResult { @@ -641,8 +641,8 @@ pub struct SuppressionContractListResult { pub value: Vec, } impl azure_core::Continuable for SuppressionContractListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SuppressionContractListResult { diff --git a/services/mgmt/advisor/src/package_2020_01/operations.rs b/services/mgmt/advisor/src/package_2020_01/operations.rs index 505e0fa06e..7b9981dc46 100644 --- a/services/mgmt/advisor/src/package_2020_01/operations.rs +++ b/services/mgmt/advisor/src/package_2020_01/operations.rs @@ -168,9 +168,9 @@ pub mod recommendation_metadata { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Advisor/metadata", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -189,6 +189,9 @@ pub mod recommendation_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -297,9 +300,9 @@ pub mod configurations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -318,6 +321,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -678,9 +684,9 @@ pub mod recommendations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -699,6 +705,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -816,9 +825,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Advisor/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -837,6 +846,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1104,9 +1116,9 @@ pub mod suppressions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1125,6 +1137,9 @@ pub mod suppressions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/advisor/src/package_2020_07_preview/models.rs b/services/mgmt/advisor/src/package_2020_07_preview/models.rs index 1225b31c98..d2b098c785 100644 --- a/services/mgmt/advisor/src/package_2020_07_preview/models.rs +++ b/services/mgmt/advisor/src/package_2020_07_preview/models.rs @@ -77,8 +77,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { diff --git a/services/mgmt/advisor/src/package_2020_07_preview/operations.rs b/services/mgmt/advisor/src/package_2020_07_preview/operations.rs index c270ba0ecf..37ce9a963c 100644 --- a/services/mgmt/advisor/src/package_2020_07_preview/operations.rs +++ b/services/mgmt/advisor/src/package_2020_07_preview/operations.rs @@ -104,9 +104,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Advisor/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -125,6 +125,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/advisor/src/package_2022_02_preview/models.rs b/services/mgmt/advisor/src/package_2022_02_preview/models.rs index 8a3bfef9ed..182db55d52 100644 --- a/services/mgmt/advisor/src/package_2022_02_preview/models.rs +++ b/services/mgmt/advisor/src/package_2022_02_preview/models.rs @@ -26,7 +26,7 @@ pub struct ArmErrorResponse { pub error: Option, } impl azure_core::Continuable for ArmErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -171,8 +171,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { diff --git a/services/mgmt/advisor/src/package_2022_02_preview/operations.rs b/services/mgmt/advisor/src/package_2022_02_preview/operations.rs index d11a595822..dcc33b8366 100644 --- a/services/mgmt/advisor/src/package_2022_02_preview/operations.rs +++ b/services/mgmt/advisor/src/package_2022_02_preview/operations.rs @@ -101,9 +101,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Advisor/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -122,6 +122,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs b/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs index 87f5bdb746..858b4e73bf 100644 --- a/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs +++ b/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs @@ -148,7 +148,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -188,8 +188,8 @@ pub struct ExtensionListResponse { pub next_link: Option, } impl azure_core::Continuable for ExtensionListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionListResponse { @@ -270,8 +270,8 @@ pub struct FarmBeatsExtensionListResponse { pub next_link: Option, } impl azure_core::Continuable for FarmBeatsExtensionListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FarmBeatsExtensionListResponse { @@ -329,8 +329,8 @@ pub struct FarmBeatsListResponse { pub next_link: Option, } impl azure_core::Continuable for FarmBeatsListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FarmBeatsListResponse { @@ -544,8 +544,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/agrifood/src/package_2020_05_12_preview/operations.rs b/services/mgmt/agrifood/src/package_2020_05_12_preview/operations.rs index b842992f76..74b850ccc1 100644 --- a/services/mgmt/agrifood/src/package_2020_05_12_preview/operations.rs +++ b/services/mgmt/agrifood/src/package_2020_05_12_preview/operations.rs @@ -432,9 +432,9 @@ pub mod extensions { &this.farm_beats_resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -453,6 +453,9 @@ pub mod extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -567,9 +570,9 @@ pub mod farm_beats_extensions { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -588,6 +591,9 @@ pub mod farm_beats_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1025,9 +1031,9 @@ pub mod farm_beats_models { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1046,6 +1052,9 @@ pub mod farm_beats_models { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1119,9 +1128,9 @@ pub mod farm_beats_models { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1140,6 +1149,9 @@ pub mod farm_beats_models { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1273,9 +1285,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AgFoodPlatform/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1294,6 +1306,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/alertsmanagement/src/package_2019_06_preview/models.rs b/services/mgmt/alertsmanagement/src/package_2019_06_preview/models.rs index 4d9337e2e3..2f2f670fc8 100644 --- a/services/mgmt/alertsmanagement/src/package_2019_06_preview/models.rs +++ b/services/mgmt/alertsmanagement/src/package_2019_06_preview/models.rs @@ -196,8 +196,8 @@ pub struct ActionRulesList { pub value: Vec, } impl azure_core::Continuable for ActionRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActionRulesList { @@ -491,8 +491,8 @@ pub struct AlertRulesList { pub next_link: Option, } impl azure_core::Continuable for AlertRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRulesList { @@ -861,7 +861,7 @@ pub struct SmartDetectorErrorResponse { pub message: Option, } impl azure_core::Continuable for SmartDetectorErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1125,8 +1125,8 @@ pub struct AlertsList { pub value: Vec, } impl azure_core::Continuable for AlertsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertsList { @@ -1268,7 +1268,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1647,8 +1647,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -1905,8 +1905,8 @@ pub struct SmartGroupsList { pub value: Vec, } impl azure_core::Continuable for SmartGroupsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SmartGroupsList { diff --git a/services/mgmt/alertsmanagement/src/package_2019_06_preview/operations.rs b/services/mgmt/alertsmanagement/src/package_2019_06_preview/operations.rs index ec4fa9defb..a8dce70585 100644 --- a/services/mgmt/alertsmanagement/src/package_2019_06_preview/operations.rs +++ b/services/mgmt/alertsmanagement/src/package_2019_06_preview/operations.rs @@ -263,9 +263,9 @@ pub mod action_rules { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -284,6 +284,9 @@ pub mod action_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -423,9 +426,9 @@ pub mod action_rules { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -444,6 +447,9 @@ pub mod action_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -750,9 +756,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -771,6 +777,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1040,9 +1049,9 @@ pub mod alerts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1061,6 +1070,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1588,9 +1600,9 @@ pub mod smart_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1609,6 +1621,9 @@ pub mod smart_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1940,9 +1955,9 @@ pub mod smart_detector_alert_rules { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1961,6 +1976,9 @@ pub mod smart_detector_alert_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2026,9 +2044,9 @@ pub mod smart_detector_alert_rules { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2047,6 +2065,9 @@ pub mod smart_detector_alert_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/alertsmanagement/src/package_2021_08/models.rs b/services/mgmt/alertsmanagement/src/package_2021_08/models.rs index 12180a5d85..f5b4dc882c 100644 --- a/services/mgmt/alertsmanagement/src/package_2021_08/models.rs +++ b/services/mgmt/alertsmanagement/src/package_2021_08/models.rs @@ -134,8 +134,8 @@ pub struct AlertProcessingRulesList { pub value: Vec, } impl azure_core::Continuable for AlertProcessingRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertProcessingRulesList { @@ -678,8 +678,8 @@ pub struct AlertsList { pub value: Vec, } impl azure_core::Continuable for AlertsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertsList { @@ -821,7 +821,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1200,8 +1200,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -1458,8 +1458,8 @@ pub struct SmartGroupsList { pub value: Vec, } impl azure_core::Continuable for SmartGroupsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SmartGroupsList { diff --git a/services/mgmt/alertsmanagement/src/package_2021_08/operations.rs b/services/mgmt/alertsmanagement/src/package_2021_08/operations.rs index b4d17c78b9..259adef4e6 100644 --- a/services/mgmt/alertsmanagement/src/package_2021_08/operations.rs +++ b/services/mgmt/alertsmanagement/src/package_2021_08/operations.rs @@ -184,9 +184,9 @@ pub mod alert_processing_rules { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -205,6 +205,9 @@ pub mod alert_processing_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -260,9 +263,9 @@ pub mod alert_processing_rules { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -281,6 +284,9 @@ pub mod alert_processing_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -563,9 +569,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -584,6 +590,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -853,9 +862,9 @@ pub mod alerts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -874,6 +883,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1401,9 +1413,9 @@ pub mod smart_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1422,6 +1434,9 @@ pub mod smart_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/alertsmanagement/src/package_preview_2019_05/models.rs b/services/mgmt/alertsmanagement/src/package_preview_2019_05/models.rs index 8fb16b4f2c..c8eb21553c 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2019_05/models.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2019_05/models.rs @@ -174,8 +174,8 @@ pub struct ActionRulesList { pub value: Vec, } impl azure_core::Continuable for ActionRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActionRulesList { @@ -719,8 +719,8 @@ pub struct AlertsList { pub value: Vec, } impl azure_core::Continuable for AlertsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertsList { @@ -862,7 +862,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1241,8 +1241,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -1499,8 +1499,8 @@ pub struct SmartGroupsList { pub value: Vec, } impl azure_core::Continuable for SmartGroupsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SmartGroupsList { diff --git a/services/mgmt/alertsmanagement/src/package_preview_2019_05/operations.rs b/services/mgmt/alertsmanagement/src/package_preview_2019_05/operations.rs index e1a9004ab7..2ecc5902b6 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2019_05/operations.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2019_05/operations.rs @@ -260,9 +260,9 @@ pub mod action_rules { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -281,6 +281,9 @@ pub mod action_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -420,9 +423,9 @@ pub mod action_rules { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -441,6 +444,9 @@ pub mod action_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -747,9 +753,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -768,6 +774,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1037,9 +1046,9 @@ pub mod alerts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1058,6 +1067,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1585,9 +1597,9 @@ pub mod smart_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1606,6 +1618,9 @@ pub mod smart_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/alertsmanagement/src/package_preview_2021_01/models.rs b/services/mgmt/alertsmanagement/src/package_preview_2021_01/models.rs index cd2753508b..26b6413f43 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2021_01/models.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2021_01/models.rs @@ -234,8 +234,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { diff --git a/services/mgmt/alertsmanagement/src/package_preview_2021_01/operations.rs b/services/mgmt/alertsmanagement/src/package_preview_2021_01/operations.rs index 9ef4bd6a36..79e5f747ab 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2021_01/operations.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2021_01/operations.rs @@ -106,9 +106,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -127,6 +127,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs b/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs index 12180a5d85..f5b4dc882c 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs @@ -134,8 +134,8 @@ pub struct AlertProcessingRulesList { pub value: Vec, } impl azure_core::Continuable for AlertProcessingRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertProcessingRulesList { @@ -678,8 +678,8 @@ pub struct AlertsList { pub value: Vec, } impl azure_core::Continuable for AlertsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertsList { @@ -821,7 +821,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1200,8 +1200,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -1458,8 +1458,8 @@ pub struct SmartGroupsList { pub value: Vec, } impl azure_core::Continuable for SmartGroupsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SmartGroupsList { diff --git a/services/mgmt/alertsmanagement/src/package_preview_2021_08/operations.rs b/services/mgmt/alertsmanagement/src/package_preview_2021_08/operations.rs index 0bc2790084..fcbedd0034 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2021_08/operations.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2021_08/operations.rs @@ -184,9 +184,9 @@ pub mod alert_processing_rules { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -205,6 +205,9 @@ pub mod alert_processing_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -260,9 +263,9 @@ pub mod alert_processing_rules { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -281,6 +284,9 @@ pub mod alert_processing_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -563,9 +569,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -584,6 +590,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -853,9 +862,9 @@ pub mod alerts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -874,6 +883,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1401,9 +1413,9 @@ pub mod smart_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1422,6 +1434,9 @@ pub mod smart_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/analysisservices/src/package_2016_05/models.rs b/services/mgmt/analysisservices/src/package_2016_05/models.rs index 3c0784c764..5b94c1923f 100644 --- a/services/mgmt/analysisservices/src/package_2016_05/models.rs +++ b/services/mgmt/analysisservices/src/package_2016_05/models.rs @@ -217,7 +217,7 @@ pub struct AnalysisServicesServers { pub value: Vec, } impl azure_core::Continuable for AnalysisServicesServers { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -333,7 +333,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -491,8 +491,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -535,7 +535,7 @@ pub struct OperationsErrorResponse { pub error: Option, } impl azure_core::Continuable for OperationsErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/analysisservices/src/package_2016_05/operations.rs b/services/mgmt/analysisservices/src/package_2016_05/operations.rs index d2d5088643..1ad22d19e6 100644 --- a/services/mgmt/analysisservices/src/package_2016_05/operations.rs +++ b/services/mgmt/analysisservices/src/package_2016_05/operations.rs @@ -989,9 +989,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1010,6 +1010,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/analysisservices/src/package_2017_07/models.rs b/services/mgmt/analysisservices/src/package_2017_07/models.rs index 92c2e997e6..878b363465 100644 --- a/services/mgmt/analysisservices/src/package_2017_07/models.rs +++ b/services/mgmt/analysisservices/src/package_2017_07/models.rs @@ -216,7 +216,7 @@ pub struct AnalysisServicesServers { pub value: Vec, } impl azure_core::Continuable for AnalysisServicesServers { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -305,7 +305,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -547,8 +547,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -591,7 +591,7 @@ pub struct OperationsErrorResponse { pub error: Option, } impl azure_core::Continuable for OperationsErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/analysisservices/src/package_2017_07/operations.rs b/services/mgmt/analysisservices/src/package_2017_07/operations.rs index 8add68e226..21c4313204 100644 --- a/services/mgmt/analysisservices/src/package_2017_07/operations.rs +++ b/services/mgmt/analysisservices/src/package_2017_07/operations.rs @@ -1109,9 +1109,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1130,6 +1130,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/analysisservices/src/package_2017_08_beta/models.rs b/services/mgmt/analysisservices/src/package_2017_08_beta/models.rs index fcc89c1faa..f0ae00072c 100644 --- a/services/mgmt/analysisservices/src/package_2017_08_beta/models.rs +++ b/services/mgmt/analysisservices/src/package_2017_08_beta/models.rs @@ -236,7 +236,7 @@ pub struct AnalysisServicesServers { pub value: Vec, } impl azure_core::Continuable for AnalysisServicesServers { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -325,7 +325,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -504,8 +504,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/analysisservices/src/package_2017_08_beta/operations.rs b/services/mgmt/analysisservices/src/package_2017_08_beta/operations.rs index 60ed83e881..1db458a1c4 100644 --- a/services/mgmt/analysisservices/src/package_2017_08_beta/operations.rs +++ b/services/mgmt/analysisservices/src/package_2017_08_beta/operations.rs @@ -1109,9 +1109,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1130,6 +1130,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/apimanagement/src/package_preview_2019_12/models.rs b/services/mgmt/apimanagement/src/package_preview_2019_12/models.rs index 52e5e7bde0..1afd5d5ffd 100644 --- a/services/mgmt/apimanagement/src/package_preview_2019_12/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2019_12/models.rs @@ -96,8 +96,8 @@ pub struct ApiCollection { pub next_link: Option, } impl azure_core::Continuable for ApiCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiCollection { @@ -765,8 +765,8 @@ pub struct ApiManagementServiceListResult { pub next_link: Option, } impl azure_core::Continuable for ApiManagementServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiManagementServiceListResult { @@ -963,8 +963,8 @@ pub struct ApiReleaseCollection { pub next_link: Option, } impl azure_core::Continuable for ApiReleaseCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiReleaseCollection { @@ -1018,8 +1018,8 @@ pub struct ApiRevisionCollection { pub next_link: Option, } impl azure_core::Continuable for ApiRevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiRevisionCollection { @@ -1142,8 +1142,8 @@ pub struct ApiVersionSetCollection { pub next_link: Option, } impl azure_core::Continuable for ApiVersionSetCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiVersionSetCollection { @@ -1442,8 +1442,8 @@ pub struct AuthorizationServerCollection { pub next_link: Option, } impl azure_core::Continuable for AuthorizationServerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationServerCollection { @@ -1644,8 +1644,8 @@ pub struct BackendCollection { pub next_link: Option, } impl azure_core::Continuable for BackendCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackendCollection { @@ -1988,8 +1988,8 @@ pub struct CacheCollection { pub next_link: Option, } impl azure_core::Continuable for CacheCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CacheCollection { @@ -2074,8 +2074,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -2318,8 +2318,8 @@ pub struct DiagnosticCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticCollection { @@ -2515,8 +2515,8 @@ pub struct EmailTemplateCollection { pub next_link: Option, } impl azure_core::Continuable for EmailTemplateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EmailTemplateCollection { @@ -2650,7 +2650,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2688,8 +2688,8 @@ pub struct GatewayCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCollection { @@ -2737,8 +2737,8 @@ pub struct GatewayHostnameConfigurationCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayHostnameConfigurationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayHostnameConfigurationCollection { @@ -2881,8 +2881,8 @@ pub struct GroupCollection { pub next_link: Option, } impl azure_core::Continuable for GroupCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GroupCollection { @@ -3315,8 +3315,8 @@ pub struct IdentityProviderList { pub next_link: Option, } impl azure_core::Continuable for IdentityProviderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IdentityProviderList { @@ -3364,8 +3364,8 @@ pub struct IssueAttachmentCollection { pub next_link: Option, } impl azure_core::Continuable for IssueAttachmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueAttachmentCollection { @@ -3418,8 +3418,8 @@ pub struct IssueCollection { pub next_link: Option, } impl azure_core::Continuable for IssueCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueCollection { @@ -3438,8 +3438,8 @@ pub struct IssueCommentCollection { pub next_link: Option, } impl azure_core::Continuable for IssueCommentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueCommentCollection { @@ -3634,8 +3634,8 @@ pub struct LoggerCollection { pub next_link: Option, } impl azure_core::Continuable for LoggerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoggerCollection { @@ -3814,8 +3814,8 @@ pub struct NamedValueCollection { pub next_link: Option, } impl azure_core::Continuable for NamedValueCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NamedValueCollection { @@ -3980,8 +3980,8 @@ pub struct NotificationCollection { pub next_link: Option, } impl azure_core::Continuable for NotificationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationCollection { @@ -4065,8 +4065,8 @@ pub struct OpenIdConnectProviderCollection { pub next_link: Option, } impl azure_core::Continuable for OpenIdConnectProviderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OpenIdConnectProviderCollection { @@ -4210,8 +4210,8 @@ pub struct OperationCollection { pub next_link: Option, } impl azure_core::Continuable for OperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationCollection { @@ -4292,8 +4292,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -4726,8 +4726,8 @@ pub struct ProductCollection { pub next_link: Option, } impl azure_core::Continuable for ProductCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductCollection { @@ -5066,8 +5066,8 @@ pub struct RegionListResult { pub next_link: Option, } impl azure_core::Continuable for RegionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegionListResult { @@ -5101,8 +5101,8 @@ pub struct ReportCollection { pub next_link: Option, } impl azure_core::Continuable for ReportCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReportCollection { @@ -5259,7 +5259,7 @@ pub struct RequestReportCollection { pub count: Option, } impl azure_core::Continuable for RequestReportCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5526,8 +5526,8 @@ pub struct ResourceSkuResults { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuResults { @@ -5652,8 +5652,8 @@ pub struct SchemaCollection { pub next_link: Option, } impl azure_core::Continuable for SchemaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SchemaCollection { @@ -5719,8 +5719,8 @@ pub struct SubscriptionCollection { pub next_link: Option, } impl azure_core::Continuable for SubscriptionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionCollection { @@ -6009,8 +6009,8 @@ pub struct TagCollection { pub next_link: Option, } impl azure_core::Continuable for TagCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagCollection { @@ -6085,8 +6085,8 @@ pub struct TagDescriptionCollection { pub next_link: Option, } impl azure_core::Continuable for TagDescriptionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagDescriptionCollection { @@ -6148,8 +6148,8 @@ pub struct TagResourceCollection { pub next_link: Option, } impl azure_core::Continuable for TagResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagResourceCollection { @@ -6269,8 +6269,8 @@ pub struct UserCollection { pub next_link: Option, } impl azure_core::Continuable for UserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserCollection { @@ -6529,8 +6529,8 @@ pub struct UserIdentityCollection { pub next_link: Option, } impl azure_core::Continuable for UserIdentityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserIdentityCollection { diff --git a/services/mgmt/apimanagement/src/package_preview_2019_12/operations.rs b/services/mgmt/apimanagement/src/package_preview_2019_12/operations.rs index cf810e05ab..7ff05af3fc 100644 --- a/services/mgmt/apimanagement/src/package_preview_2019_12/operations.rs +++ b/services/mgmt/apimanagement/src/package_preview_2019_12/operations.rs @@ -520,9 +520,9 @@ pub mod api { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -541,6 +541,9 @@ pub mod api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -936,9 +939,9 @@ pub mod api { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -957,6 +960,9 @@ pub mod api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1069,9 +1075,9 @@ pub mod api_revision { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1090,6 +1096,9 @@ pub mod api_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1291,9 +1300,9 @@ pub mod api_release { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1312,6 +1321,9 @@ pub mod api_release { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1817,9 +1829,9 @@ pub mod api_operation { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1838,6 +1850,9 @@ pub mod api_operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2974,9 +2989,9 @@ pub mod tag { &this.operation_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2995,6 +3010,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3280,9 +3298,9 @@ pub mod tag { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3301,6 +3319,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3614,9 +3635,9 @@ pub mod tag { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3635,6 +3656,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3951,9 +3975,9 @@ pub mod tag { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3972,6 +3996,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4370,9 +4397,9 @@ pub mod api_product { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4391,6 +4418,9 @@ pub mod api_product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4971,9 +5001,9 @@ pub mod api_schema { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4992,6 +5022,9 @@ pub mod api_schema { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5446,9 +5479,9 @@ pub mod api_diagnostic { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5467,6 +5500,9 @@ pub mod api_diagnostic { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5973,9 +6009,9 @@ pub mod api_issue { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5994,6 +6030,9 @@ pub mod api_issue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6499,9 +6538,9 @@ pub mod api_issue_comment { &this.issue_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6520,6 +6559,9 @@ pub mod api_issue_comment { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6918,9 +6960,9 @@ pub mod api_issue_attachment { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/apis/{}/issues/{}/attachments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . api_id , & this . issue_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6939,6 +6981,9 @@ pub mod api_issue_attachment { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7333,9 +7378,9 @@ pub mod api_tag_description { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7354,6 +7399,9 @@ pub mod api_tag_description { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7709,9 +7757,9 @@ pub mod operation { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7730,6 +7778,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7922,9 +7973,9 @@ pub mod api_version_set { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7943,6 +7994,9 @@ pub mod api_version_set { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8433,9 +8487,9 @@ pub mod authorization_server { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8454,6 +8508,9 @@ pub mod authorization_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8993,9 +9050,9 @@ pub mod backend { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9014,6 +9071,9 @@ pub mod backend { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9543,9 +9603,9 @@ pub mod cache { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9564,6 +9624,9 @@ pub mod cache { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10017,9 +10080,9 @@ pub mod certificate { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10038,6 +10101,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10339,9 +10405,9 @@ pub mod api_management_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ApiManagement/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10360,6 +10426,9 @@ pub mod api_management_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10437,9 +10506,9 @@ pub mod api_management_service_skus { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10458,6 +10527,9 @@ pub mod api_management_service_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11018,9 +11090,9 @@ pub mod api_management_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11039,6 +11111,9 @@ pub mod api_management_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11092,9 +11167,9 @@ pub mod api_management_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11113,6 +11188,9 @@ pub mod api_management_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11456,9 +11534,9 @@ pub mod diagnostic { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11477,6 +11555,9 @@ pub mod diagnostic { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11952,9 +12033,9 @@ pub mod email_template { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11973,6 +12054,9 @@ pub mod email_template { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12491,9 +12575,9 @@ pub mod gateway { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12512,6 +12596,9 @@ pub mod gateway { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13124,9 +13211,9 @@ pub mod gateway_hostname_configuration { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/gateways/{}/hostnameConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . gateway_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13145,6 +13232,9 @@ pub mod gateway_hostname_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13495,9 +13585,9 @@ pub mod gateway_api { &this.gateway_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13516,6 +13606,9 @@ pub mod gateway_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13884,9 +13977,9 @@ pub mod group { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13905,6 +13998,9 @@ pub mod group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14351,9 +14447,9 @@ pub mod group_user { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14372,6 +14468,9 @@ pub mod group_user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14730,9 +14829,9 @@ pub mod identity_provider { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14751,6 +14850,9 @@ pub mod identity_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15196,9 +15298,9 @@ pub mod issue { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15217,6 +15319,9 @@ pub mod issue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15459,9 +15564,9 @@ pub mod logger { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15480,6 +15585,9 @@ pub mod logger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16044,9 +16152,9 @@ pub mod notification { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16065,6 +16173,9 @@ pub mod notification { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16918,9 +17029,9 @@ pub mod open_id_connect_provider { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16939,6 +17050,9 @@ pub mod open_id_connect_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18848,9 +18962,9 @@ pub mod product { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18869,6 +18983,9 @@ pub mod product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19261,9 +19378,9 @@ pub mod product { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19282,6 +19399,9 @@ pub mod product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19445,9 +19565,9 @@ pub mod product_api { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19466,6 +19586,9 @@ pub mod product_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19798,9 +19921,9 @@ pub mod product_group { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19819,6 +19942,9 @@ pub mod product_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20100,9 +20226,9 @@ pub mod product_subscriptions { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20121,6 +20247,9 @@ pub mod product_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20722,9 +20851,9 @@ pub mod named_value { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20743,6 +20872,9 @@ pub mod named_value { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21482,9 +21614,9 @@ pub mod region { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21503,6 +21635,9 @@ pub mod region { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21726,9 +21861,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21747,6 +21882,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21831,9 +21969,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21852,6 +21990,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21936,9 +22077,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21957,6 +22098,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22041,9 +22185,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22062,6 +22206,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22141,9 +22288,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22162,6 +22309,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22243,9 +22393,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22264,6 +22414,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22349,9 +22502,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22370,6 +22523,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22680,9 +22836,9 @@ pub mod subscription { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22701,6 +22857,9 @@ pub mod subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23244,9 +23403,9 @@ pub mod tag_resource { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23265,6 +23424,9 @@ pub mod tag_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24468,9 +24630,9 @@ pub mod user { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24489,6 +24651,9 @@ pub mod user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25018,9 +25183,9 @@ pub mod user_group { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25039,6 +25204,9 @@ pub mod user_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25146,9 +25314,9 @@ pub mod user_subscription { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25167,6 +25335,9 @@ pub mod user_subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25256,9 +25427,9 @@ pub mod user_identities { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25277,6 +25448,9 @@ pub mod user_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/apimanagement/src/package_preview_2020_06/models.rs b/services/mgmt/apimanagement/src/package_preview_2020_06/models.rs index b3eced249e..1c8cae35a0 100644 --- a/services/mgmt/apimanagement/src/package_preview_2020_06/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2020_06/models.rs @@ -18,8 +18,8 @@ pub struct AccessInformationCollection { pub next_link: Option, } impl azure_core::Continuable for AccessInformationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessInformationCollection { @@ -191,8 +191,8 @@ pub struct ApiCollection { pub next_link: Option, } impl azure_core::Continuable for ApiCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiCollection { @@ -875,8 +875,8 @@ pub struct ApiManagementServiceListResult { pub next_link: Option, } impl azure_core::Continuable for ApiManagementServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiManagementServiceListResult { @@ -1271,8 +1271,8 @@ pub struct ApiManagementSkusResult { pub next_link: Option, } impl azure_core::Continuable for ApiManagementSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiManagementSkusResult { @@ -1294,8 +1294,8 @@ pub struct ApiReleaseCollection { pub next_link: Option, } impl azure_core::Continuable for ApiReleaseCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiReleaseCollection { @@ -1352,8 +1352,8 @@ pub struct ApiRevisionCollection { pub next_link: Option, } impl azure_core::Continuable for ApiRevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiRevisionCollection { @@ -1479,8 +1479,8 @@ pub struct ApiVersionSetCollection { pub next_link: Option, } impl azure_core::Continuable for ApiVersionSetCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiVersionSetCollection { @@ -1779,8 +1779,8 @@ pub struct AuthorizationServerCollection { pub next_link: Option, } impl azure_core::Continuable for AuthorizationServerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationServerCollection { @@ -2002,8 +2002,8 @@ pub struct BackendCollection { pub next_link: Option, } impl azure_core::Continuable for BackendCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackendCollection { @@ -2356,8 +2356,8 @@ pub struct CacheCollection { pub next_link: Option, } impl azure_core::Continuable for CacheCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CacheCollection { @@ -2452,8 +2452,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -2694,8 +2694,8 @@ pub struct ContentItemCollection { pub next_link: Option, } impl azure_core::Continuable for ContentItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentItemCollection { @@ -2734,8 +2734,8 @@ pub struct ContentTypeCollection { pub next_link: Option, } impl azure_core::Continuable for ContentTypeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentTypeCollection { @@ -2891,8 +2891,8 @@ pub struct DeletedServicesCollection { pub next_link: Option, } impl azure_core::Continuable for DeletedServicesCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedServicesCollection { @@ -2940,8 +2940,8 @@ pub struct DiagnosticCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticCollection { @@ -3181,8 +3181,8 @@ pub struct EmailTemplateCollection { pub next_link: Option, } impl azure_core::Continuable for EmailTemplateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EmailTemplateCollection { @@ -3316,7 +3316,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3354,8 +3354,8 @@ pub struct GatewayCertificateAuthorityCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCertificateAuthorityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCertificateAuthorityCollection { @@ -3403,8 +3403,8 @@ pub struct GatewayCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCollection { @@ -3452,8 +3452,8 @@ pub struct GatewayHostnameConfigurationCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayHostnameConfigurationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayHostnameConfigurationCollection { @@ -3608,8 +3608,8 @@ pub struct GroupCollection { pub next_link: Option, } impl azure_core::Continuable for GroupCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GroupCollection { @@ -4051,8 +4051,8 @@ pub struct IdentityProviderList { pub next_link: Option, } impl azure_core::Continuable for IdentityProviderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IdentityProviderList { @@ -4103,8 +4103,8 @@ pub struct IssueAttachmentCollection { pub next_link: Option, } impl azure_core::Continuable for IssueAttachmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueAttachmentCollection { @@ -4160,8 +4160,8 @@ pub struct IssueCollection { pub next_link: Option, } impl azure_core::Continuable for IssueCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueCollection { @@ -4183,8 +4183,8 @@ pub struct IssueCommentCollection { pub next_link: Option, } impl azure_core::Continuable for IssueCommentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueCommentCollection { @@ -4426,8 +4426,8 @@ pub struct LoggerCollection { pub next_link: Option, } impl azure_core::Continuable for LoggerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoggerCollection { @@ -4616,8 +4616,8 @@ pub struct NamedValueCollection { pub next_link: Option, } impl azure_core::Continuable for NamedValueCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NamedValueCollection { @@ -4809,8 +4809,8 @@ pub struct NotificationCollection { pub next_link: Option, } impl azure_core::Continuable for NotificationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationCollection { @@ -4897,8 +4897,8 @@ pub struct OpenIdConnectProviderCollection { pub next_link: Option, } impl azure_core::Continuable for OpenIdConnectProviderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OpenIdConnectProviderCollection { @@ -5045,8 +5045,8 @@ pub struct OperationCollection { pub next_link: Option, } impl azure_core::Continuable for OperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationCollection { @@ -5127,8 +5127,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -5497,8 +5497,8 @@ pub struct PortalRevisionCollection { pub next_link: Option, } impl azure_core::Continuable for PortalRevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PortalRevisionCollection { @@ -5730,8 +5730,8 @@ pub struct ProductCollection { pub next_link: Option, } impl azure_core::Continuable for ProductCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductCollection { @@ -6076,8 +6076,8 @@ pub struct RegionListResult { pub next_link: Option, } impl azure_core::Continuable for RegionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegionListResult { @@ -6111,8 +6111,8 @@ pub struct ReportCollection { pub next_link: Option, } impl azure_core::Continuable for ReportCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReportCollection { @@ -6269,7 +6269,7 @@ pub struct RequestReportCollection { pub count: Option, } impl azure_core::Continuable for RequestReportCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6538,8 +6538,8 @@ pub struct ResourceSkuResults { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuResults { @@ -6667,8 +6667,8 @@ pub struct SchemaCollection { pub next_link: Option, } impl azure_core::Continuable for SchemaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SchemaCollection { @@ -6737,8 +6737,8 @@ pub struct SubscriptionCollection { pub next_link: Option, } impl azure_core::Continuable for SubscriptionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionCollection { @@ -7030,8 +7030,8 @@ pub struct TagCollection { pub next_link: Option, } impl azure_core::Continuable for TagCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagCollection { @@ -7109,8 +7109,8 @@ pub struct TagDescriptionCollection { pub next_link: Option, } impl azure_core::Continuable for TagDescriptionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagDescriptionCollection { @@ -7175,8 +7175,8 @@ pub struct TagResourceCollection { pub next_link: Option, } impl azure_core::Continuable for TagResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagResourceCollection { @@ -7265,8 +7265,8 @@ pub struct TenantSettingsCollection { pub next_link: Option, } impl azure_core::Continuable for TenantSettingsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TenantSettingsCollection { @@ -7345,8 +7345,8 @@ pub struct UserCollection { pub next_link: Option, } impl azure_core::Continuable for UserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserCollection { @@ -7608,8 +7608,8 @@ pub struct UserIdentityCollection { pub next_link: Option, } impl azure_core::Continuable for UserIdentityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserIdentityCollection { diff --git a/services/mgmt/apimanagement/src/package_preview_2020_06/operations.rs b/services/mgmt/apimanagement/src/package_preview_2020_06/operations.rs index 0c15ec6a5d..c70e6a36f6 100644 --- a/services/mgmt/apimanagement/src/package_preview_2020_06/operations.rs +++ b/services/mgmt/apimanagement/src/package_preview_2020_06/operations.rs @@ -544,9 +544,9 @@ pub mod api { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -565,6 +565,9 @@ pub mod api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -964,9 +967,9 @@ pub mod api { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -985,6 +988,9 @@ pub mod api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1097,9 +1103,9 @@ pub mod api_revision { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1118,6 +1124,9 @@ pub mod api_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1319,9 +1328,9 @@ pub mod api_release { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1340,6 +1349,9 @@ pub mod api_release { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1849,9 +1861,9 @@ pub mod api_operation { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1870,6 +1882,9 @@ pub mod api_operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3010,9 +3025,9 @@ pub mod tag { &this.operation_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3031,6 +3046,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3316,9 +3334,9 @@ pub mod tag { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3337,6 +3355,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3650,9 +3671,9 @@ pub mod tag { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3671,6 +3692,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3987,9 +4011,9 @@ pub mod tag { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4008,6 +4032,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4410,9 +4437,9 @@ pub mod api_product { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4431,6 +4458,9 @@ pub mod api_product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5011,9 +5041,9 @@ pub mod api_schema { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5032,6 +5062,9 @@ pub mod api_schema { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5486,9 +5519,9 @@ pub mod api_diagnostic { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5507,6 +5540,9 @@ pub mod api_diagnostic { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6017,9 +6053,9 @@ pub mod api_issue { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6038,6 +6074,9 @@ pub mod api_issue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6547,9 +6586,9 @@ pub mod api_issue_comment { &this.issue_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6568,6 +6607,9 @@ pub mod api_issue_comment { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6966,9 +7008,9 @@ pub mod api_issue_attachment { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/apis/{}/issues/{}/attachments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . api_id , & this . issue_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6987,6 +7029,9 @@ pub mod api_issue_attachment { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7381,9 +7426,9 @@ pub mod api_tag_description { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7402,6 +7447,9 @@ pub mod api_tag_description { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7757,9 +7805,9 @@ pub mod operation { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7778,6 +7826,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7970,9 +8021,9 @@ pub mod api_version_set { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7991,6 +8042,9 @@ pub mod api_version_set { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8485,9 +8539,9 @@ pub mod authorization_server { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8506,6 +8560,9 @@ pub mod authorization_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9049,9 +9106,9 @@ pub mod backend { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9070,6 +9127,9 @@ pub mod backend { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9603,9 +9663,9 @@ pub mod cache { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9624,6 +9684,9 @@ pub mod cache { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10102,9 +10165,9 @@ pub mod certificate { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10123,6 +10186,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10543,9 +10609,9 @@ pub mod content_type { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10564,6 +10630,9 @@ pub mod content_type { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10890,9 +10959,9 @@ pub mod content_item { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/contentTypes/{}/contentItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . content_type_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10911,6 +10980,9 @@ pub mod content_item { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11210,9 +11282,9 @@ pub mod deleted_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11231,6 +11303,9 @@ pub mod deleted_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11400,9 +11475,9 @@ pub mod api_management_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ApiManagement/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11421,6 +11496,9 @@ pub mod api_management_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11498,9 +11576,9 @@ pub mod api_management_service_skus { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11519,6 +11597,9 @@ pub mod api_management_service_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12085,9 +12166,9 @@ pub mod api_management_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12106,6 +12187,9 @@ pub mod api_management_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12159,9 +12243,9 @@ pub mod api_management_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12180,6 +12264,9 @@ pub mod api_management_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12573,9 +12660,9 @@ pub mod diagnostic { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12594,6 +12681,9 @@ pub mod diagnostic { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13073,9 +13163,9 @@ pub mod email_template { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13094,6 +13184,9 @@ pub mod email_template { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13622,9 +13715,9 @@ pub mod gateway { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13643,6 +13736,9 @@ pub mod gateway { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14271,9 +14367,9 @@ pub mod gateway_hostname_configuration { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/gateways/{}/hostnameConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . gateway_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14292,6 +14388,9 @@ pub mod gateway_hostname_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14661,9 +14760,9 @@ pub mod gateway_api { &this.gateway_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14682,6 +14781,9 @@ pub mod gateway_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15039,9 +15141,9 @@ pub mod gateway_certificate_authority { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/gateways/{}/certificateAuthorities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . gateway_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15060,6 +15162,9 @@ pub mod gateway_certificate_authority { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15457,9 +15562,9 @@ pub mod group { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15478,6 +15583,9 @@ pub mod group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15928,9 +16036,9 @@ pub mod group_user { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15949,6 +16057,9 @@ pub mod group_user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16307,9 +16418,9 @@ pub mod identity_provider { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16328,6 +16439,9 @@ pub mod identity_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16777,9 +16891,9 @@ pub mod issue { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16798,6 +16912,9 @@ pub mod issue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17039,9 +17156,9 @@ pub mod logger { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17060,6 +17177,9 @@ pub mod logger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17575,9 +17695,9 @@ pub mod named_value { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17596,6 +17716,9 @@ pub mod named_value { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18279,9 +18402,9 @@ pub mod notification { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18300,6 +18423,9 @@ pub mod notification { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19153,9 +19279,9 @@ pub mod open_id_connect_provider { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19174,6 +19300,9 @@ pub mod open_id_connect_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20142,9 +20271,9 @@ pub mod portal_revision { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20163,6 +20292,9 @@ pub mod portal_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21578,9 +21710,9 @@ pub mod product { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21599,6 +21731,9 @@ pub mod product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21995,9 +22130,9 @@ pub mod product { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22016,6 +22151,9 @@ pub mod product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22179,9 +22317,9 @@ pub mod product_api { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22200,6 +22338,9 @@ pub mod product_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22532,9 +22673,9 @@ pub mod product_group { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22553,6 +22694,9 @@ pub mod product_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22834,9 +22978,9 @@ pub mod product_subscriptions { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22855,6 +22999,9 @@ pub mod product_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23643,9 +23790,9 @@ pub mod region { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23664,6 +23811,9 @@ pub mod region { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23887,9 +24037,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23908,6 +24058,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23992,9 +24145,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24013,6 +24166,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24097,9 +24253,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24118,6 +24274,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24202,9 +24361,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24223,6 +24382,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24302,9 +24464,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24323,6 +24485,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24404,9 +24569,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24425,6 +24590,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24510,9 +24678,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24531,6 +24699,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24713,9 +24884,9 @@ pub mod tenant_settings { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24734,6 +24905,9 @@ pub mod tenant_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24856,9 +25030,9 @@ pub mod api_management_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24877,6 +25051,9 @@ pub mod api_management_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25104,9 +25281,9 @@ pub mod subscription { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25125,6 +25302,9 @@ pub mod subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25688,9 +25868,9 @@ pub mod tag_resource { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25709,6 +25889,9 @@ pub mod tag_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25913,9 +26096,9 @@ pub mod tenant_access { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25934,6 +26117,9 @@ pub mod tenant_access { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26956,9 +27142,9 @@ pub mod user { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26977,6 +27163,9 @@ pub mod user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27526,9 +27715,9 @@ pub mod user_group { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27547,6 +27736,9 @@ pub mod user_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27671,9 +27863,9 @@ pub mod user_subscription { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27692,6 +27884,9 @@ pub mod user_subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27837,9 +28032,9 @@ pub mod user_identities { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27858,6 +28053,9 @@ pub mod user_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/apimanagement/src/package_preview_2021_01/models.rs b/services/mgmt/apimanagement/src/package_preview_2021_01/models.rs index e9a23602a0..9ad2687f95 100644 --- a/services/mgmt/apimanagement/src/package_preview_2021_01/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2021_01/models.rs @@ -18,8 +18,8 @@ pub struct AccessInformationCollection { pub next_link: Option, } impl azure_core::Continuable for AccessInformationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessInformationCollection { @@ -198,8 +198,8 @@ pub struct ApiCollection { pub next_link: Option, } impl azure_core::Continuable for ApiCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiCollection { @@ -933,8 +933,8 @@ pub struct ApiManagementServiceListResult { pub next_link: Option, } impl azure_core::Continuable for ApiManagementServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiManagementServiceListResult { @@ -1332,8 +1332,8 @@ pub struct ApiManagementSkusResult { pub next_link: Option, } impl azure_core::Continuable for ApiManagementSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiManagementSkusResult { @@ -1355,8 +1355,8 @@ pub struct ApiReleaseCollection { pub next_link: Option, } impl azure_core::Continuable for ApiReleaseCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiReleaseCollection { @@ -1413,8 +1413,8 @@ pub struct ApiRevisionCollection { pub next_link: Option, } impl azure_core::Continuable for ApiRevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiRevisionCollection { @@ -1540,8 +1540,8 @@ pub struct ApiVersionSetCollection { pub next_link: Option, } impl azure_core::Continuable for ApiVersionSetCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiVersionSetCollection { @@ -1840,8 +1840,8 @@ pub struct AuthorizationServerCollection { pub next_link: Option, } impl azure_core::Continuable for AuthorizationServerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationServerCollection { @@ -2063,8 +2063,8 @@ pub struct BackendCollection { pub next_link: Option, } impl azure_core::Continuable for BackendCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackendCollection { @@ -2417,8 +2417,8 @@ pub struct CacheCollection { pub next_link: Option, } impl azure_core::Continuable for CacheCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CacheCollection { @@ -2513,8 +2513,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -2755,8 +2755,8 @@ pub struct ContentItemCollection { pub next_link: Option, } impl azure_core::Continuable for ContentItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentItemCollection { @@ -2795,8 +2795,8 @@ pub struct ContentTypeCollection { pub next_link: Option, } impl azure_core::Continuable for ContentTypeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentTypeCollection { @@ -2952,8 +2952,8 @@ pub struct DeletedServicesCollection { pub next_link: Option, } impl azure_core::Continuable for DeletedServicesCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedServicesCollection { @@ -3001,8 +3001,8 @@ pub struct DiagnosticCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticCollection { @@ -3242,8 +3242,8 @@ pub struct EmailTemplateCollection { pub next_link: Option, } impl azure_core::Continuable for EmailTemplateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EmailTemplateCollection { @@ -3377,7 +3377,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3415,8 +3415,8 @@ pub struct GatewayCertificateAuthorityCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCertificateAuthorityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCertificateAuthorityCollection { @@ -3464,8 +3464,8 @@ pub struct GatewayCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCollection { @@ -3513,8 +3513,8 @@ pub struct GatewayHostnameConfigurationCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayHostnameConfigurationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayHostnameConfigurationCollection { @@ -3669,8 +3669,8 @@ pub struct GroupCollection { pub next_link: Option, } impl azure_core::Continuable for GroupCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GroupCollection { @@ -4200,8 +4200,8 @@ pub struct IdentityProviderList { pub next_link: Option, } impl azure_core::Continuable for IdentityProviderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IdentityProviderList { @@ -4252,8 +4252,8 @@ pub struct IssueAttachmentCollection { pub next_link: Option, } impl azure_core::Continuable for IssueAttachmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueAttachmentCollection { @@ -4309,8 +4309,8 @@ pub struct IssueCollection { pub next_link: Option, } impl azure_core::Continuable for IssueCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueCollection { @@ -4332,8 +4332,8 @@ pub struct IssueCommentCollection { pub next_link: Option, } impl azure_core::Continuable for IssueCommentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueCommentCollection { @@ -4575,8 +4575,8 @@ pub struct LoggerCollection { pub next_link: Option, } impl azure_core::Continuable for LoggerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoggerCollection { @@ -4765,8 +4765,8 @@ pub struct NamedValueCollection { pub next_link: Option, } impl azure_core::Continuable for NamedValueCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NamedValueCollection { @@ -4958,8 +4958,8 @@ pub struct NotificationCollection { pub next_link: Option, } impl azure_core::Continuable for NotificationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationCollection { @@ -5046,8 +5046,8 @@ pub struct OpenIdConnectProviderCollection { pub next_link: Option, } impl azure_core::Continuable for OpenIdConnectProviderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OpenIdConnectProviderCollection { @@ -5194,8 +5194,8 @@ pub struct OperationCollection { pub next_link: Option, } impl azure_core::Continuable for OperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationCollection { @@ -5276,8 +5276,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -5701,8 +5701,8 @@ pub struct PortalRevisionCollection { pub next_link: Option, } impl azure_core::Continuable for PortalRevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PortalRevisionCollection { @@ -5934,8 +5934,8 @@ pub struct ProductCollection { pub next_link: Option, } impl azure_core::Continuable for ProductCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductCollection { @@ -6280,8 +6280,8 @@ pub struct RegionListResult { pub next_link: Option, } impl azure_core::Continuable for RegionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegionListResult { @@ -6315,8 +6315,8 @@ pub struct ReportCollection { pub next_link: Option, } impl azure_core::Continuable for ReportCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReportCollection { @@ -6469,7 +6469,7 @@ pub struct RequestReportCollection { pub count: Option, } impl azure_core::Continuable for RequestReportCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6738,8 +6738,8 @@ pub struct ResourceSkuResults { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuResults { @@ -6867,8 +6867,8 @@ pub struct SchemaCollection { pub next_link: Option, } impl azure_core::Continuable for SchemaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SchemaCollection { @@ -6930,8 +6930,8 @@ pub struct SubscriptionCollection { pub next_link: Option, } impl azure_core::Continuable for SubscriptionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionCollection { @@ -7223,8 +7223,8 @@ pub struct TagCollection { pub next_link: Option, } impl azure_core::Continuable for TagCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagCollection { @@ -7302,8 +7302,8 @@ pub struct TagDescriptionCollection { pub next_link: Option, } impl azure_core::Continuable for TagDescriptionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagDescriptionCollection { @@ -7368,8 +7368,8 @@ pub struct TagResourceCollection { pub next_link: Option, } impl azure_core::Continuable for TagResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagResourceCollection { @@ -7473,8 +7473,8 @@ pub struct TenantSettingsCollection { pub next_link: Option, } impl azure_core::Continuable for TenantSettingsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TenantSettingsCollection { @@ -7553,8 +7553,8 @@ pub struct UserCollection { pub next_link: Option, } impl azure_core::Continuable for UserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserCollection { @@ -7816,8 +7816,8 @@ pub struct UserIdentityCollection { pub next_link: Option, } impl azure_core::Continuable for UserIdentityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserIdentityCollection { diff --git a/services/mgmt/apimanagement/src/package_preview_2021_01/operations.rs b/services/mgmt/apimanagement/src/package_preview_2021_01/operations.rs index 4126cf1620..d3bc500398 100644 --- a/services/mgmt/apimanagement/src/package_preview_2021_01/operations.rs +++ b/services/mgmt/apimanagement/src/package_preview_2021_01/operations.rs @@ -544,9 +544,9 @@ pub mod api { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -565,6 +565,9 @@ pub mod api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -964,9 +967,9 @@ pub mod api { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -985,6 +988,9 @@ pub mod api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1097,9 +1103,9 @@ pub mod api_revision { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1118,6 +1124,9 @@ pub mod api_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1319,9 +1328,9 @@ pub mod api_release { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1340,6 +1349,9 @@ pub mod api_release { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1849,9 +1861,9 @@ pub mod api_operation { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1870,6 +1882,9 @@ pub mod api_operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3010,9 +3025,9 @@ pub mod tag { &this.operation_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3031,6 +3046,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3316,9 +3334,9 @@ pub mod tag { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3337,6 +3355,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3650,9 +3671,9 @@ pub mod tag { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3671,6 +3692,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3987,9 +4011,9 @@ pub mod tag { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4008,6 +4032,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4410,9 +4437,9 @@ pub mod api_product { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4431,6 +4458,9 @@ pub mod api_product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5011,9 +5041,9 @@ pub mod api_schema { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5032,6 +5062,9 @@ pub mod api_schema { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5486,9 +5519,9 @@ pub mod api_diagnostic { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5507,6 +5540,9 @@ pub mod api_diagnostic { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6017,9 +6053,9 @@ pub mod api_issue { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6038,6 +6074,9 @@ pub mod api_issue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6547,9 +6586,9 @@ pub mod api_issue_comment { &this.issue_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6568,6 +6607,9 @@ pub mod api_issue_comment { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6966,9 +7008,9 @@ pub mod api_issue_attachment { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/apis/{}/issues/{}/attachments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . api_id , & this . issue_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6987,6 +7029,9 @@ pub mod api_issue_attachment { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7381,9 +7426,9 @@ pub mod api_tag_description { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7402,6 +7447,9 @@ pub mod api_tag_description { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7757,9 +7805,9 @@ pub mod operation { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7778,6 +7826,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7970,9 +8021,9 @@ pub mod api_version_set { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7991,6 +8042,9 @@ pub mod api_version_set { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8485,9 +8539,9 @@ pub mod authorization_server { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8506,6 +8560,9 @@ pub mod authorization_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9049,9 +9106,9 @@ pub mod backend { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9070,6 +9127,9 @@ pub mod backend { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9603,9 +9663,9 @@ pub mod cache { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9624,6 +9684,9 @@ pub mod cache { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10102,9 +10165,9 @@ pub mod certificate { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10123,6 +10186,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10543,9 +10609,9 @@ pub mod content_type { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10564,6 +10630,9 @@ pub mod content_type { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10890,9 +10959,9 @@ pub mod content_item { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/contentTypes/{}/contentItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . content_type_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10911,6 +10980,9 @@ pub mod content_item { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11210,9 +11282,9 @@ pub mod deleted_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11231,6 +11303,9 @@ pub mod deleted_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11401,9 +11476,9 @@ pub mod api_management_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ApiManagement/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11422,6 +11497,9 @@ pub mod api_management_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11499,9 +11577,9 @@ pub mod api_management_service_skus { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11520,6 +11598,9 @@ pub mod api_management_service_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12086,9 +12167,9 @@ pub mod api_management_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12107,6 +12188,9 @@ pub mod api_management_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12160,9 +12244,9 @@ pub mod api_management_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12181,6 +12265,9 @@ pub mod api_management_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12574,9 +12661,9 @@ pub mod diagnostic { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12595,6 +12682,9 @@ pub mod diagnostic { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13074,9 +13164,9 @@ pub mod email_template { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13095,6 +13185,9 @@ pub mod email_template { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13623,9 +13716,9 @@ pub mod gateway { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13644,6 +13737,9 @@ pub mod gateway { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14272,9 +14368,9 @@ pub mod gateway_hostname_configuration { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/gateways/{}/hostnameConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . gateway_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14293,6 +14389,9 @@ pub mod gateway_hostname_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14662,9 +14761,9 @@ pub mod gateway_api { &this.gateway_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14683,6 +14782,9 @@ pub mod gateway_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15040,9 +15142,9 @@ pub mod gateway_certificate_authority { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/gateways/{}/certificateAuthorities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . gateway_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15061,6 +15163,9 @@ pub mod gateway_certificate_authority { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15458,9 +15563,9 @@ pub mod group { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15479,6 +15584,9 @@ pub mod group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15929,9 +16037,9 @@ pub mod group_user { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15950,6 +16058,9 @@ pub mod group_user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16308,9 +16419,9 @@ pub mod identity_provider { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16329,6 +16440,9 @@ pub mod identity_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16778,9 +16892,9 @@ pub mod issue { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16799,6 +16913,9 @@ pub mod issue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17040,9 +17157,9 @@ pub mod logger { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17061,6 +17178,9 @@ pub mod logger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17576,9 +17696,9 @@ pub mod named_value { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17597,6 +17717,9 @@ pub mod named_value { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18280,9 +18403,9 @@ pub mod notification { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18301,6 +18424,9 @@ pub mod notification { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19154,9 +19280,9 @@ pub mod open_id_connect_provider { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19175,6 +19301,9 @@ pub mod open_id_connect_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20143,9 +20272,9 @@ pub mod portal_revision { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20164,6 +20293,9 @@ pub mod portal_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21579,9 +21711,9 @@ pub mod product { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21600,6 +21732,9 @@ pub mod product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21996,9 +22131,9 @@ pub mod product { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22017,6 +22152,9 @@ pub mod product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22180,9 +22318,9 @@ pub mod product_api { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22201,6 +22339,9 @@ pub mod product_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22533,9 +22674,9 @@ pub mod product_group { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22554,6 +22695,9 @@ pub mod product_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22835,9 +22979,9 @@ pub mod product_subscriptions { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22856,6 +23000,9 @@ pub mod product_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23644,9 +23791,9 @@ pub mod region { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23665,6 +23812,9 @@ pub mod region { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23888,9 +24038,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23909,6 +24059,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23993,9 +24146,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24014,6 +24167,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24098,9 +24254,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24119,6 +24275,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24203,9 +24362,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24224,6 +24383,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24303,9 +24465,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24324,6 +24486,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24405,9 +24570,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24426,6 +24591,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24511,9 +24679,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24532,6 +24700,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24714,9 +24885,9 @@ pub mod tenant_settings { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24735,6 +24906,9 @@ pub mod tenant_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24857,9 +25031,9 @@ pub mod api_management_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24878,6 +25052,9 @@ pub mod api_management_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25105,9 +25282,9 @@ pub mod subscription { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25126,6 +25303,9 @@ pub mod subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25689,9 +25869,9 @@ pub mod tag_resource { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25710,6 +25890,9 @@ pub mod tag_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25914,9 +26097,9 @@ pub mod tenant_access { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25935,6 +26118,9 @@ pub mod tenant_access { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26957,9 +27143,9 @@ pub mod user { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26978,6 +27164,9 @@ pub mod user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27527,9 +27716,9 @@ pub mod user_group { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27548,6 +27737,9 @@ pub mod user_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27672,9 +27864,9 @@ pub mod user_subscription { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27693,6 +27885,9 @@ pub mod user_subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27838,9 +28033,9 @@ pub mod user_identities { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27859,6 +28054,9 @@ pub mod user_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/apimanagement/src/package_preview_2021_04/models.rs b/services/mgmt/apimanagement/src/package_preview_2021_04/models.rs index 6047ebf608..f4821afc9f 100644 --- a/services/mgmt/apimanagement/src/package_preview_2021_04/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2021_04/models.rs @@ -18,8 +18,8 @@ pub struct AccessInformationCollection { pub next_link: Option, } impl azure_core::Continuable for AccessInformationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessInformationCollection { @@ -250,8 +250,8 @@ pub struct ApiCollection { pub next_link: Option, } impl azure_core::Continuable for ApiCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiCollection { @@ -1142,8 +1142,8 @@ pub struct ApiManagementServiceListResult { pub next_link: Option, } impl azure_core::Continuable for ApiManagementServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiManagementServiceListResult { @@ -1545,8 +1545,8 @@ pub struct ApiManagementSkusResult { pub next_link: Option, } impl azure_core::Continuable for ApiManagementSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiManagementSkusResult { @@ -1568,8 +1568,8 @@ pub struct ApiReleaseCollection { pub next_link: Option, } impl azure_core::Continuable for ApiReleaseCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiReleaseCollection { @@ -1626,8 +1626,8 @@ pub struct ApiRevisionCollection { pub next_link: Option, } impl azure_core::Continuable for ApiRevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiRevisionCollection { @@ -1703,8 +1703,8 @@ pub struct ApiSchemaCollection { pub next_link: Option, } impl azure_core::Continuable for ApiSchemaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiSchemaCollection { @@ -1826,8 +1826,8 @@ pub struct ApiVersionSetCollection { pub next_link: Option, } impl azure_core::Continuable for ApiVersionSetCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiVersionSetCollection { @@ -2137,8 +2137,8 @@ pub struct AuthorizationServerCollection { pub next_link: Option, } impl azure_core::Continuable for AuthorizationServerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationServerCollection { @@ -2360,8 +2360,8 @@ pub struct BackendCollection { pub next_link: Option, } impl azure_core::Continuable for BackendCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackendCollection { @@ -2714,8 +2714,8 @@ pub struct CacheCollection { pub next_link: Option, } impl azure_core::Continuable for CacheCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CacheCollection { @@ -2810,8 +2810,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -3514,8 +3514,8 @@ pub struct ContentItemCollection { pub next_link: Option, } impl azure_core::Continuable for ContentItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentItemCollection { @@ -3554,8 +3554,8 @@ pub struct ContentTypeCollection { pub next_link: Option, } impl azure_core::Continuable for ContentTypeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentTypeCollection { @@ -3711,8 +3711,8 @@ pub struct DeletedServicesCollection { pub next_link: Option, } impl azure_core::Continuable for DeletedServicesCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedServicesCollection { @@ -3760,8 +3760,8 @@ pub struct DiagnosticCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticCollection { @@ -4001,8 +4001,8 @@ pub struct EmailTemplateCollection { pub next_link: Option, } impl azure_core::Continuable for EmailTemplateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EmailTemplateCollection { @@ -4166,7 +4166,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4204,8 +4204,8 @@ pub struct GatewayCertificateAuthorityCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCertificateAuthorityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCertificateAuthorityCollection { @@ -4253,8 +4253,8 @@ pub struct GatewayCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCollection { @@ -4302,8 +4302,8 @@ pub struct GatewayHostnameConfigurationCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayHostnameConfigurationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayHostnameConfigurationCollection { @@ -4458,8 +4458,8 @@ pub struct GroupCollection { pub next_link: Option, } impl azure_core::Continuable for GroupCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GroupCollection { @@ -5002,8 +5002,8 @@ pub struct IdentityProviderList { pub next_link: Option, } impl azure_core::Continuable for IdentityProviderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IdentityProviderList { @@ -5054,8 +5054,8 @@ pub struct IssueAttachmentCollection { pub next_link: Option, } impl azure_core::Continuable for IssueAttachmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueAttachmentCollection { @@ -5111,8 +5111,8 @@ pub struct IssueCollection { pub next_link: Option, } impl azure_core::Continuable for IssueCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueCollection { @@ -5134,8 +5134,8 @@ pub struct IssueCommentCollection { pub next_link: Option, } impl azure_core::Continuable for IssueCommentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueCommentCollection { @@ -5385,8 +5385,8 @@ pub struct LoggerCollection { pub next_link: Option, } impl azure_core::Continuable for LoggerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoggerCollection { @@ -5575,8 +5575,8 @@ pub struct NamedValueCollection { pub next_link: Option, } impl azure_core::Continuable for NamedValueCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NamedValueCollection { @@ -5768,8 +5768,8 @@ pub struct NotificationCollection { pub next_link: Option, } impl azure_core::Continuable for NotificationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationCollection { @@ -5856,8 +5856,8 @@ pub struct OpenIdConnectProviderCollection { pub next_link: Option, } impl azure_core::Continuable for OpenIdConnectProviderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OpenIdConnectProviderCollection { @@ -6004,8 +6004,8 @@ pub struct OperationCollection { pub next_link: Option, } impl azure_core::Continuable for OperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationCollection { @@ -6086,8 +6086,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -6540,8 +6540,8 @@ pub struct PortalRevisionCollection { pub next_link: Option, } impl azure_core::Continuable for PortalRevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PortalRevisionCollection { @@ -6793,7 +6793,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7036,8 +7036,8 @@ pub struct ProductCollection { pub next_link: Option, } impl azure_core::Continuable for ProductCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductCollection { @@ -7382,8 +7382,8 @@ pub struct RegionListResult { pub next_link: Option, } impl azure_core::Continuable for RegionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegionListResult { @@ -7438,8 +7438,8 @@ pub struct ReportCollection { pub next_link: Option, } impl azure_core::Continuable for ReportCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReportCollection { @@ -7596,7 +7596,7 @@ pub struct RequestReportCollection { pub count: Option, } impl azure_core::Continuable for RequestReportCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7865,8 +7865,8 @@ pub struct ResourceSkuResults { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuResults { @@ -7994,8 +7994,8 @@ pub struct SchemaCollection { pub next_link: Option, } impl azure_core::Continuable for SchemaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SchemaCollection { @@ -8107,8 +8107,8 @@ pub struct SubscriptionCollection { pub next_link: Option, } impl azure_core::Continuable for SubscriptionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionCollection { @@ -8400,8 +8400,8 @@ pub struct TagCollection { pub next_link: Option, } impl azure_core::Continuable for TagCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagCollection { @@ -8479,8 +8479,8 @@ pub struct TagDescriptionCollection { pub next_link: Option, } impl azure_core::Continuable for TagDescriptionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagDescriptionCollection { @@ -8545,8 +8545,8 @@ pub struct TagResourceCollection { pub next_link: Option, } impl azure_core::Continuable for TagResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagResourceCollection { @@ -8652,8 +8652,8 @@ pub struct TenantSettingsCollection { pub next_link: Option, } impl azure_core::Continuable for TenantSettingsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TenantSettingsCollection { @@ -8732,8 +8732,8 @@ pub struct UserCollection { pub next_link: Option, } impl azure_core::Continuable for UserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserCollection { @@ -8995,8 +8995,8 @@ pub struct UserIdentityCollection { pub next_link: Option, } impl azure_core::Continuable for UserIdentityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserIdentityCollection { diff --git a/services/mgmt/apimanagement/src/package_preview_2021_04/operations.rs b/services/mgmt/apimanagement/src/package_preview_2021_04/operations.rs index 34f3599c05..83e7c3c5f2 100644 --- a/services/mgmt/apimanagement/src/package_preview_2021_04/operations.rs +++ b/services/mgmt/apimanagement/src/package_preview_2021_04/operations.rs @@ -553,9 +553,9 @@ pub mod api { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -574,6 +574,9 @@ pub mod api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -973,9 +976,9 @@ pub mod api { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -994,6 +997,9 @@ pub mod api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1106,9 +1112,9 @@ pub mod api_revision { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1127,6 +1133,9 @@ pub mod api_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1328,9 +1337,9 @@ pub mod api_release { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1349,6 +1358,9 @@ pub mod api_release { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1858,9 +1870,9 @@ pub mod api_operation { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1879,6 +1891,9 @@ pub mod api_operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3019,9 +3034,9 @@ pub mod tag { &this.operation_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3040,6 +3055,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3325,9 +3343,9 @@ pub mod tag { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3346,6 +3364,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3659,9 +3680,9 @@ pub mod tag { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3680,6 +3701,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3996,9 +4020,9 @@ pub mod tag { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4017,6 +4041,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4419,9 +4446,9 @@ pub mod api_product { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4440,6 +4467,9 @@ pub mod api_product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5020,9 +5050,9 @@ pub mod api_schema { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5041,6 +5071,9 @@ pub mod api_schema { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5495,9 +5528,9 @@ pub mod api_diagnostic { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5516,6 +5549,9 @@ pub mod api_diagnostic { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6026,9 +6062,9 @@ pub mod api_issue { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6047,6 +6083,9 @@ pub mod api_issue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6556,9 +6595,9 @@ pub mod api_issue_comment { &this.issue_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6577,6 +6616,9 @@ pub mod api_issue_comment { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6975,9 +7017,9 @@ pub mod api_issue_attachment { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/apis/{}/issues/{}/attachments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . api_id , & this . issue_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6996,6 +7038,9 @@ pub mod api_issue_attachment { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7390,9 +7435,9 @@ pub mod api_tag_description { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7411,6 +7456,9 @@ pub mod api_tag_description { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7766,9 +7814,9 @@ pub mod operation { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7787,6 +7835,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7979,9 +8030,9 @@ pub mod api_version_set { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8000,6 +8051,9 @@ pub mod api_version_set { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8494,9 +8548,9 @@ pub mod authorization_server { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8515,6 +8569,9 @@ pub mod authorization_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9058,9 +9115,9 @@ pub mod backend { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9079,6 +9136,9 @@ pub mod backend { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9612,9 +9672,9 @@ pub mod cache { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9633,6 +9693,9 @@ pub mod cache { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10111,9 +10174,9 @@ pub mod certificate { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10132,6 +10195,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10552,9 +10618,9 @@ pub mod content_type { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10573,6 +10639,9 @@ pub mod content_type { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10899,9 +10968,9 @@ pub mod content_item { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/contentTypes/{}/contentItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . content_type_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10920,6 +10989,9 @@ pub mod content_item { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11219,9 +11291,9 @@ pub mod deleted_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11240,6 +11312,9 @@ pub mod deleted_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11410,9 +11485,9 @@ pub mod api_management_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ApiManagement/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11431,6 +11506,9 @@ pub mod api_management_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11508,9 +11586,9 @@ pub mod api_management_service_skus { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11529,6 +11607,9 @@ pub mod api_management_service_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12095,9 +12176,9 @@ pub mod api_management_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12116,6 +12197,9 @@ pub mod api_management_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12169,9 +12253,9 @@ pub mod api_management_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12190,6 +12274,9 @@ pub mod api_management_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12583,9 +12670,9 @@ pub mod diagnostic { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12604,6 +12691,9 @@ pub mod diagnostic { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13083,9 +13173,9 @@ pub mod email_template { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13104,6 +13194,9 @@ pub mod email_template { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13632,9 +13725,9 @@ pub mod gateway { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13653,6 +13746,9 @@ pub mod gateway { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14281,9 +14377,9 @@ pub mod gateway_hostname_configuration { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/gateways/{}/hostnameConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . gateway_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14302,6 +14398,9 @@ pub mod gateway_hostname_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14671,9 +14770,9 @@ pub mod gateway_api { &this.gateway_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14692,6 +14791,9 @@ pub mod gateway_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15049,9 +15151,9 @@ pub mod gateway_certificate_authority { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/gateways/{}/certificateAuthorities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . gateway_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15070,6 +15172,9 @@ pub mod gateway_certificate_authority { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15467,9 +15572,9 @@ pub mod group { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15488,6 +15593,9 @@ pub mod group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15938,9 +16046,9 @@ pub mod group_user { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15959,6 +16067,9 @@ pub mod group_user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16317,9 +16428,9 @@ pub mod identity_provider { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16338,6 +16449,9 @@ pub mod identity_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16787,9 +16901,9 @@ pub mod issue { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16808,6 +16922,9 @@ pub mod issue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17049,9 +17166,9 @@ pub mod logger { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17070,6 +17187,9 @@ pub mod logger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17585,9 +17705,9 @@ pub mod named_value { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17606,6 +17726,9 @@ pub mod named_value { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18289,9 +18412,9 @@ pub mod notification { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18310,6 +18433,9 @@ pub mod notification { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19163,9 +19289,9 @@ pub mod open_id_connect_provider { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19184,6 +19310,9 @@ pub mod open_id_connect_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20217,9 +20346,9 @@ pub mod portal_revision { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20238,6 +20367,9 @@ pub mod portal_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22059,9 +22191,9 @@ pub mod product { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22080,6 +22212,9 @@ pub mod product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22476,9 +22611,9 @@ pub mod product { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22497,6 +22632,9 @@ pub mod product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22660,9 +22798,9 @@ pub mod product_api { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22681,6 +22819,9 @@ pub mod product_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23013,9 +23154,9 @@ pub mod product_group { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23034,6 +23175,9 @@ pub mod product_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23315,9 +23459,9 @@ pub mod product_subscriptions { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23336,6 +23480,9 @@ pub mod product_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24124,9 +24271,9 @@ pub mod region { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24145,6 +24292,9 @@ pub mod region { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24368,9 +24518,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24389,6 +24539,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24473,9 +24626,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24494,6 +24647,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24578,9 +24734,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24599,6 +24755,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24683,9 +24842,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24704,6 +24863,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24783,9 +24945,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24804,6 +24966,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24885,9 +25050,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24906,6 +25071,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24991,9 +25159,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25012,6 +25180,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25256,9 +25427,9 @@ pub mod schema { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25277,6 +25448,9 @@ pub mod schema { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25620,9 +25794,9 @@ pub mod tenant_settings { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25641,6 +25815,9 @@ pub mod tenant_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25763,9 +25940,9 @@ pub mod api_management_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25784,6 +25961,9 @@ pub mod api_management_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26011,9 +26191,9 @@ pub mod subscription { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26032,6 +26212,9 @@ pub mod subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26595,9 +26778,9 @@ pub mod tag_resource { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26616,6 +26799,9 @@ pub mod tag_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26820,9 +27006,9 @@ pub mod tenant_access { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26841,6 +27027,9 @@ pub mod tenant_access { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27863,9 +28052,9 @@ pub mod user { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27884,6 +28073,9 @@ pub mod user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28433,9 +28625,9 @@ pub mod user_group { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28454,6 +28646,9 @@ pub mod user_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28578,9 +28773,9 @@ pub mod user_subscription { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28599,6 +28794,9 @@ pub mod user_subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28744,9 +28942,9 @@ pub mod user_identities { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28765,6 +28963,9 @@ pub mod user_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/apimanagement/src/package_preview_2021_12/models.rs b/services/mgmt/apimanagement/src/package_preview_2021_12/models.rs index 7cd0e19717..f82d58d090 100644 --- a/services/mgmt/apimanagement/src/package_preview_2021_12/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2021_12/models.rs @@ -18,8 +18,8 @@ pub struct AccessInformationCollection { pub next_link: Option, } impl azure_core::Continuable for AccessInformationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessInformationCollection { @@ -250,8 +250,8 @@ pub struct ApiCollection { pub next_link: Option, } impl azure_core::Continuable for ApiCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiCollection { @@ -1142,8 +1142,8 @@ pub struct ApiManagementServiceListResult { pub next_link: Option, } impl azure_core::Continuable for ApiManagementServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiManagementServiceListResult { @@ -1545,8 +1545,8 @@ pub struct ApiManagementSkusResult { pub next_link: Option, } impl azure_core::Continuable for ApiManagementSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiManagementSkusResult { @@ -1568,8 +1568,8 @@ pub struct ApiReleaseCollection { pub next_link: Option, } impl azure_core::Continuable for ApiReleaseCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiReleaseCollection { @@ -1626,8 +1626,8 @@ pub struct ApiRevisionCollection { pub next_link: Option, } impl azure_core::Continuable for ApiRevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiRevisionCollection { @@ -1753,8 +1753,8 @@ pub struct ApiVersionSetCollection { pub next_link: Option, } impl azure_core::Continuable for ApiVersionSetCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiVersionSetCollection { @@ -2064,8 +2064,8 @@ pub struct AuthorizationServerCollection { pub next_link: Option, } impl azure_core::Continuable for AuthorizationServerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationServerCollection { @@ -2287,8 +2287,8 @@ pub struct BackendCollection { pub next_link: Option, } impl azure_core::Continuable for BackendCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackendCollection { @@ -2641,8 +2641,8 @@ pub struct CacheCollection { pub next_link: Option, } impl azure_core::Continuable for CacheCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CacheCollection { @@ -2737,8 +2737,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -3441,8 +3441,8 @@ pub struct ContentItemCollection { pub next_link: Option, } impl azure_core::Continuable for ContentItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentItemCollection { @@ -3481,8 +3481,8 @@ pub struct ContentTypeCollection { pub next_link: Option, } impl azure_core::Continuable for ContentTypeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentTypeCollection { @@ -3638,8 +3638,8 @@ pub struct DeletedServicesCollection { pub next_link: Option, } impl azure_core::Continuable for DeletedServicesCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedServicesCollection { @@ -3687,8 +3687,8 @@ pub struct DiagnosticCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticCollection { @@ -3928,8 +3928,8 @@ pub struct EmailTemplateCollection { pub next_link: Option, } impl azure_core::Continuable for EmailTemplateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EmailTemplateCollection { @@ -4093,7 +4093,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4131,8 +4131,8 @@ pub struct GatewayCertificateAuthorityCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCertificateAuthorityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCertificateAuthorityCollection { @@ -4180,8 +4180,8 @@ pub struct GatewayCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCollection { @@ -4229,8 +4229,8 @@ pub struct GatewayHostnameConfigurationCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayHostnameConfigurationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayHostnameConfigurationCollection { @@ -4385,8 +4385,8 @@ pub struct GlobalSchemaCollection { pub next_link: Option, } impl azure_core::Continuable for GlobalSchemaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GlobalSchemaCollection { @@ -4498,8 +4498,8 @@ pub struct GroupCollection { pub next_link: Option, } impl azure_core::Continuable for GroupCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GroupCollection { @@ -5045,8 +5045,8 @@ pub struct IdentityProviderList { pub next_link: Option, } impl azure_core::Continuable for IdentityProviderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IdentityProviderList { @@ -5097,8 +5097,8 @@ pub struct IssueAttachmentCollection { pub next_link: Option, } impl azure_core::Continuable for IssueAttachmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueAttachmentCollection { @@ -5154,8 +5154,8 @@ pub struct IssueCollection { pub next_link: Option, } impl azure_core::Continuable for IssueCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueCollection { @@ -5177,8 +5177,8 @@ pub struct IssueCommentCollection { pub next_link: Option, } impl azure_core::Continuable for IssueCommentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IssueCommentCollection { @@ -5428,8 +5428,8 @@ pub struct LoggerCollection { pub next_link: Option, } impl azure_core::Continuable for LoggerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoggerCollection { @@ -5618,8 +5618,8 @@ pub struct NamedValueCollection { pub next_link: Option, } impl azure_core::Continuable for NamedValueCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NamedValueCollection { @@ -5811,8 +5811,8 @@ pub struct NotificationCollection { pub next_link: Option, } impl azure_core::Continuable for NotificationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationCollection { @@ -5899,8 +5899,8 @@ pub struct OpenIdConnectProviderCollection { pub next_link: Option, } impl azure_core::Continuable for OpenIdConnectProviderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OpenIdConnectProviderCollection { @@ -6047,8 +6047,8 @@ pub struct OperationCollection { pub next_link: Option, } impl azure_core::Continuable for OperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationCollection { @@ -6129,8 +6129,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -6876,8 +6876,8 @@ pub struct PortalRevisionCollection { pub next_link: Option, } impl azure_core::Continuable for PortalRevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PortalRevisionCollection { @@ -7129,7 +7129,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7372,8 +7372,8 @@ pub struct ProductCollection { pub next_link: Option, } impl azure_core::Continuable for ProductCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductCollection { @@ -7718,8 +7718,8 @@ pub struct RegionListResult { pub next_link: Option, } impl azure_core::Continuable for RegionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegionListResult { @@ -7774,8 +7774,8 @@ pub struct ReportCollection { pub next_link: Option, } impl azure_core::Continuable for ReportCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReportCollection { @@ -7932,7 +7932,7 @@ pub struct RequestReportCollection { pub count: Option, } impl azure_core::Continuable for RequestReportCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8219,8 +8219,8 @@ pub struct ResourceSkuResults { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuResults { @@ -8348,8 +8348,8 @@ pub struct SchemaCollection { pub next_link: Option, } impl azure_core::Continuable for SchemaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SchemaCollection { @@ -8421,8 +8421,8 @@ pub struct SubscriptionCollection { pub next_link: Option, } impl azure_core::Continuable for SubscriptionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionCollection { @@ -8714,8 +8714,8 @@ pub struct TagCollection { pub next_link: Option, } impl azure_core::Continuable for TagCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagCollection { @@ -8793,8 +8793,8 @@ pub struct TagDescriptionCollection { pub next_link: Option, } impl azure_core::Continuable for TagDescriptionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagDescriptionCollection { @@ -8859,8 +8859,8 @@ pub struct TagResourceCollection { pub next_link: Option, } impl azure_core::Continuable for TagResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagResourceCollection { @@ -8966,8 +8966,8 @@ pub struct TenantSettingsCollection { pub next_link: Option, } impl azure_core::Continuable for TenantSettingsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TenantSettingsCollection { @@ -9046,8 +9046,8 @@ pub struct UserCollection { pub next_link: Option, } impl azure_core::Continuable for UserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserCollection { @@ -9309,8 +9309,8 @@ pub struct UserIdentityCollection { pub next_link: Option, } impl azure_core::Continuable for UserIdentityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserIdentityCollection { diff --git a/services/mgmt/apimanagement/src/package_preview_2021_12/operations.rs b/services/mgmt/apimanagement/src/package_preview_2021_12/operations.rs index a4e5441185..7a1daeb397 100644 --- a/services/mgmt/apimanagement/src/package_preview_2021_12/operations.rs +++ b/services/mgmt/apimanagement/src/package_preview_2021_12/operations.rs @@ -559,9 +559,9 @@ pub mod api { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -580,6 +580,9 @@ pub mod api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -979,9 +982,9 @@ pub mod api { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1000,6 +1003,9 @@ pub mod api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1112,9 +1118,9 @@ pub mod api_revision { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1133,6 +1139,9 @@ pub mod api_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1334,9 +1343,9 @@ pub mod api_release { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1355,6 +1364,9 @@ pub mod api_release { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1864,9 +1876,9 @@ pub mod api_operation { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1885,6 +1897,9 @@ pub mod api_operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3025,9 +3040,9 @@ pub mod tag { &this.operation_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3046,6 +3061,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3331,9 +3349,9 @@ pub mod tag { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3352,6 +3370,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3665,9 +3686,9 @@ pub mod tag { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3686,6 +3707,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4002,9 +4026,9 @@ pub mod tag { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4023,6 +4047,9 @@ pub mod tag { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4425,9 +4452,9 @@ pub mod api_product { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4446,6 +4473,9 @@ pub mod api_product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5026,9 +5056,9 @@ pub mod api_schema { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5047,6 +5077,9 @@ pub mod api_schema { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5501,9 +5534,9 @@ pub mod api_diagnostic { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5522,6 +5555,9 @@ pub mod api_diagnostic { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6032,9 +6068,9 @@ pub mod api_issue { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6053,6 +6089,9 @@ pub mod api_issue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6562,9 +6601,9 @@ pub mod api_issue_comment { &this.issue_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6583,6 +6622,9 @@ pub mod api_issue_comment { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6981,9 +7023,9 @@ pub mod api_issue_attachment { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/apis/{}/issues/{}/attachments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . api_id , & this . issue_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7002,6 +7044,9 @@ pub mod api_issue_attachment { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7396,9 +7441,9 @@ pub mod api_tag_description { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7417,6 +7462,9 @@ pub mod api_tag_description { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7772,9 +7820,9 @@ pub mod operation { &this.api_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7793,6 +7841,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7985,9 +8036,9 @@ pub mod api_version_set { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8006,6 +8057,9 @@ pub mod api_version_set { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8500,9 +8554,9 @@ pub mod authorization_server { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8521,6 +8575,9 @@ pub mod authorization_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9064,9 +9121,9 @@ pub mod backend { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9085,6 +9142,9 @@ pub mod backend { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9618,9 +9678,9 @@ pub mod cache { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9639,6 +9699,9 @@ pub mod cache { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10117,9 +10180,9 @@ pub mod certificate { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10138,6 +10201,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10636,9 +10702,9 @@ pub mod content_type { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10657,6 +10723,9 @@ pub mod content_type { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10993,9 +11062,9 @@ pub mod content_item { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/contentTypes/{}/contentItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . content_type_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11014,6 +11083,9 @@ pub mod content_item { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11313,9 +11385,9 @@ pub mod deleted_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11334,6 +11406,9 @@ pub mod deleted_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11504,9 +11579,9 @@ pub mod api_management_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ApiManagement/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11525,6 +11600,9 @@ pub mod api_management_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11602,9 +11680,9 @@ pub mod api_management_service_skus { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11623,6 +11701,9 @@ pub mod api_management_service_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12189,9 +12270,9 @@ pub mod api_management_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12210,6 +12291,9 @@ pub mod api_management_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12263,9 +12347,9 @@ pub mod api_management_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12284,6 +12368,9 @@ pub mod api_management_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12677,9 +12764,9 @@ pub mod diagnostic { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12698,6 +12785,9 @@ pub mod diagnostic { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13177,9 +13267,9 @@ pub mod email_template { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13198,6 +13288,9 @@ pub mod email_template { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13726,9 +13819,9 @@ pub mod gateway { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13747,6 +13840,9 @@ pub mod gateway { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14375,9 +14471,9 @@ pub mod gateway_hostname_configuration { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/gateways/{}/hostnameConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . gateway_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14396,6 +14492,9 @@ pub mod gateway_hostname_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14765,9 +14864,9 @@ pub mod gateway_api { &this.gateway_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14786,6 +14885,9 @@ pub mod gateway_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15143,9 +15245,9 @@ pub mod gateway_certificate_authority { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ApiManagement/service/{}/gateways/{}/certificateAuthorities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . gateway_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15164,6 +15266,9 @@ pub mod gateway_certificate_authority { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15561,9 +15666,9 @@ pub mod group { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15582,6 +15687,9 @@ pub mod group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16032,9 +16140,9 @@ pub mod group_user { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16053,6 +16161,9 @@ pub mod group_user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16411,9 +16522,9 @@ pub mod identity_provider { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16432,6 +16543,9 @@ pub mod identity_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16881,9 +16995,9 @@ pub mod issue { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16902,6 +17016,9 @@ pub mod issue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17143,9 +17260,9 @@ pub mod logger { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17164,6 +17281,9 @@ pub mod logger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17679,9 +17799,9 @@ pub mod named_value { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17700,6 +17820,9 @@ pub mod named_value { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18383,9 +18506,9 @@ pub mod notification { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18404,6 +18527,9 @@ pub mod notification { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19257,9 +19383,9 @@ pub mod open_id_connect_provider { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19278,6 +19404,9 @@ pub mod open_id_connect_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20810,9 +20939,9 @@ pub mod portal_revision { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20831,6 +20960,9 @@ pub mod portal_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23011,9 +23143,9 @@ pub mod product { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23032,6 +23164,9 @@ pub mod product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23428,9 +23563,9 @@ pub mod product { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23449,6 +23584,9 @@ pub mod product { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23612,9 +23750,9 @@ pub mod product_api { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23633,6 +23771,9 @@ pub mod product_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23965,9 +24106,9 @@ pub mod product_group { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23986,6 +24127,9 @@ pub mod product_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24267,9 +24411,9 @@ pub mod product_subscriptions { &this.product_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24288,6 +24432,9 @@ pub mod product_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25076,9 +25223,9 @@ pub mod region { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25097,6 +25244,9 @@ pub mod region { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25320,9 +25470,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25341,6 +25491,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25425,9 +25578,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25446,6 +25599,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25530,9 +25686,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25551,6 +25707,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25635,9 +25794,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25656,6 +25815,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25735,9 +25897,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25756,6 +25918,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25837,9 +26002,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25858,6 +26023,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25943,9 +26111,9 @@ pub mod reports { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25964,6 +26132,9 @@ pub mod reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26208,9 +26379,9 @@ pub mod global_schema { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26229,6 +26400,9 @@ pub mod global_schema { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26572,9 +26746,9 @@ pub mod tenant_settings { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26593,6 +26767,9 @@ pub mod tenant_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26715,9 +26892,9 @@ pub mod api_management_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26736,6 +26913,9 @@ pub mod api_management_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26963,9 +27143,9 @@ pub mod subscription { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26984,6 +27164,9 @@ pub mod subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27547,9 +27730,9 @@ pub mod tag_resource { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27568,6 +27751,9 @@ pub mod tag_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27772,9 +27958,9 @@ pub mod tenant_access { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27793,6 +27979,9 @@ pub mod tenant_access { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28815,9 +29004,9 @@ pub mod user { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28836,6 +29025,9 @@ pub mod user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29385,9 +29577,9 @@ pub mod user_group { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29406,6 +29598,9 @@ pub mod user_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29530,9 +29725,9 @@ pub mod user_subscription { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29551,6 +29746,9 @@ pub mod user_subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29696,9 +29894,9 @@ pub mod user_identities { &this.user_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29717,6 +29915,9 @@ pub mod user_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/app/src/package_2022_01_01_preview/models.rs b/services/mgmt/app/src/package_2022_01_01_preview/models.rs index c684af77d0..537d62a4fe 100644 --- a/services/mgmt/app/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/app/src/package_2022_01_01_preview/models.rs @@ -145,8 +145,8 @@ pub struct AuthConfigCollection { pub next_link: Option, } impl azure_core::Continuable for AuthConfigCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthConfigCollection { @@ -180,8 +180,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -501,8 +501,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -745,8 +745,8 @@ pub struct ContainerAppCollection { pub next_link: Option, } impl azure_core::Continuable for ContainerAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerAppCollection { @@ -1272,8 +1272,8 @@ pub struct DaprComponentsCollection { pub next_link: Option, } impl azure_core::Continuable for DaprComponentsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DaprComponentsCollection { @@ -1322,7 +1322,7 @@ pub struct DefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for DefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1928,8 +1928,8 @@ pub struct ManagedEnvironmentsCollection { pub next_link: Option, } impl azure_core::Continuable for ManagedEnvironmentsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedEnvironmentsCollection { @@ -2445,8 +2445,8 @@ pub struct RevisionCollection { pub next_link: Option, } impl azure_core::Continuable for RevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RevisionCollection { @@ -2626,8 +2626,8 @@ pub struct SourceControlCollection { pub next_link: Option, } impl azure_core::Continuable for SourceControlCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlCollection { diff --git a/services/mgmt/app/src/package_2022_01_01_preview/operations.rs b/services/mgmt/app/src/package_2022_01_01_preview/operations.rs index 81b08bacbe..840227c9c3 100644 --- a/services/mgmt/app/src/package_2022_01_01_preview/operations.rs +++ b/services/mgmt/app/src/package_2022_01_01_preview/operations.rs @@ -237,9 +237,9 @@ pub mod container_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -258,6 +258,9 @@ pub mod container_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -313,9 +316,9 @@ pub mod container_apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -334,6 +337,9 @@ pub mod container_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -815,9 +821,9 @@ pub mod container_apps_revisions { &this.container_app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -836,6 +842,9 @@ pub mod container_apps_revisions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1331,9 +1340,9 @@ pub mod managed_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1352,6 +1361,9 @@ pub mod managed_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1407,9 +1419,9 @@ pub mod managed_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1428,6 +1440,9 @@ pub mod managed_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1798,9 +1813,9 @@ pub mod certificates { &this.managed_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1819,6 +1834,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2105,9 +2123,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.App/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2126,6 +2144,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2253,9 +2274,9 @@ pub mod container_apps_source_controls { &this.container_app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2274,6 +2295,9 @@ pub mod container_apps_source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2579,9 +2603,9 @@ pub mod dapr_components { &this.environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2600,6 +2624,9 @@ pub mod dapr_components { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2892,9 +2919,9 @@ pub mod container_apps_auth_configs { &this.container_app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2913,6 +2940,9 @@ pub mod container_apps_auth_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/app/src/package_2022_03/models.rs b/services/mgmt/app/src/package_2022_03/models.rs index c20515ef22..ae49cef060 100644 --- a/services/mgmt/app/src/package_2022_03/models.rs +++ b/services/mgmt/app/src/package_2022_03/models.rs @@ -145,8 +145,8 @@ pub struct AuthConfigCollection { pub next_link: Option, } impl azure_core::Continuable for AuthConfigCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthConfigCollection { @@ -180,8 +180,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -501,8 +501,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -818,8 +818,8 @@ pub struct ContainerAppCollection { pub next_link: Option, } impl azure_core::Continuable for ContainerAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerAppCollection { @@ -1333,8 +1333,8 @@ pub struct DaprComponentsCollection { pub next_link: Option, } impl azure_core::Continuable for DaprComponentsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DaprComponentsCollection { @@ -1394,7 +1394,7 @@ pub struct DefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for DefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1997,8 +1997,8 @@ pub struct ManagedEnvironmentsCollection { pub next_link: Option, } impl azure_core::Continuable for ManagedEnvironmentsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedEnvironmentsCollection { @@ -2517,8 +2517,8 @@ pub struct RevisionCollection { pub next_link: Option, } impl azure_core::Continuable for RevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RevisionCollection { @@ -2698,8 +2698,8 @@ pub struct SourceControlCollection { pub next_link: Option, } impl azure_core::Continuable for SourceControlCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlCollection { diff --git a/services/mgmt/app/src/package_2022_03/operations.rs b/services/mgmt/app/src/package_2022_03/operations.rs index 56df29a035..2f9a3ccfce 100644 --- a/services/mgmt/app/src/package_2022_03/operations.rs +++ b/services/mgmt/app/src/package_2022_03/operations.rs @@ -200,9 +200,9 @@ pub mod container_apps_auth_configs { &this.container_app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -221,6 +221,9 @@ pub mod container_apps_auth_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -553,9 +556,9 @@ pub mod container_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -574,6 +577,9 @@ pub mod container_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -629,9 +635,9 @@ pub mod container_apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -650,6 +656,9 @@ pub mod container_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1134,9 +1143,9 @@ pub mod container_apps_revisions { &this.container_app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1155,6 +1164,9 @@ pub mod container_apps_revisions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1658,9 +1670,9 @@ pub mod dapr_components { &this.environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1679,6 +1691,9 @@ pub mod dapr_components { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1949,9 +1964,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.App/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1970,6 +1985,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2108,9 +2126,9 @@ pub mod managed_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2129,6 +2147,9 @@ pub mod managed_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2184,9 +2205,9 @@ pub mod managed_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2205,6 +2226,9 @@ pub mod managed_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2572,9 +2596,9 @@ pub mod certificates { &this.environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2593,6 +2617,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3312,9 +3339,9 @@ pub mod container_apps_source_controls { &this.container_app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3333,6 +3360,9 @@ pub mod container_apps_source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/appconfiguration/src/package_2020_06_01/models.rs b/services/mgmt/appconfiguration/src/package_2020_06_01/models.rs index 9d9f76fc2a..9f3c2ee37d 100644 --- a/services/mgmt/appconfiguration/src/package_2020_06_01/models.rs +++ b/services/mgmt/appconfiguration/src/package_2020_06_01/models.rs @@ -42,8 +42,8 @@ pub struct ApiKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ApiKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiKeyListResult { @@ -141,8 +141,8 @@ pub struct ConfigurationStoreListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationStoreListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationStoreListResult { @@ -361,7 +361,7 @@ pub struct Error { pub message: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -497,8 +497,8 @@ pub struct OperationDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for OperationDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationDefinitionListResult { @@ -550,8 +550,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -682,8 +682,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { diff --git a/services/mgmt/appconfiguration/src/package_2020_06_01/operations.rs b/services/mgmt/appconfiguration/src/package_2020_06_01/operations.rs index eea6b80325..dd86886f30 100644 --- a/services/mgmt/appconfiguration/src/package_2020_06_01/operations.rs +++ b/services/mgmt/appconfiguration/src/package_2020_06_01/operations.rs @@ -235,9 +235,9 @@ pub mod configuration_stores { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -256,6 +256,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -319,9 +322,9 @@ pub mod configuration_stores { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -340,6 +343,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -641,9 +647,9 @@ pub mod configuration_stores { &this.config_store_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -662,6 +668,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -891,9 +900,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -912,6 +921,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1032,9 +1044,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppConfiguration/configurationStores/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . config_store_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1053,6 +1065,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1295,9 +1310,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppConfiguration/configurationStores/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . config_store_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1316,6 +1331,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/appconfiguration/src/package_2020_07_01_preview/models.rs b/services/mgmt/appconfiguration/src/package_2020_07_01_preview/models.rs index e62e51ebfa..0d39cba1d8 100644 --- a/services/mgmt/appconfiguration/src/package_2020_07_01_preview/models.rs +++ b/services/mgmt/appconfiguration/src/package_2020_07_01_preview/models.rs @@ -42,8 +42,8 @@ pub struct ApiKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ApiKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiKeyListResult { @@ -141,8 +141,8 @@ pub struct ConfigurationStoreListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationStoreListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationStoreListResult { @@ -348,7 +348,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -389,8 +389,8 @@ pub struct KeyValueListResult { pub next_link: Option, } impl azure_core::Continuable for KeyValueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyValueListResult { @@ -586,8 +586,8 @@ pub struct OperationDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for OperationDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationDefinitionListResult { @@ -651,8 +651,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -783,8 +783,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { diff --git a/services/mgmt/appconfiguration/src/package_2020_07_01_preview/operations.rs b/services/mgmt/appconfiguration/src/package_2020_07_01_preview/operations.rs index 64558b3c0e..f1f0488715 100644 --- a/services/mgmt/appconfiguration/src/package_2020_07_01_preview/operations.rs +++ b/services/mgmt/appconfiguration/src/package_2020_07_01_preview/operations.rs @@ -223,9 +223,9 @@ pub mod configuration_stores { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -244,6 +244,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -307,9 +310,9 @@ pub mod configuration_stores { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -328,6 +331,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -629,9 +635,9 @@ pub mod configuration_stores { &this.config_store_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -650,6 +656,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -831,9 +840,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -852,6 +861,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -972,9 +984,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppConfiguration/configurationStores/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . config_store_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -993,6 +1005,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1235,9 +1250,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppConfiguration/configurationStores/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . config_store_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1256,6 +1271,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1431,9 +1449,9 @@ pub mod key_values { &this.config_store_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1452,6 +1470,9 @@ pub mod key_values { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/appconfiguration/src/package_2021_03_01_preview/models.rs b/services/mgmt/appconfiguration/src/package_2021_03_01_preview/models.rs index caf26a89c4..585376f3a7 100644 --- a/services/mgmt/appconfiguration/src/package_2021_03_01_preview/models.rs +++ b/services/mgmt/appconfiguration/src/package_2021_03_01_preview/models.rs @@ -42,8 +42,8 @@ pub struct ApiKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ApiKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiKeyListResult { @@ -145,8 +145,8 @@ pub struct ConfigurationStoreListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationStoreListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationStoreListResult { @@ -401,7 +401,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -442,8 +442,8 @@ pub struct KeyValueListResult { pub next_link: Option, } impl azure_core::Continuable for KeyValueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyValueListResult { @@ -642,8 +642,8 @@ pub struct OperationDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for OperationDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationDefinitionListResult { @@ -707,8 +707,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -839,8 +839,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { diff --git a/services/mgmt/appconfiguration/src/package_2021_03_01_preview/operations.rs b/services/mgmt/appconfiguration/src/package_2021_03_01_preview/operations.rs index 839dcd568a..d264c87bec 100644 --- a/services/mgmt/appconfiguration/src/package_2021_03_01_preview/operations.rs +++ b/services/mgmt/appconfiguration/src/package_2021_03_01_preview/operations.rs @@ -223,9 +223,9 @@ pub mod configuration_stores { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -244,6 +244,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -307,9 +310,9 @@ pub mod configuration_stores { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -328,6 +331,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -629,9 +635,9 @@ pub mod configuration_stores { &this.config_store_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -650,6 +656,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -831,9 +840,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -852,6 +861,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -972,9 +984,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppConfiguration/configurationStores/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . config_store_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -993,6 +1005,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1235,9 +1250,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppConfiguration/configurationStores/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . config_store_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1256,6 +1271,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1431,9 +1449,9 @@ pub mod key_values { &this.config_store_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1452,6 +1470,9 @@ pub mod key_values { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/appconfiguration/src/package_2021_10_01_preview/models.rs b/services/mgmt/appconfiguration/src/package_2021_10_01_preview/models.rs index 046e810510..d94664f797 100644 --- a/services/mgmt/appconfiguration/src/package_2021_10_01_preview/models.rs +++ b/services/mgmt/appconfiguration/src/package_2021_10_01_preview/models.rs @@ -42,8 +42,8 @@ pub struct ApiKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ApiKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiKeyListResult { @@ -145,8 +145,8 @@ pub struct ConfigurationStoreListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationStoreListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationStoreListResult { @@ -398,8 +398,8 @@ pub struct DeletedConfigurationStoreListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedConfigurationStoreListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedConfigurationStoreListResult { @@ -487,7 +487,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -528,8 +528,8 @@ pub struct KeyValueListResult { pub next_link: Option, } impl azure_core::Continuable for KeyValueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyValueListResult { @@ -728,8 +728,8 @@ pub struct OperationDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for OperationDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationDefinitionListResult { @@ -793,8 +793,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -925,8 +925,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { diff --git a/services/mgmt/appconfiguration/src/package_2021_10_01_preview/operations.rs b/services/mgmt/appconfiguration/src/package_2021_10_01_preview/operations.rs index f46061ed73..02f73e0b0a 100644 --- a/services/mgmt/appconfiguration/src/package_2021_10_01_preview/operations.rs +++ b/services/mgmt/appconfiguration/src/package_2021_10_01_preview/operations.rs @@ -255,9 +255,9 @@ pub mod configuration_stores { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -276,6 +276,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -339,9 +342,9 @@ pub mod configuration_stores { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -360,6 +363,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -661,9 +667,9 @@ pub mod configuration_stores { &this.config_store_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -682,6 +688,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -787,9 +796,9 @@ pub mod configuration_stores { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -808,6 +817,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1059,9 +1071,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1080,6 +1092,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1252,9 +1267,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppConfiguration/configurationStores/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . config_store_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1273,6 +1288,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1515,9 +1533,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppConfiguration/configurationStores/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . config_store_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1536,6 +1554,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1711,9 +1732,9 @@ pub mod key_values { &this.config_store_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1732,6 +1753,9 @@ pub mod key_values { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/appconfiguration/src/package_2022_05_01/models.rs b/services/mgmt/appconfiguration/src/package_2022_05_01/models.rs index 046e810510..d94664f797 100644 --- a/services/mgmt/appconfiguration/src/package_2022_05_01/models.rs +++ b/services/mgmt/appconfiguration/src/package_2022_05_01/models.rs @@ -42,8 +42,8 @@ pub struct ApiKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ApiKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiKeyListResult { @@ -145,8 +145,8 @@ pub struct ConfigurationStoreListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationStoreListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationStoreListResult { @@ -398,8 +398,8 @@ pub struct DeletedConfigurationStoreListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedConfigurationStoreListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedConfigurationStoreListResult { @@ -487,7 +487,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -528,8 +528,8 @@ pub struct KeyValueListResult { pub next_link: Option, } impl azure_core::Continuable for KeyValueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyValueListResult { @@ -728,8 +728,8 @@ pub struct OperationDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for OperationDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationDefinitionListResult { @@ -793,8 +793,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -925,8 +925,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { diff --git a/services/mgmt/appconfiguration/src/package_2022_05_01/operations.rs b/services/mgmt/appconfiguration/src/package_2022_05_01/operations.rs index ccd08ff55f..8538bf3668 100644 --- a/services/mgmt/appconfiguration/src/package_2022_05_01/operations.rs +++ b/services/mgmt/appconfiguration/src/package_2022_05_01/operations.rs @@ -255,9 +255,9 @@ pub mod configuration_stores { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -276,6 +276,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -339,9 +342,9 @@ pub mod configuration_stores { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -360,6 +363,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -661,9 +667,9 @@ pub mod configuration_stores { &this.config_store_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -682,6 +688,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -787,9 +796,9 @@ pub mod configuration_stores { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -808,6 +817,9 @@ pub mod configuration_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1059,9 +1071,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1080,6 +1092,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1252,9 +1267,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppConfiguration/configurationStores/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . config_store_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1273,6 +1288,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1515,9 +1533,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppConfiguration/configurationStores/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . config_store_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1536,6 +1554,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1711,9 +1732,9 @@ pub mod key_values { &this.config_store_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1732,6 +1753,9 @@ pub mod key_values { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs b/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs index 9e195ee4a6..08f0109f5f 100644 --- a/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs @@ -63,7 +63,7 @@ pub struct AnnotationError { pub innererror: Option, } impl azure_core::Continuable for AnnotationError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -80,7 +80,7 @@ pub struct AnnotationsListResult { pub value: Vec, } impl azure_core::Continuable for AnnotationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -147,7 +147,7 @@ pub struct ApplicationInsightsComponentApiKeyListResult { pub value: Vec, } impl azure_core::Continuable for ApplicationInsightsComponentApiKeyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -631,8 +631,8 @@ pub struct ApplicationInsightsComponentListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationInsightsComponentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationInsightsComponentListResult { @@ -1029,7 +1029,7 @@ pub struct ApplicationInsightsWebTestLocationsListResult { pub value: Vec, } impl azure_core::Continuable for ApplicationInsightsWebTestLocationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1221,7 +1221,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1237,7 +1237,7 @@ pub struct ErrorResponseComponents { pub error: Option, } impl azure_core::Continuable for ErrorResponseComponents { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1484,7 +1484,7 @@ pub struct MyWorkbookError { pub error: Option, } impl azure_core::Continuable for MyWorkbookError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1617,8 +1617,8 @@ pub struct MyWorkbooksListResult { pub next_link: Option, } impl azure_core::Continuable for MyWorkbooksListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MyWorkbooksListResult { @@ -1694,8 +1694,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2081,7 +2081,7 @@ pub struct WorkItemConfigurationError { pub innererror: Option, } impl azure_core::Continuable for WorkItemConfigurationError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2098,7 +2098,7 @@ pub struct WorkItemConfigurationsListResult { pub value: Vec, } impl azure_core::Continuable for WorkItemConfigurationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2157,7 +2157,7 @@ pub struct WorkbookError { pub error: Option, } impl azure_core::Continuable for WorkbookError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2368,7 +2368,7 @@ pub struct WorkbookTemplateError { pub error: Option, } impl azure_core::Continuable for WorkbookTemplateError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2533,7 +2533,7 @@ pub struct WorkbookTemplatesListResult { pub value: Vec, } impl azure_core::Continuable for WorkbookTemplatesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2612,8 +2612,8 @@ pub struct WorkbooksListResult { pub next_link: Option, } impl azure_core::Continuable for WorkbooksListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkbooksListResult { @@ -2743,8 +2743,8 @@ pub struct WebTestListResult { pub next_link: Option, } impl azure_core::Continuable for WebTestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebTestListResult { diff --git a/services/mgmt/applicationinsights/src/package_2022_01_11/operations.rs b/services/mgmt/applicationinsights/src/package_2022_01_11/operations.rs index 9c782d4674..95dd966e33 100644 --- a/services/mgmt/applicationinsights/src/package_2022_01_11/operations.rs +++ b/services/mgmt/applicationinsights/src/package_2022_01_11/operations.rs @@ -158,9 +158,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Insights/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -179,6 +179,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2683,9 +2686,9 @@ pub mod web_tests { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2704,6 +2707,9 @@ pub mod web_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2970,9 +2976,9 @@ pub mod web_tests { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2991,6 +2997,9 @@ pub mod web_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3048,9 +3057,9 @@ pub mod web_tests { &this.component_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3069,6 +3078,9 @@ pub mod web_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3947,9 +3959,9 @@ pub mod my_workbooks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3968,6 +3980,9 @@ pub mod my_workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4042,9 +4057,9 @@ pub mod my_workbooks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4063,6 +4078,9 @@ pub mod my_workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4493,9 +4511,9 @@ pub mod workbooks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4514,6 +4532,9 @@ pub mod workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4592,9 +4613,9 @@ pub mod workbooks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4613,6 +4634,9 @@ pub mod workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4936,9 +4960,9 @@ pub mod workbooks { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4957,6 +4981,9 @@ pub mod workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5173,9 +5200,9 @@ pub mod components { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5194,6 +5221,9 @@ pub mod components { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5249,9 +5279,9 @@ pub mod components { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5270,6 +5300,9 @@ pub mod components { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs b/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs index 9e195ee4a6..08f0109f5f 100644 --- a/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs @@ -63,7 +63,7 @@ pub struct AnnotationError { pub innererror: Option, } impl azure_core::Continuable for AnnotationError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -80,7 +80,7 @@ pub struct AnnotationsListResult { pub value: Vec, } impl azure_core::Continuable for AnnotationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -147,7 +147,7 @@ pub struct ApplicationInsightsComponentApiKeyListResult { pub value: Vec, } impl azure_core::Continuable for ApplicationInsightsComponentApiKeyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -631,8 +631,8 @@ pub struct ApplicationInsightsComponentListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationInsightsComponentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationInsightsComponentListResult { @@ -1029,7 +1029,7 @@ pub struct ApplicationInsightsWebTestLocationsListResult { pub value: Vec, } impl azure_core::Continuable for ApplicationInsightsWebTestLocationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1221,7 +1221,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1237,7 +1237,7 @@ pub struct ErrorResponseComponents { pub error: Option, } impl azure_core::Continuable for ErrorResponseComponents { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1484,7 +1484,7 @@ pub struct MyWorkbookError { pub error: Option, } impl azure_core::Continuable for MyWorkbookError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1617,8 +1617,8 @@ pub struct MyWorkbooksListResult { pub next_link: Option, } impl azure_core::Continuable for MyWorkbooksListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MyWorkbooksListResult { @@ -1694,8 +1694,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2081,7 +2081,7 @@ pub struct WorkItemConfigurationError { pub innererror: Option, } impl azure_core::Continuable for WorkItemConfigurationError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2098,7 +2098,7 @@ pub struct WorkItemConfigurationsListResult { pub value: Vec, } impl azure_core::Continuable for WorkItemConfigurationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2157,7 +2157,7 @@ pub struct WorkbookError { pub error: Option, } impl azure_core::Continuable for WorkbookError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2368,7 +2368,7 @@ pub struct WorkbookTemplateError { pub error: Option, } impl azure_core::Continuable for WorkbookTemplateError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2533,7 +2533,7 @@ pub struct WorkbookTemplatesListResult { pub value: Vec, } impl azure_core::Continuable for WorkbookTemplatesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2612,8 +2612,8 @@ pub struct WorkbooksListResult { pub next_link: Option, } impl azure_core::Continuable for WorkbooksListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkbooksListResult { @@ -2743,8 +2743,8 @@ pub struct WebTestListResult { pub next_link: Option, } impl azure_core::Continuable for WebTestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebTestListResult { diff --git a/services/mgmt/applicationinsights/src/package_2022_02_01/operations.rs b/services/mgmt/applicationinsights/src/package_2022_02_01/operations.rs index 9c782d4674..95dd966e33 100644 --- a/services/mgmt/applicationinsights/src/package_2022_02_01/operations.rs +++ b/services/mgmt/applicationinsights/src/package_2022_02_01/operations.rs @@ -158,9 +158,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Insights/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -179,6 +179,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2683,9 +2686,9 @@ pub mod web_tests { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2704,6 +2707,9 @@ pub mod web_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2970,9 +2976,9 @@ pub mod web_tests { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2991,6 +2997,9 @@ pub mod web_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3048,9 +3057,9 @@ pub mod web_tests { &this.component_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3069,6 +3078,9 @@ pub mod web_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3947,9 +3959,9 @@ pub mod my_workbooks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3968,6 +3980,9 @@ pub mod my_workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4042,9 +4057,9 @@ pub mod my_workbooks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4063,6 +4078,9 @@ pub mod my_workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4493,9 +4511,9 @@ pub mod workbooks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4514,6 +4532,9 @@ pub mod workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4592,9 +4613,9 @@ pub mod workbooks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4613,6 +4634,9 @@ pub mod workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4936,9 +4960,9 @@ pub mod workbooks { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4957,6 +4981,9 @@ pub mod workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5173,9 +5200,9 @@ pub mod components { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5194,6 +5221,9 @@ pub mod components { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5249,9 +5279,9 @@ pub mod components { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5270,6 +5300,9 @@ pub mod components { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs b/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs index f15b02ed1f..e46aad6e56 100644 --- a/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs @@ -63,7 +63,7 @@ pub struct AnnotationError { pub innererror: Option, } impl azure_core::Continuable for AnnotationError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -80,7 +80,7 @@ pub struct AnnotationsListResult { pub value: Vec, } impl azure_core::Continuable for AnnotationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -147,7 +147,7 @@ pub struct ApplicationInsightsComponentApiKeyListResult { pub value: Vec, } impl azure_core::Continuable for ApplicationInsightsComponentApiKeyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -631,8 +631,8 @@ pub struct ApplicationInsightsComponentListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationInsightsComponentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationInsightsComponentListResult { @@ -1029,7 +1029,7 @@ pub struct ApplicationInsightsWebTestLocationsListResult { pub value: Vec, } impl azure_core::Continuable for ApplicationInsightsWebTestLocationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1221,7 +1221,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1237,7 +1237,7 @@ pub struct ErrorResponseComponents { pub error: Option, } impl azure_core::Continuable for ErrorResponseComponents { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1484,7 +1484,7 @@ pub struct MyWorkbookError { pub error: Option, } impl azure_core::Continuable for MyWorkbookError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1617,8 +1617,8 @@ pub struct MyWorkbooksListResult { pub next_link: Option, } impl azure_core::Continuable for MyWorkbooksListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MyWorkbooksListResult { @@ -1694,8 +1694,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2081,7 +2081,7 @@ pub struct WorkItemConfigurationError { pub innererror: Option, } impl azure_core::Continuable for WorkItemConfigurationError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2098,7 +2098,7 @@ pub struct WorkItemConfigurationsListResult { pub value: Vec, } impl azure_core::Continuable for WorkItemConfigurationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2157,7 +2157,7 @@ pub struct WorkbookError { pub error: Option, } impl azure_core::Continuable for WorkbookError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2365,7 +2365,7 @@ pub struct WorkbookTemplateError { pub error: Option, } impl azure_core::Continuable for WorkbookTemplateError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2530,7 +2530,7 @@ pub struct WorkbookTemplatesListResult { pub value: Vec, } impl azure_core::Continuable for WorkbookTemplatesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2606,8 +2606,8 @@ pub struct WorkbooksListResult { pub next_link: Option, } impl azure_core::Continuable for WorkbooksListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkbooksListResult { @@ -2737,8 +2737,8 @@ pub struct WebTestListResult { pub next_link: Option, } impl azure_core::Continuable for WebTestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebTestListResult { diff --git a/services/mgmt/applicationinsights/src/package_2022_04_01/operations.rs b/services/mgmt/applicationinsights/src/package_2022_04_01/operations.rs index 4e2b40fdd1..99fc85e682 100644 --- a/services/mgmt/applicationinsights/src/package_2022_04_01/operations.rs +++ b/services/mgmt/applicationinsights/src/package_2022_04_01/operations.rs @@ -158,9 +158,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Insights/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -179,6 +179,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2683,9 +2686,9 @@ pub mod web_tests { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2704,6 +2707,9 @@ pub mod web_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2970,9 +2976,9 @@ pub mod web_tests { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2991,6 +2997,9 @@ pub mod web_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3048,9 +3057,9 @@ pub mod web_tests { &this.component_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3069,6 +3078,9 @@ pub mod web_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3947,9 +3959,9 @@ pub mod my_workbooks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3968,6 +3980,9 @@ pub mod my_workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4042,9 +4057,9 @@ pub mod my_workbooks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4063,6 +4078,9 @@ pub mod my_workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4493,9 +4511,9 @@ pub mod workbooks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4514,6 +4532,9 @@ pub mod workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4592,9 +4613,9 @@ pub mod workbooks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4613,6 +4634,9 @@ pub mod workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4936,9 +4960,9 @@ pub mod workbooks { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4957,6 +4981,9 @@ pub mod workbooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5173,9 +5200,9 @@ pub mod components { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5194,6 +5221,9 @@ pub mod components { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5249,9 +5279,9 @@ pub mod components { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5270,6 +5300,9 @@ pub mod components { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/applicationinsights/src/package_preview_2020_02/models.rs b/services/mgmt/applicationinsights/src/package_preview_2020_02/models.rs index eb6d7fb7e4..04d4c9ea88 100644 --- a/services/mgmt/applicationinsights/src/package_preview_2020_02/models.rs +++ b/services/mgmt/applicationinsights/src/package_preview_2020_02/models.rs @@ -72,8 +72,8 @@ pub struct OperationsListResult { pub next_link: Option, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsListResult { diff --git a/services/mgmt/applicationinsights/src/package_preview_2020_02/operations.rs b/services/mgmt/applicationinsights/src/package_preview_2020_02/operations.rs index 0c34be082d..0c3d4dc7b1 100644 --- a/services/mgmt/applicationinsights/src/package_preview_2020_02/operations.rs +++ b/services/mgmt/applicationinsights/src/package_preview_2020_02/operations.rs @@ -102,9 +102,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/microsoft.insights/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -123,6 +123,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/appplatform/src/package_preview_2021_06/models.rs b/services/mgmt/appplatform/src/package_preview_2021_06/models.rs index 5ecfca0467..c809bcf297 100644 --- a/services/mgmt/appplatform/src/package_preview_2021_06/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2021_06/models.rs @@ -35,8 +35,8 @@ pub struct AppResourceCollection { pub next_link: Option, } impl azure_core::Continuable for AppResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppResourceCollection { @@ -138,8 +138,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -183,8 +183,8 @@ pub struct BindingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BindingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BindingResourceCollection { @@ -300,8 +300,8 @@ pub struct CertificateResourceCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateResourceCollection { @@ -317,7 +317,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -661,8 +661,8 @@ pub struct CustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for CustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainResourceCollection { @@ -748,8 +748,8 @@ pub struct DeploymentResourceCollection { pub next_link: Option, } impl azure_core::Continuable for DeploymentResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentResourceCollection { @@ -1688,8 +1688,8 @@ pub struct ResourceSkuCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuCollection { @@ -1886,8 +1886,8 @@ pub struct ServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceList { diff --git a/services/mgmt/appplatform/src/package_preview_2021_06/operations.rs b/services/mgmt/appplatform/src/package_preview_2021_06/operations.rs index 679b5c9ca1..9239a07253 100644 --- a/services/mgmt/appplatform/src/package_preview_2021_06/operations.rs +++ b/services/mgmt/appplatform/src/package_preview_2021_06/operations.rs @@ -769,9 +769,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -790,6 +790,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -845,9 +848,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -866,6 +869,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1834,9 +1840,9 @@ pub mod apps { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1855,6 +1861,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2376,9 +2385,9 @@ pub mod bindings { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2397,6 +2406,9 @@ pub mod bindings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2704,9 +2716,9 @@ pub mod certificates { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2725,6 +2737,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3135,9 +3150,9 @@ pub mod custom_domains { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3156,6 +3171,9 @@ pub mod custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3654,9 +3672,9 @@ pub mod deployments { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3675,6 +3693,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3741,9 +3762,9 @@ pub mod deployments { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3762,6 +3783,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4047,9 +4071,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AppPlatform/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4068,6 +4092,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4188,9 +4215,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4209,6 +4236,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/appplatform/src/package_preview_2021_09/models.rs b/services/mgmt/appplatform/src/package_preview_2021_09/models.rs index 929a11bfbf..72ffddb84a 100644 --- a/services/mgmt/appplatform/src/package_preview_2021_09/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2021_09/models.rs @@ -35,8 +35,8 @@ pub struct AppResourceCollection { pub next_link: Option, } impl azure_core::Continuable for AppResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppResourceCollection { @@ -144,8 +144,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -206,8 +206,8 @@ pub struct BindingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BindingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BindingResourceCollection { @@ -315,8 +315,8 @@ pub struct CertificateResourceCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateResourceCollection { @@ -332,7 +332,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -737,8 +737,8 @@ pub struct CustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for CustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainResourceCollection { @@ -907,8 +907,8 @@ pub struct DeploymentResourceCollection { pub next_link: Option, } impl azure_core::Continuable for DeploymentResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentResourceCollection { @@ -1928,8 +1928,8 @@ pub struct ResourceSkuCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuCollection { @@ -2126,8 +2126,8 @@ pub struct ServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceList { @@ -2334,8 +2334,8 @@ pub struct StorageResourceCollection { pub next_link: Option, } impl azure_core::Continuable for StorageResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageResourceCollection { diff --git a/services/mgmt/appplatform/src/package_preview_2021_09/operations.rs b/services/mgmt/appplatform/src/package_preview_2021_09/operations.rs index 51ad64681c..5215135f35 100644 --- a/services/mgmt/appplatform/src/package_preview_2021_09/operations.rs +++ b/services/mgmt/appplatform/src/package_preview_2021_09/operations.rs @@ -898,9 +898,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -919,6 +919,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -974,9 +977,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -995,6 +998,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1963,9 +1969,9 @@ pub mod apps { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1984,6 +1990,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2505,9 +2514,9 @@ pub mod bindings { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2526,6 +2535,9 @@ pub mod bindings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2833,9 +2845,9 @@ pub mod storages { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2854,6 +2866,9 @@ pub mod storages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3161,9 +3176,9 @@ pub mod certificates { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3182,6 +3197,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3592,9 +3610,9 @@ pub mod custom_domains { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3613,6 +3631,9 @@ pub mod custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4168,9 +4189,9 @@ pub mod deployments { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4189,6 +4210,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4255,9 +4279,9 @@ pub mod deployments { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4276,6 +4300,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4717,9 +4744,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AppPlatform/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4738,6 +4765,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4858,9 +4888,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4879,6 +4909,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/appplatform/src/package_preview_2022_01/models.rs b/services/mgmt/appplatform/src/package_preview_2022_01/models.rs index 2fa3708ddb..c0d2cfd293 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_01/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_01/models.rs @@ -61,8 +61,8 @@ pub struct ApiPortalCustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiPortalCustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiPortalCustomDomainResourceCollection { @@ -195,8 +195,8 @@ pub struct ApiPortalResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiPortalResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiPortalResourceCollection { @@ -250,8 +250,8 @@ pub struct AppResourceCollection { pub next_link: Option, } impl azure_core::Continuable for AppResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppResourceCollection { @@ -358,8 +358,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -420,8 +420,8 @@ pub struct BindingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BindingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BindingResourceCollection { @@ -487,8 +487,8 @@ pub struct BuildCollection { pub next_link: Option, } impl azure_core::Continuable for BuildCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildCollection { @@ -594,8 +594,8 @@ pub struct BuildResultCollection { pub next_link: Option, } impl azure_core::Continuable for BuildResultCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildResultCollection { @@ -753,8 +753,8 @@ pub struct BuildServiceAgentPoolResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BuildServiceAgentPoolResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildServiceAgentPoolResourceCollection { @@ -791,8 +791,8 @@ pub struct BuildServiceCollection { pub next_link: Option, } impl azure_core::Continuable for BuildServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildServiceCollection { @@ -1027,8 +1027,8 @@ pub struct BuilderResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BuilderResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuilderResourceCollection { @@ -1186,8 +1186,8 @@ pub struct BuildpackBindingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BuildpackBindingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildpackBindingResourceCollection { @@ -1289,8 +1289,8 @@ pub struct CertificateResourceCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateResourceCollection { @@ -1306,7 +1306,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1817,8 +1817,8 @@ pub struct ConfigurationServiceResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ConfigurationServiceResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationServiceResourceCollection { @@ -1981,8 +1981,8 @@ pub struct CustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for CustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainResourceCollection { @@ -2154,8 +2154,8 @@ pub struct DeploymentResourceCollection { pub next_link: Option, } impl azure_core::Continuable for DeploymentResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentResourceCollection { @@ -2449,8 +2449,8 @@ pub struct GatewayCustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCustomDomainResourceCollection { @@ -2619,8 +2619,8 @@ pub struct GatewayResourceCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayResourceCollection { @@ -2732,8 +2732,8 @@ pub struct GatewayRouteConfigResourceCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayRouteConfigResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayRouteConfigResourceCollection { @@ -3546,8 +3546,8 @@ pub struct ResourceSkuCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuCollection { @@ -3820,8 +3820,8 @@ pub struct ServiceRegistryResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ServiceRegistryResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceRegistryResourceCollection { @@ -3875,8 +3875,8 @@ pub struct ServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceList { @@ -4137,8 +4137,8 @@ pub struct StorageResourceCollection { pub next_link: Option, } impl azure_core::Continuable for StorageResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageResourceCollection { diff --git a/services/mgmt/appplatform/src/package_preview_2022_01/operations.rs b/services/mgmt/appplatform/src/package_preview_2022_01/operations.rs index 77436fb421..844edc2d59 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_01/operations.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_01/operations.rs @@ -933,9 +933,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -954,6 +954,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1009,9 +1012,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1030,6 +1033,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1656,9 +1662,9 @@ pub mod configuration_services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1677,6 +1683,9 @@ pub mod configuration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2033,9 +2042,9 @@ pub mod service_registries { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2054,6 +2063,9 @@ pub mod service_registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2330,9 +2342,9 @@ pub mod build_service { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2351,6 +2363,9 @@ pub mod build_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2464,9 +2479,9 @@ pub mod build_service { &this.build_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2485,6 +2500,9 @@ pub mod build_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2661,9 +2679,9 @@ pub mod build_service { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppPlatform/Spring/{}/buildServices/{}/builds/{}/results" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . build_service_name , & this . build_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2682,6 +2700,9 @@ pub mod build_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3317,9 +3338,9 @@ pub mod buildpack_binding { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppPlatform/Spring/{}/buildServices/{}/builders/{}/buildpackBindings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . build_service_name , & this . builder_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3338,6 +3359,9 @@ pub mod buildpack_binding { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3655,9 +3679,9 @@ pub mod build_service_builder { &this.build_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3676,6 +3700,9 @@ pub mod build_service_builder { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3792,9 +3819,9 @@ pub mod build_service_agent_pool { &this.build_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3813,6 +3840,9 @@ pub mod build_service_agent_pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4598,9 +4628,9 @@ pub mod apps { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4619,6 +4649,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5206,9 +5239,9 @@ pub mod bindings { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5227,6 +5260,9 @@ pub mod bindings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5534,9 +5570,9 @@ pub mod storages { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5555,6 +5591,9 @@ pub mod storages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5862,9 +5901,9 @@ pub mod certificates { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5883,6 +5922,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6293,9 +6335,9 @@ pub mod custom_domains { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6314,6 +6356,9 @@ pub mod custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6869,9 +6914,9 @@ pub mod deployments { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6890,6 +6935,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6956,9 +7004,9 @@ pub mod deployments { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6977,6 +7025,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7418,9 +7469,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AppPlatform/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7439,6 +7490,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7559,9 +7613,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7580,6 +7634,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7898,9 +7955,9 @@ pub mod gateways { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7919,6 +7976,9 @@ pub mod gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8292,9 +8352,9 @@ pub mod gateway_route_configs { &this.gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8313,6 +8373,9 @@ pub mod gateway_route_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8630,9 +8693,9 @@ pub mod gateway_custom_domains { &this.gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8651,6 +8714,9 @@ pub mod gateway_custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8969,9 +9035,9 @@ pub mod api_portals { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8990,6 +9056,9 @@ pub mod api_portals { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9363,9 +9432,9 @@ pub mod api_portal_custom_domains { &this.api_portal_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9384,6 +9453,9 @@ pub mod api_portal_custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/appplatform/src/package_preview_2022_03/models.rs b/services/mgmt/appplatform/src/package_preview_2022_03/models.rs index cf4d2dfd89..a9c66dbb33 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_03/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_03/models.rs @@ -61,8 +61,8 @@ pub struct ApiPortalCustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiPortalCustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiPortalCustomDomainResourceCollection { @@ -195,8 +195,8 @@ pub struct ApiPortalResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiPortalResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiPortalResourceCollection { @@ -250,8 +250,8 @@ pub struct AppResourceCollection { pub next_link: Option, } impl azure_core::Continuable for AppResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppResourceCollection { @@ -358,8 +358,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -420,8 +420,8 @@ pub struct BindingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BindingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BindingResourceCollection { @@ -487,8 +487,8 @@ pub struct BuildCollection { pub next_link: Option, } impl azure_core::Continuable for BuildCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildCollection { @@ -594,8 +594,8 @@ pub struct BuildResultCollection { pub next_link: Option, } impl azure_core::Continuable for BuildResultCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildResultCollection { @@ -753,8 +753,8 @@ pub struct BuildServiceAgentPoolResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BuildServiceAgentPoolResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildServiceAgentPoolResourceCollection { @@ -791,8 +791,8 @@ pub struct BuildServiceCollection { pub next_link: Option, } impl azure_core::Continuable for BuildServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildServiceCollection { @@ -1027,8 +1027,8 @@ pub struct BuilderResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BuilderResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuilderResourceCollection { @@ -1186,8 +1186,8 @@ pub struct BuildpackBindingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BuildpackBindingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildpackBindingResourceCollection { @@ -1289,8 +1289,8 @@ pub struct CertificateResourceCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateResourceCollection { @@ -1306,7 +1306,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1817,8 +1817,8 @@ pub struct ConfigurationServiceResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ConfigurationServiceResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationServiceResourceCollection { @@ -1984,8 +1984,8 @@ pub struct CustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for CustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainResourceCollection { @@ -2157,8 +2157,8 @@ pub struct DeploymentResourceCollection { pub next_link: Option, } impl azure_core::Continuable for DeploymentResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentResourceCollection { @@ -2452,8 +2452,8 @@ pub struct GatewayCustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCustomDomainResourceCollection { @@ -2622,8 +2622,8 @@ pub struct GatewayResourceCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayResourceCollection { @@ -2735,8 +2735,8 @@ pub struct GatewayRouteConfigResourceCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayRouteConfigResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayRouteConfigResourceCollection { @@ -3552,8 +3552,8 @@ pub struct ResourceSkuCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuCollection { @@ -3826,8 +3826,8 @@ pub struct ServiceRegistryResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ServiceRegistryResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceRegistryResourceCollection { @@ -3881,8 +3881,8 @@ pub struct ServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceList { @@ -4143,8 +4143,8 @@ pub struct StorageResourceCollection { pub next_link: Option, } impl azure_core::Continuable for StorageResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageResourceCollection { diff --git a/services/mgmt/appplatform/src/package_preview_2022_03/operations.rs b/services/mgmt/appplatform/src/package_preview_2022_03/operations.rs index f0b9389c59..ab7cd88212 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_03/operations.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_03/operations.rs @@ -933,9 +933,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -954,6 +954,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1009,9 +1012,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1030,6 +1033,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1656,9 +1662,9 @@ pub mod configuration_services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1677,6 +1683,9 @@ pub mod configuration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2033,9 +2042,9 @@ pub mod service_registries { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2054,6 +2063,9 @@ pub mod service_registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2330,9 +2342,9 @@ pub mod build_service { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2351,6 +2363,9 @@ pub mod build_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2464,9 +2479,9 @@ pub mod build_service { &this.build_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2485,6 +2500,9 @@ pub mod build_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2661,9 +2679,9 @@ pub mod build_service { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppPlatform/Spring/{}/buildServices/{}/builds/{}/results" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . build_service_name , & this . build_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2682,6 +2700,9 @@ pub mod build_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3317,9 +3338,9 @@ pub mod buildpack_binding { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppPlatform/Spring/{}/buildServices/{}/builders/{}/buildpackBindings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . build_service_name , & this . builder_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3338,6 +3359,9 @@ pub mod buildpack_binding { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3655,9 +3679,9 @@ pub mod build_service_builder { &this.build_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3676,6 +3700,9 @@ pub mod build_service_builder { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3792,9 +3819,9 @@ pub mod build_service_agent_pool { &this.build_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3813,6 +3840,9 @@ pub mod build_service_agent_pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4598,9 +4628,9 @@ pub mod apps { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4619,6 +4649,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5206,9 +5239,9 @@ pub mod bindings { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5227,6 +5260,9 @@ pub mod bindings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5534,9 +5570,9 @@ pub mod storages { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5555,6 +5591,9 @@ pub mod storages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5862,9 +5901,9 @@ pub mod certificates { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5883,6 +5922,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6293,9 +6335,9 @@ pub mod custom_domains { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6314,6 +6356,9 @@ pub mod custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6869,9 +6914,9 @@ pub mod deployments { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6890,6 +6935,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6956,9 +7004,9 @@ pub mod deployments { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6977,6 +7025,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7418,9 +7469,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AppPlatform/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7439,6 +7490,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7559,9 +7613,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7580,6 +7634,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7898,9 +7955,9 @@ pub mod gateways { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7919,6 +7976,9 @@ pub mod gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8292,9 +8352,9 @@ pub mod gateway_route_configs { &this.gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8313,6 +8373,9 @@ pub mod gateway_route_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8630,9 +8693,9 @@ pub mod gateway_custom_domains { &this.gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8651,6 +8714,9 @@ pub mod gateway_custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8969,9 +9035,9 @@ pub mod api_portals { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8990,6 +9056,9 @@ pub mod api_portals { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9363,9 +9432,9 @@ pub mod api_portal_custom_domains { &this.api_portal_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9384,6 +9453,9 @@ pub mod api_portal_custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/appplatform/src/package_preview_2022_05/models.rs b/services/mgmt/appplatform/src/package_preview_2022_05/models.rs index 911c38b015..d247292691 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_05/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_05/models.rs @@ -61,8 +61,8 @@ pub struct ApiPortalCustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiPortalCustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiPortalCustomDomainResourceCollection { @@ -195,8 +195,8 @@ pub struct ApiPortalResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiPortalResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiPortalResourceCollection { @@ -250,8 +250,8 @@ pub struct AppResourceCollection { pub next_link: Option, } impl azure_core::Continuable for AppResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppResourceCollection { @@ -376,8 +376,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -438,8 +438,8 @@ pub struct BindingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BindingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BindingResourceCollection { @@ -505,8 +505,8 @@ pub struct BuildCollection { pub next_link: Option, } impl azure_core::Continuable for BuildCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildCollection { @@ -630,8 +630,8 @@ pub struct BuildResultCollection { pub next_link: Option, } impl azure_core::Continuable for BuildResultCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildResultCollection { @@ -789,8 +789,8 @@ pub struct BuildServiceAgentPoolResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BuildServiceAgentPoolResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildServiceAgentPoolResourceCollection { @@ -827,8 +827,8 @@ pub struct BuildServiceCollection { pub next_link: Option, } impl azure_core::Continuable for BuildServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildServiceCollection { @@ -1063,8 +1063,8 @@ pub struct BuilderResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BuilderResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuilderResourceCollection { @@ -1222,8 +1222,8 @@ pub struct BuildpackBindingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for BuildpackBindingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BuildpackBindingResourceCollection { @@ -1375,8 +1375,8 @@ pub struct CertificateResourceCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateResourceCollection { @@ -1392,7 +1392,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1909,8 +1909,8 @@ pub struct ConfigurationServiceResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ConfigurationServiceResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationServiceResourceCollection { @@ -2125,8 +2125,8 @@ pub struct CustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for CustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainResourceCollection { @@ -2298,8 +2298,8 @@ pub struct DeploymentResourceCollection { pub next_link: Option, } impl azure_core::Continuable for DeploymentResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentResourceCollection { @@ -2622,8 +2622,8 @@ pub struct GatewayCustomDomainResourceCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayCustomDomainResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayCustomDomainResourceCollection { @@ -2792,8 +2792,8 @@ pub struct GatewayResourceCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayResourceCollection { @@ -2920,8 +2920,8 @@ pub struct GatewayRouteConfigResourceCollection { pub next_link: Option, } impl azure_core::Continuable for GatewayRouteConfigResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayRouteConfigResourceCollection { @@ -3927,8 +3927,8 @@ pub struct ResourceSkuCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuCollection { @@ -4201,8 +4201,8 @@ pub struct ServiceRegistryResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ServiceRegistryResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceRegistryResourceCollection { @@ -4256,8 +4256,8 @@ pub struct ServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceList { @@ -4530,8 +4530,8 @@ pub struct StorageResourceCollection { pub next_link: Option, } impl azure_core::Continuable for StorageResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageResourceCollection { diff --git a/services/mgmt/appplatform/src/package_preview_2022_05/operations.rs b/services/mgmt/appplatform/src/package_preview_2022_05/operations.rs index 057c5db1a0..be005320ed 100644 --- a/services/mgmt/appplatform/src/package_preview_2022_05/operations.rs +++ b/services/mgmt/appplatform/src/package_preview_2022_05/operations.rs @@ -933,9 +933,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -954,6 +954,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1009,9 +1012,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1030,6 +1033,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1656,9 +1662,9 @@ pub mod configuration_services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1677,6 +1683,9 @@ pub mod configuration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2033,9 +2042,9 @@ pub mod service_registries { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2054,6 +2063,9 @@ pub mod service_registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2330,9 +2342,9 @@ pub mod build_service { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2351,6 +2363,9 @@ pub mod build_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2464,9 +2479,9 @@ pub mod build_service { &this.build_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2485,6 +2500,9 @@ pub mod build_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2661,9 +2679,9 @@ pub mod build_service { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppPlatform/Spring/{}/buildServices/{}/builds/{}/results" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . build_service_name , & this . build_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2682,6 +2700,9 @@ pub mod build_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3317,9 +3338,9 @@ pub mod buildpack_binding { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppPlatform/Spring/{}/buildServices/{}/builders/{}/buildpackBindings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name , & this . build_service_name , & this . builder_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3338,6 +3359,9 @@ pub mod buildpack_binding { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3655,9 +3679,9 @@ pub mod build_service_builder { &this.build_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3676,6 +3700,9 @@ pub mod build_service_builder { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3792,9 +3819,9 @@ pub mod build_service_agent_pool { &this.build_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3813,6 +3840,9 @@ pub mod build_service_agent_pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4598,9 +4628,9 @@ pub mod apps { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4619,6 +4649,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5206,9 +5239,9 @@ pub mod bindings { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5227,6 +5260,9 @@ pub mod bindings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5534,9 +5570,9 @@ pub mod storages { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5555,6 +5591,9 @@ pub mod storages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5862,9 +5901,9 @@ pub mod certificates { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5883,6 +5922,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6293,9 +6335,9 @@ pub mod custom_domains { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6314,6 +6356,9 @@ pub mod custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6869,9 +6914,9 @@ pub mod deployments { &this.app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6890,6 +6935,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6956,9 +7004,9 @@ pub mod deployments { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6977,6 +7025,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7418,9 +7469,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AppPlatform/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7439,6 +7490,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7559,9 +7613,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7580,6 +7634,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7898,9 +7955,9 @@ pub mod gateways { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7919,6 +7976,9 @@ pub mod gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8292,9 +8352,9 @@ pub mod gateway_route_configs { &this.gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8313,6 +8373,9 @@ pub mod gateway_route_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8630,9 +8693,9 @@ pub mod gateway_custom_domains { &this.gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8651,6 +8714,9 @@ pub mod gateway_custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8969,9 +9035,9 @@ pub mod api_portals { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8990,6 +9056,9 @@ pub mod api_portals { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9363,9 +9432,9 @@ pub mod api_portal_custom_domains { &this.api_portal_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9384,6 +9453,9 @@ pub mod api_portal_custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/arcdata/src/package_2021_08_01/models.rs b/services/mgmt/arcdata/src/package_2021_08_01/models.rs index 66f3be0856..f27f38c245 100644 --- a/services/mgmt/arcdata/src/package_2021_08_01/models.rs +++ b/services/mgmt/arcdata/src/package_2021_08_01/models.rs @@ -153,7 +153,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -499,8 +499,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -517,8 +517,8 @@ pub struct PageOfDataControllerResource { pub next_link: Option, } impl azure_core::Continuable for PageOfDataControllerResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageOfDataControllerResource { @@ -661,8 +661,8 @@ pub struct SqlManagedInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for SqlManagedInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlManagedInstanceListResult { @@ -816,8 +816,8 @@ pub struct SqlServerInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for SqlServerInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlServerInstanceListResult { diff --git a/services/mgmt/arcdata/src/package_2021_08_01/operations.rs b/services/mgmt/arcdata/src/package_2021_08_01/operations.rs index 6a7cedb56c..3c847582e8 100644 --- a/services/mgmt/arcdata/src/package_2021_08_01/operations.rs +++ b/services/mgmt/arcdata/src/package_2021_08_01/operations.rs @@ -110,9 +110,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AzureArcData/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -131,6 +131,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -265,9 +268,9 @@ pub mod sql_managed_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -286,6 +289,9 @@ pub mod sql_managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -341,9 +347,9 @@ pub mod sql_managed_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -362,6 +368,9 @@ pub mod sql_managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -722,9 +731,9 @@ pub mod sql_server_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -743,6 +752,9 @@ pub mod sql_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -798,9 +810,9 @@ pub mod sql_server_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -819,6 +831,9 @@ pub mod sql_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1175,9 +1190,9 @@ pub mod data_controllers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1196,6 +1211,9 @@ pub mod data_controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1251,9 +1269,9 @@ pub mod data_controllers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1272,6 +1290,9 @@ pub mod data_controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/arcdata/src/package_2021_11_01/models.rs b/services/mgmt/arcdata/src/package_2021_11_01/models.rs index ad0c7f0092..6f8d897dfe 100644 --- a/services/mgmt/arcdata/src/package_2021_11_01/models.rs +++ b/services/mgmt/arcdata/src/package_2021_11_01/models.rs @@ -130,7 +130,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -388,8 +388,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -406,8 +406,8 @@ pub struct PageOfDataControllerResource { pub next_link: Option, } impl azure_core::Continuable for PageOfDataControllerResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageOfDataControllerResource { @@ -498,8 +498,8 @@ pub struct SqlManagedInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for SqlManagedInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlManagedInstanceListResult { @@ -686,8 +686,8 @@ pub struct SqlServerInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for SqlServerInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlServerInstanceListResult { diff --git a/services/mgmt/arcdata/src/package_2021_11_01/operations.rs b/services/mgmt/arcdata/src/package_2021_11_01/operations.rs index bea3b34c10..e80bbbcb30 100644 --- a/services/mgmt/arcdata/src/package_2021_11_01/operations.rs +++ b/services/mgmt/arcdata/src/package_2021_11_01/operations.rs @@ -110,9 +110,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AzureArcData/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -131,6 +131,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -265,9 +268,9 @@ pub mod sql_managed_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -286,6 +289,9 @@ pub mod sql_managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -341,9 +347,9 @@ pub mod sql_managed_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -362,6 +368,9 @@ pub mod sql_managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -722,9 +731,9 @@ pub mod sql_server_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -743,6 +752,9 @@ pub mod sql_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -798,9 +810,9 @@ pub mod sql_server_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -819,6 +831,9 @@ pub mod sql_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1175,9 +1190,9 @@ pub mod data_controllers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1196,6 +1211,9 @@ pub mod data_controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1251,9 +1269,9 @@ pub mod data_controllers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1272,6 +1290,9 @@ pub mod data_controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/arcdata/src/package_preview_2021_06_01/models.rs b/services/mgmt/arcdata/src/package_preview_2021_06_01/models.rs index 23fbeee3a8..816929d768 100644 --- a/services/mgmt/arcdata/src/package_preview_2021_06_01/models.rs +++ b/services/mgmt/arcdata/src/package_preview_2021_06_01/models.rs @@ -120,7 +120,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -427,8 +427,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -445,8 +445,8 @@ pub struct PageOfDataControllerResource { pub next_link: Option, } impl azure_core::Continuable for PageOfDataControllerResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageOfDataControllerResource { @@ -516,8 +516,8 @@ pub struct PostgresInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for PostgresInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PostgresInstanceListResult { @@ -674,8 +674,8 @@ pub struct SqlManagedInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for SqlManagedInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlManagedInstanceListResult { @@ -783,8 +783,8 @@ pub struct SqlServerInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for SqlServerInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlServerInstanceListResult { diff --git a/services/mgmt/arcdata/src/package_preview_2021_06_01/operations.rs b/services/mgmt/arcdata/src/package_preview_2021_06_01/operations.rs index a9e4d82c03..0e75de5bb3 100644 --- a/services/mgmt/arcdata/src/package_preview_2021_06_01/operations.rs +++ b/services/mgmt/arcdata/src/package_preview_2021_06_01/operations.rs @@ -113,9 +113,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AzureArcData/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -134,6 +134,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -268,9 +271,9 @@ pub mod sql_managed_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -289,6 +292,9 @@ pub mod sql_managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -344,9 +350,9 @@ pub mod sql_managed_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -365,6 +371,9 @@ pub mod sql_managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -722,9 +731,9 @@ pub mod sql_server_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -743,6 +752,9 @@ pub mod sql_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -798,9 +810,9 @@ pub mod sql_server_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -819,6 +831,9 @@ pub mod sql_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1176,9 +1191,9 @@ pub mod postgres_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1197,6 +1212,9 @@ pub mod postgres_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1252,9 +1270,9 @@ pub mod postgres_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1273,6 +1291,9 @@ pub mod postgres_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1626,9 +1647,9 @@ pub mod data_controllers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1647,6 +1668,9 @@ pub mod data_controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1702,9 +1726,9 @@ pub mod data_controllers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1723,6 +1747,9 @@ pub mod data_controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/arcdata/src/package_preview_2021_07_01/models.rs b/services/mgmt/arcdata/src/package_preview_2021_07_01/models.rs index 3e7d63da6e..22c9822c1a 100644 --- a/services/mgmt/arcdata/src/package_preview_2021_07_01/models.rs +++ b/services/mgmt/arcdata/src/package_preview_2021_07_01/models.rs @@ -147,7 +147,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -454,8 +454,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -472,8 +472,8 @@ pub struct PageOfDataControllerResource { pub next_link: Option, } impl azure_core::Continuable for PageOfDataControllerResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageOfDataControllerResource { @@ -543,8 +543,8 @@ pub struct PostgresInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for PostgresInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PostgresInstanceListResult { @@ -701,8 +701,8 @@ pub struct SqlManagedInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for SqlManagedInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlManagedInstanceListResult { @@ -850,8 +850,8 @@ pub struct SqlServerInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for SqlServerInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlServerInstanceListResult { diff --git a/services/mgmt/arcdata/src/package_preview_2021_07_01/operations.rs b/services/mgmt/arcdata/src/package_preview_2021_07_01/operations.rs index b852353c61..6978975e89 100644 --- a/services/mgmt/arcdata/src/package_preview_2021_07_01/operations.rs +++ b/services/mgmt/arcdata/src/package_preview_2021_07_01/operations.rs @@ -113,9 +113,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AzureArcData/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -134,6 +134,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -268,9 +271,9 @@ pub mod sql_managed_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -289,6 +292,9 @@ pub mod sql_managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -344,9 +350,9 @@ pub mod sql_managed_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -365,6 +371,9 @@ pub mod sql_managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -725,9 +734,9 @@ pub mod sql_server_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -746,6 +755,9 @@ pub mod sql_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -801,9 +813,9 @@ pub mod sql_server_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -822,6 +834,9 @@ pub mod sql_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1182,9 +1197,9 @@ pub mod postgres_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1203,6 +1218,9 @@ pub mod postgres_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1258,9 +1276,9 @@ pub mod postgres_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1279,6 +1297,9 @@ pub mod postgres_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1635,9 +1656,9 @@ pub mod data_controllers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1656,6 +1677,9 @@ pub mod data_controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1711,9 +1735,9 @@ pub mod data_controllers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1732,6 +1756,9 @@ pub mod data_controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/arcdata/src/package_preview_2022_03/models.rs b/services/mgmt/arcdata/src/package_preview_2022_03/models.rs index 575c5dec0f..262bb259bf 100644 --- a/services/mgmt/arcdata/src/package_preview_2022_03/models.rs +++ b/services/mgmt/arcdata/src/package_preview_2022_03/models.rs @@ -117,8 +117,8 @@ pub struct ActiveDirectoryConnectorListResult { pub next_link: Option, } impl azure_core::Continuable for ActiveDirectoryConnectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActiveDirectoryConnectorListResult { @@ -397,7 +397,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -667,8 +667,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -687,8 +687,8 @@ pub struct PageOfDataControllerResource { pub next_link: Option, } impl azure_core::Continuable for PageOfDataControllerResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageOfDataControllerResource { @@ -731,8 +731,8 @@ pub struct PostgresInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for PostgresInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PostgresInstanceListResult { @@ -903,8 +903,8 @@ pub struct SqlManagedInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for SqlManagedInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlManagedInstanceListResult { @@ -1097,8 +1097,8 @@ pub struct SqlServerInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for SqlServerInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlServerInstanceListResult { diff --git a/services/mgmt/arcdata/src/package_preview_2022_03/operations.rs b/services/mgmt/arcdata/src/package_preview_2022_03/operations.rs index 19267c0af3..c6ccf9cad1 100644 --- a/services/mgmt/arcdata/src/package_preview_2022_03/operations.rs +++ b/services/mgmt/arcdata/src/package_preview_2022_03/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AzureArcData/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -271,9 +274,9 @@ pub mod sql_managed_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -292,6 +295,9 @@ pub mod sql_managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -347,9 +353,9 @@ pub mod sql_managed_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -368,6 +374,9 @@ pub mod sql_managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -728,9 +737,9 @@ pub mod sql_server_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -749,6 +758,9 @@ pub mod sql_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -804,9 +816,9 @@ pub mod sql_server_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -825,6 +837,9 @@ pub mod sql_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1181,9 +1196,9 @@ pub mod data_controllers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1202,6 +1217,9 @@ pub mod data_controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1257,9 +1275,9 @@ pub mod data_controllers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1278,6 +1296,9 @@ pub mod data_controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1628,9 +1649,9 @@ pub mod active_directory_connectors { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AzureArcData/dataControllers/{}/activeDirectoryConnectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . data_controller_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1649,6 +1670,9 @@ pub mod active_directory_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1940,9 +1964,9 @@ pub mod postgres_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1961,6 +1985,9 @@ pub mod postgres_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2016,9 +2043,9 @@ pub mod postgres_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2037,6 +2064,9 @@ pub mod postgres_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/attestation/src/package_2020_10_01/models.rs b/services/mgmt/attestation/src/package_2020_10_01/models.rs index d255663659..0c76a8d1e2 100644 --- a/services/mgmt/attestation/src/package_2020_10_01/models.rs +++ b/services/mgmt/attestation/src/package_2020_10_01/models.rs @@ -91,7 +91,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -287,7 +287,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/attestation/src/package_2021_06_01/models.rs b/services/mgmt/attestation/src/package_2021_06_01/models.rs index 6bf50f51a7..8274074a4e 100644 --- a/services/mgmt/attestation/src/package_2021_06_01/models.rs +++ b/services/mgmt/attestation/src/package_2021_06_01/models.rs @@ -109,7 +109,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -305,7 +305,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/authorization/src/package_2020_10_01/models.rs b/services/mgmt/authorization/src/package_2020_10_01/models.rs index 9cacc9ff30..058a111f9c 100644 --- a/services/mgmt/authorization/src/package_2020_10_01/models.rs +++ b/services/mgmt/authorization/src/package_2020_10_01/models.rs @@ -131,8 +131,8 @@ pub struct ClassicAdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for ClassicAdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClassicAdministratorListResult { @@ -163,7 +163,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -216,8 +216,8 @@ pub struct EligibleChildResourcesListResult { pub next_link: Option, } impl azure_core::Continuable for EligibleChildResourcesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EligibleChildResourcesListResult { @@ -272,7 +272,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -384,8 +384,8 @@ pub struct PermissionGetResult { pub next_link: Option, } impl azure_core::Continuable for PermissionGetResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PermissionGetResult { @@ -584,8 +584,8 @@ pub struct ProviderOperationsMetadataListResult { pub next_link: Option, } impl azure_core::Continuable for ProviderOperationsMetadataListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderOperationsMetadataListResult { @@ -666,8 +666,8 @@ pub struct RoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentListResult { @@ -803,8 +803,8 @@ pub struct RoleAssignmentScheduleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentScheduleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentScheduleInstanceListResult { @@ -1085,8 +1085,8 @@ pub struct RoleAssignmentScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentScheduleListResult { @@ -1402,8 +1402,8 @@ pub struct RoleAssignmentScheduleRequestListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentScheduleRequestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentScheduleRequestListResult { @@ -1811,8 +1811,8 @@ pub struct RoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for RoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleDefinitionListResult { @@ -1936,8 +1936,8 @@ pub struct RoleEligibilityScheduleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for RoleEligibilityScheduleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleEligibilityScheduleInstanceListResult { @@ -2165,8 +2165,8 @@ pub struct RoleEligibilityScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for RoleEligibilityScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleEligibilityScheduleListResult { @@ -2439,8 +2439,8 @@ pub struct RoleEligibilityScheduleRequestListResult { pub next_link: Option, } impl azure_core::Continuable for RoleEligibilityScheduleRequestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleEligibilityScheduleRequestListResult { @@ -2871,8 +2871,8 @@ pub struct RoleManagementPolicyAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleManagementPolicyAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleManagementPolicyAssignmentListResult { @@ -2974,8 +2974,8 @@ pub struct RoleManagementPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for RoleManagementPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleManagementPolicyListResult { diff --git a/services/mgmt/authorization/src/package_2020_10_01/operations.rs b/services/mgmt/authorization/src/package_2020_10_01/operations.rs index d3be746215..d6c9eb8338 100644 --- a/services/mgmt/authorization/src/package_2020_10_01/operations.rs +++ b/services/mgmt/authorization/src/package_2020_10_01/operations.rs @@ -176,9 +176,9 @@ pub mod permissions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -197,6 +197,9 @@ pub mod permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -260,9 +263,9 @@ pub mod permissions { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -281,6 +284,9 @@ pub mod permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -542,9 +548,9 @@ pub mod role_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -563,6 +569,9 @@ pub mod role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -741,9 +750,9 @@ pub mod provider_operations_metadata { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -762,6 +771,9 @@ pub mod provider_operations_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -987,9 +999,9 @@ pub mod role_assignments { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1008,6 +1020,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1071,9 +1086,9 @@ pub mod role_assignments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1092,6 +1107,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1449,9 +1467,9 @@ pub mod role_assignments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1470,6 +1488,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1531,9 +1552,9 @@ pub mod role_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1552,6 +1573,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1620,9 +1644,9 @@ pub mod classic_administrators { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1641,6 +1665,9 @@ pub mod classic_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1712,9 +1739,9 @@ pub mod eligible_child_resources { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1733,6 +1760,9 @@ pub mod eligible_child_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1864,9 +1894,9 @@ pub mod role_assignment_schedules { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1885,6 +1915,9 @@ pub mod role_assignment_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1966,9 +1999,9 @@ pub mod role_assignment_schedule_instances { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1987,6 +2020,9 @@ pub mod role_assignment_schedule_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2253,9 +2289,9 @@ pub mod role_assignment_schedule_requests { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2274,6 +2310,9 @@ pub mod role_assignment_schedule_requests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2504,9 +2543,9 @@ pub mod role_eligibility_schedules { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2525,6 +2564,9 @@ pub mod role_eligibility_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2606,9 +2648,9 @@ pub mod role_eligibility_schedule_instances { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2627,6 +2669,9 @@ pub mod role_eligibility_schedule_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2893,9 +2938,9 @@ pub mod role_eligibility_schedule_requests { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2914,6 +2959,9 @@ pub mod role_eligibility_schedule_requests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3261,9 +3309,9 @@ pub mod role_management_policies { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3282,6 +3330,9 @@ pub mod role_management_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3527,9 +3578,9 @@ pub mod role_management_policy_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3548,6 +3599,9 @@ pub mod role_management_policy_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs b/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs index b184dd841e..ee89ebe5a5 100644 --- a/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs @@ -99,8 +99,8 @@ pub struct AccessReviewDecisionListResult { pub next_link: Option, } impl azure_core::Continuable for AccessReviewDecisionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessReviewDecisionListResult { @@ -383,8 +383,8 @@ pub struct AccessReviewInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for AccessReviewInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessReviewInstanceListResult { @@ -695,8 +695,8 @@ pub struct AccessReviewScheduleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for AccessReviewScheduleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessReviewScheduleDefinitionListResult { @@ -1082,7 +1082,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1156,8 +1156,8 @@ pub struct DenyAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for DenyAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DenyAssignmentListResult { @@ -1248,8 +1248,8 @@ pub struct EligibleChildResourcesListResult { pub next_link: Option, } impl azure_core::Continuable for EligibleChildResourcesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EligibleChildResourcesListResult { @@ -1280,7 +1280,7 @@ pub struct ErrorDefinition { pub error: Option, } impl azure_core::Continuable for ErrorDefinition { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1336,7 +1336,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1475,8 +1475,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1516,8 +1516,8 @@ pub struct PermissionGetResult { pub next_link: Option, } impl azure_core::Continuable for PermissionGetResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PermissionGetResult { @@ -1717,8 +1717,8 @@ pub struct ProviderOperationsMetadataListResult { pub next_link: Option, } impl azure_core::Continuable for ProviderOperationsMetadataListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderOperationsMetadataListResult { @@ -1799,8 +1799,8 @@ pub struct RoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentListResult { @@ -2030,8 +2030,8 @@ pub struct RoleAssignmentScheduleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentScheduleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentScheduleInstanceListResult { @@ -2312,8 +2312,8 @@ pub struct RoleAssignmentScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentScheduleListResult { @@ -2629,8 +2629,8 @@ pub struct RoleAssignmentScheduleRequestListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentScheduleRequestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentScheduleRequestListResult { @@ -3041,8 +3041,8 @@ pub struct RoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for RoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleDefinitionListResult { @@ -3166,8 +3166,8 @@ pub struct RoleEligibilityScheduleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for RoleEligibilityScheduleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleEligibilityScheduleInstanceListResult { @@ -3395,8 +3395,8 @@ pub struct RoleEligibilityScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for RoleEligibilityScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleEligibilityScheduleListResult { @@ -3669,8 +3669,8 @@ pub struct RoleEligibilityScheduleRequestListResult { pub next_link: Option, } impl azure_core::Continuable for RoleEligibilityScheduleRequestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleEligibilityScheduleRequestListResult { @@ -4100,8 +4100,8 @@ pub struct RoleManagementPolicyAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleManagementPolicyAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleManagementPolicyAssignmentListResult { @@ -4199,8 +4199,8 @@ pub struct RoleManagementPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for RoleManagementPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleManagementPolicyListResult { diff --git a/services/mgmt/authorization/src/package_2020_10_01_preview/operations.rs b/services/mgmt/authorization/src/package_2020_10_01_preview/operations.rs index 5e92155969..ebf02920e6 100644 --- a/services/mgmt/authorization/src/package_2020_10_01_preview/operations.rs +++ b/services/mgmt/authorization/src/package_2020_10_01_preview/operations.rs @@ -172,9 +172,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Authorization/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -193,6 +193,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -292,9 +295,9 @@ pub mod access_review_schedule_definitions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -313,6 +316,9 @@ pub mod access_review_schedule_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -594,9 +600,9 @@ pub mod access_review_instances { &this.schedule_definition_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -615,6 +621,9 @@ pub mod access_review_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1031,9 +1040,9 @@ pub mod access_review_instance_decisions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{}/instances/{}/decisions" , this . client . endpoint () , & this . subscription_id , & this . schedule_definition_id , & this . id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1052,6 +1061,9 @@ pub mod access_review_instance_decisions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1229,9 +1241,9 @@ pub mod access_review_schedule_definitions_assigned_for_my_approval { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1250,6 +1262,9 @@ pub mod access_review_schedule_definitions_assigned_for_my_approval { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1322,9 +1337,9 @@ pub mod access_review_instances_assigned_for_my_approval { &this.schedule_definition_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1343,6 +1358,9 @@ pub mod access_review_instances_assigned_for_my_approval { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1489,9 +1507,9 @@ pub mod access_review_instance_my_decisions { &this.id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1510,6 +1528,9 @@ pub mod access_review_instance_my_decisions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1749,9 +1770,9 @@ pub mod deny_assignments { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1770,6 +1791,9 @@ pub mod deny_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1833,9 +1857,9 @@ pub mod deny_assignments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1854,6 +1878,9 @@ pub mod deny_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1915,9 +1942,9 @@ pub mod deny_assignments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1936,6 +1963,9 @@ pub mod deny_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2091,9 +2121,9 @@ pub mod deny_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2112,6 +2142,9 @@ pub mod deny_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2246,9 +2279,9 @@ pub mod provider_operations_metadata { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2267,6 +2300,9 @@ pub mod provider_operations_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2465,9 +2501,9 @@ pub mod role_assignments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2486,6 +2522,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2557,9 +2596,9 @@ pub mod role_assignments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2578,6 +2617,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2655,9 +2697,9 @@ pub mod role_assignments { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2676,6 +2718,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2979,9 +3024,9 @@ pub mod role_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3000,6 +3045,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3521,9 +3569,9 @@ pub mod role_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3542,6 +3590,9 @@ pub mod role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3636,9 +3687,9 @@ pub mod permissions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3657,6 +3708,9 @@ pub mod permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3720,9 +3774,9 @@ pub mod permissions { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3741,6 +3795,9 @@ pub mod permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3872,9 +3929,9 @@ pub mod eligible_child_resources { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3893,6 +3950,9 @@ pub mod eligible_child_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4024,9 +4084,9 @@ pub mod role_assignment_schedules { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4045,6 +4105,9 @@ pub mod role_assignment_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4126,9 +4189,9 @@ pub mod role_assignment_schedule_instances { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4147,6 +4210,9 @@ pub mod role_assignment_schedule_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4400,9 +4466,9 @@ pub mod role_assignment_schedule_requests { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4421,6 +4487,9 @@ pub mod role_assignment_schedule_requests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4599,9 +4668,9 @@ pub mod role_eligibility_schedules { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4620,6 +4689,9 @@ pub mod role_eligibility_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4701,9 +4773,9 @@ pub mod role_eligibility_schedule_instances { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4722,6 +4794,9 @@ pub mod role_eligibility_schedule_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4975,9 +5050,9 @@ pub mod role_eligibility_schedule_requests { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4996,6 +5071,9 @@ pub mod role_eligibility_schedule_requests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5291,9 +5369,9 @@ pub mod role_management_policies { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5312,6 +5390,9 @@ pub mod role_management_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5557,9 +5638,9 @@ pub mod role_management_policy_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5578,6 +5659,9 @@ pub mod role_management_policy_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/authorization/src/package_preview_2021_11/models.rs b/services/mgmt/authorization/src/package_preview_2021_11/models.rs index e6aefec114..95d8e964e6 100644 --- a/services/mgmt/authorization/src/package_preview_2021_11/models.rs +++ b/services/mgmt/authorization/src/package_preview_2021_11/models.rs @@ -99,8 +99,8 @@ pub struct AccessReviewContactedReviewerListResult { pub next_link: Option, } impl azure_core::Continuable for AccessReviewContactedReviewerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessReviewContactedReviewerListResult { @@ -222,8 +222,8 @@ pub struct AccessReviewDecisionListResult { pub next_link: Option, } impl azure_core::Continuable for AccessReviewDecisionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessReviewDecisionListResult { @@ -567,8 +567,8 @@ pub struct AccessReviewHistoryDefinitionInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for AccessReviewHistoryDefinitionInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessReviewHistoryDefinitionInstanceListResult { @@ -587,8 +587,8 @@ pub struct AccessReviewHistoryDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for AccessReviewHistoryDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessReviewHistoryDefinitionListResult { @@ -824,8 +824,8 @@ pub struct AccessReviewInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for AccessReviewInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessReviewInstanceListResult { @@ -1185,8 +1185,8 @@ pub struct AccessReviewScheduleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for AccessReviewScheduleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessReviewScheduleDefinitionListResult { @@ -1540,7 +1540,7 @@ pub struct ErrorDefinition { pub error: Option, } impl azure_core::Continuable for ErrorDefinition { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1617,8 +1617,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/authorization/src/package_preview_2021_11/operations.rs b/services/mgmt/authorization/src/package_preview_2021_11/operations.rs index b8151709d7..3605b88c2c 100644 --- a/services/mgmt/authorization/src/package_preview_2021_11/operations.rs +++ b/services/mgmt/authorization/src/package_preview_2021_11/operations.rs @@ -147,9 +147,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Authorization/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -168,6 +168,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -246,9 +249,9 @@ pub mod access_review_history_definitions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -267,6 +270,9 @@ pub mod access_review_history_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -583,9 +589,9 @@ pub mod access_review_history_definition_instances { &this.history_definition_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -604,6 +610,9 @@ pub mod access_review_history_definition_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -709,9 +718,9 @@ pub mod access_review_schedule_definitions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -730,6 +739,9 @@ pub mod access_review_schedule_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1035,9 +1047,9 @@ pub mod access_review_instances { &this.schedule_definition_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1056,6 +1068,9 @@ pub mod access_review_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1535,9 +1550,9 @@ pub mod access_review_instance_decisions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{}/instances/{}/decisions" , this . client . endpoint () , & this . subscription_id , & this . schedule_definition_id , & this . id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1556,6 +1571,9 @@ pub mod access_review_instance_decisions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1629,9 +1647,9 @@ pub mod access_review_instance_contacted_reviewers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{}/instances/{}/contactedReviewers" , this . client . endpoint () , & this . subscription_id , & this . schedule_definition_id , & this . id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1650,6 +1668,9 @@ pub mod access_review_instance_contacted_reviewers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1835,9 +1856,9 @@ pub mod access_review_schedule_definitions_assigned_for_my_approval { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1856,6 +1877,9 @@ pub mod access_review_schedule_definitions_assigned_for_my_approval { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1937,9 +1961,9 @@ pub mod access_review_instances_assigned_for_my_approval { &this.schedule_definition_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1958,6 +1982,9 @@ pub mod access_review_instances_assigned_for_my_approval { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2113,9 +2140,9 @@ pub mod access_review_instance_my_decisions { &this.id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2134,6 +2161,9 @@ pub mod access_review_instance_my_decisions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2311,9 +2341,9 @@ pub mod tenant_level_access_review_instance_contacted_reviewers { &this.id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2332,6 +2362,9 @@ pub mod tenant_level_access_review_instance_contacted_reviewers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/authorization/src/profile_hybrid_2019_03_01/models.rs b/services/mgmt/authorization/src/profile_hybrid_2019_03_01/models.rs index 09ae3511fb..8d13c753b4 100644 --- a/services/mgmt/authorization/src/profile_hybrid_2019_03_01/models.rs +++ b/services/mgmt/authorization/src/profile_hybrid_2019_03_01/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -86,8 +86,8 @@ pub struct PermissionGetResult { pub next_link: Option, } impl azure_core::Continuable for PermissionGetResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PermissionGetResult { @@ -157,8 +157,8 @@ pub struct ProviderOperationsMetadataListResult { pub next_link: Option, } impl azure_core::Continuable for ProviderOperationsMetadataListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderOperationsMetadataListResult { @@ -239,8 +239,8 @@ pub struct RoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentListResult { @@ -328,8 +328,8 @@ pub struct RoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for RoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleDefinitionListResult { diff --git a/services/mgmt/authorization/src/profile_hybrid_2019_03_01/operations.rs b/services/mgmt/authorization/src/profile_hybrid_2019_03_01/operations.rs index 438828b85c..d6f796785d 100644 --- a/services/mgmt/authorization/src/profile_hybrid_2019_03_01/operations.rs +++ b/services/mgmt/authorization/src/profile_hybrid_2019_03_01/operations.rs @@ -146,9 +146,9 @@ pub mod permissions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -167,6 +167,9 @@ pub mod permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -230,9 +233,9 @@ pub mod permissions { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -251,6 +254,9 @@ pub mod permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -512,9 +518,9 @@ pub mod role_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -533,6 +539,9 @@ pub mod role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -711,9 +720,9 @@ pub mod provider_operations_metadata { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -732,6 +741,9 @@ pub mod provider_operations_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -957,9 +969,9 @@ pub mod role_assignments { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -978,6 +990,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1041,9 +1056,9 @@ pub mod role_assignments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1062,6 +1077,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1419,9 +1437,9 @@ pub mod role_assignments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1440,6 +1458,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1501,9 +1522,9 @@ pub mod role_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1522,6 +1543,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/authorization/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/authorization/src/profile_hybrid_2020_09_01/models.rs index 09ae3511fb..8d13c753b4 100644 --- a/services/mgmt/authorization/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/authorization/src/profile_hybrid_2020_09_01/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -86,8 +86,8 @@ pub struct PermissionGetResult { pub next_link: Option, } impl azure_core::Continuable for PermissionGetResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PermissionGetResult { @@ -157,8 +157,8 @@ pub struct ProviderOperationsMetadataListResult { pub next_link: Option, } impl azure_core::Continuable for ProviderOperationsMetadataListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderOperationsMetadataListResult { @@ -239,8 +239,8 @@ pub struct RoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentListResult { @@ -328,8 +328,8 @@ pub struct RoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for RoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleDefinitionListResult { diff --git a/services/mgmt/authorization/src/profile_hybrid_2020_09_01/operations.rs b/services/mgmt/authorization/src/profile_hybrid_2020_09_01/operations.rs index 438828b85c..d6f796785d 100644 --- a/services/mgmt/authorization/src/profile_hybrid_2020_09_01/operations.rs +++ b/services/mgmt/authorization/src/profile_hybrid_2020_09_01/operations.rs @@ -146,9 +146,9 @@ pub mod permissions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -167,6 +167,9 @@ pub mod permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -230,9 +233,9 @@ pub mod permissions { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -251,6 +254,9 @@ pub mod permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -512,9 +518,9 @@ pub mod role_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -533,6 +539,9 @@ pub mod role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -711,9 +720,9 @@ pub mod provider_operations_metadata { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -732,6 +741,9 @@ pub mod provider_operations_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -957,9 +969,9 @@ pub mod role_assignments { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -978,6 +990,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1041,9 +1056,9 @@ pub mod role_assignments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1062,6 +1077,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1419,9 +1437,9 @@ pub mod role_assignments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1440,6 +1458,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1501,9 +1522,9 @@ pub mod role_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1522,6 +1543,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/automanage/src/package_2020_06_30_preview/models.rs b/services/mgmt/automanage/src/package_2020_06_30_preview/models.rs index 24eb4cfe95..4c4aae0d2c 100644 --- a/services/mgmt/automanage/src/package_2020_06_30_preview/models.rs +++ b/services/mgmt/automanage/src/package_2020_06_30_preview/models.rs @@ -56,7 +56,7 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -155,7 +155,7 @@ pub struct ConfigurationProfileAssignmentList { pub value: Vec, } impl azure_core::Continuable for ConfigurationProfileAssignmentList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -442,7 +442,7 @@ pub struct ConfigurationProfilePreferenceList { pub value: Vec, } impl azure_core::Continuable for ConfigurationProfilePreferenceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -548,7 +548,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -622,7 +622,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs b/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs index ec8f7dd3f6..f709ec10a9 100644 --- a/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs +++ b/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs @@ -75,7 +75,7 @@ pub struct BestPracticeList { pub value: Vec, } impl azure_core::Continuable for BestPracticeList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -138,7 +138,7 @@ pub struct ConfigurationProfileAssignmentList { pub value: Vec, } impl azure_core::Continuable for ConfigurationProfileAssignmentList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -184,7 +184,7 @@ pub struct ConfigurationProfileList { pub value: Vec, } impl azure_core::Continuable for ConfigurationProfileList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -269,7 +269,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -414,7 +414,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -460,7 +460,7 @@ pub struct ReportList { pub value: Vec, } impl azure_core::Continuable for ReportList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -536,7 +536,7 @@ pub struct ServicePrincipalListResult { pub value: Vec, } impl azure_core::Continuable for ServicePrincipalListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/automanage/src/package_2022_05/models.rs b/services/mgmt/automanage/src/package_2022_05/models.rs index ec8f7dd3f6..f709ec10a9 100644 --- a/services/mgmt/automanage/src/package_2022_05/models.rs +++ b/services/mgmt/automanage/src/package_2022_05/models.rs @@ -75,7 +75,7 @@ pub struct BestPracticeList { pub value: Vec, } impl azure_core::Continuable for BestPracticeList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -138,7 +138,7 @@ pub struct ConfigurationProfileAssignmentList { pub value: Vec, } impl azure_core::Continuable for ConfigurationProfileAssignmentList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -184,7 +184,7 @@ pub struct ConfigurationProfileList { pub value: Vec, } impl azure_core::Continuable for ConfigurationProfileList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -269,7 +269,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -414,7 +414,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -460,7 +460,7 @@ pub struct ReportList { pub value: Vec, } impl azure_core::Continuable for ReportList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -536,7 +536,7 @@ pub struct ServicePrincipalListResult { pub value: Vec, } impl azure_core::Continuable for ServicePrincipalListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/automation/src/package_2018_06_preview/models.rs b/services/mgmt/automation/src/package_2018_06_preview/models.rs index 9836a73ff7..714a6be264 100644 --- a/services/mgmt/automation/src/package_2018_06_preview/models.rs +++ b/services/mgmt/automation/src/package_2018_06_preview/models.rs @@ -33,8 +33,8 @@ pub struct ActivityListResult { pub next_link: Option, } impl azure_core::Continuable for ActivityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActivityListResult { @@ -384,8 +384,8 @@ pub struct AutomationAccountListResult { pub next_link: Option, } impl azure_core::Continuable for AutomationAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationAccountListResult { @@ -577,8 +577,8 @@ pub struct CertificateListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -700,8 +700,8 @@ pub struct ConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionListResult { @@ -808,8 +808,8 @@ pub struct ConnectionTypeListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionTypeListResult { @@ -1024,8 +1024,8 @@ pub struct CredentialListResult { pub next_link: Option, } impl azure_core::Continuable for CredentialListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CredentialListResult { @@ -1158,8 +1158,8 @@ pub struct DscCompilationJobListResult { pub next_link: Option, } impl azure_core::Continuable for DscCompilationJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscCompilationJobListResult { @@ -1377,8 +1377,8 @@ pub struct DscConfigurationListResult { pub total_count: Option, } impl azure_core::Continuable for DscConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscConfigurationListResult { @@ -1633,8 +1633,8 @@ pub struct DscNodeConfigurationListResult { pub total_count: Option, } impl azure_core::Continuable for DscNodeConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeConfigurationListResult { @@ -1698,8 +1698,8 @@ pub struct DscNodeListResult { pub total_count: Option, } impl azure_core::Continuable for DscNodeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeListResult { @@ -1823,8 +1823,8 @@ pub struct DscNodeReportListResult { pub next_link: Option, } impl azure_core::Continuable for DscNodeReportListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeReportListResult { @@ -1949,7 +1949,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2088,8 +2088,8 @@ pub struct HybridRunbookWorkerGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for HybridRunbookWorkerGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridRunbookWorkerGroupsListResult { @@ -2263,8 +2263,8 @@ pub struct JobListResultV2 { pub next_link: Option, } impl azure_core::Continuable for JobListResultV2 { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResultV2 { @@ -2493,8 +2493,8 @@ pub struct JobScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for JobScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobScheduleListResult { @@ -2552,8 +2552,8 @@ pub struct JobStreamListResult { pub next_link: Option, } impl azure_core::Continuable for JobStreamListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobStreamListResult { @@ -2901,8 +2901,8 @@ pub struct ModuleListResult { pub next_link: Option, } impl azure_core::Continuable for ModuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModuleListResult { @@ -3107,7 +3107,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3608,8 +3608,8 @@ pub struct RunbookListResult { pub next_link: Option, } impl azure_core::Continuable for RunbookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunbookListResult { @@ -3912,8 +3912,8 @@ pub struct ScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for ScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScheduleListResult { @@ -4173,8 +4173,8 @@ pub struct SourceControlListResult { pub next_link: Option, } impl azure_core::Continuable for SourceControlListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlListResult { @@ -4496,8 +4496,8 @@ pub struct SourceControlSyncJobListResult { pub next_link: Option, } impl azure_core::Continuable for SourceControlSyncJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlSyncJobListResult { @@ -4780,8 +4780,8 @@ pub struct SourceControlSyncJobStreamsListBySyncJob { pub next_link: Option, } impl azure_core::Continuable for SourceControlSyncJobStreamsListBySyncJob { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlSyncJobStreamsListBySyncJob { @@ -4859,7 +4859,7 @@ pub struct StatisticsListResult { pub value: Vec, } impl azure_core::Continuable for StatisticsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5004,7 +5004,7 @@ pub struct TypeFieldListResult { pub value: Vec, } impl azure_core::Continuable for TypeFieldListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5063,7 +5063,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5128,8 +5128,8 @@ pub struct VariableListResult { pub next_link: Option, } impl azure_core::Continuable for VariableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VariableListResult { @@ -5219,8 +5219,8 @@ pub struct WatcherListResult { pub next_link: Option, } impl azure_core::Continuable for WatcherListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatcherListResult { @@ -5355,8 +5355,8 @@ pub struct WebhookListResult { pub next_link: Option, } impl azure_core::Continuable for WebhookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebhookListResult { diff --git a/services/mgmt/automation/src/package_2018_06_preview/operations.rs b/services/mgmt/automation/src/package_2018_06_preview/operations.rs index bd176f8be7..9dbed5da7d 100644 --- a/services/mgmt/automation/src/package_2018_06_preview/operations.rs +++ b/services/mgmt/automation/src/package_2018_06_preview/operations.rs @@ -520,9 +520,9 @@ pub mod automation_account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -541,6 +541,9 @@ pub mod automation_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -594,9 +597,9 @@ pub mod automation_account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -615,6 +618,9 @@ pub mod automation_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1259,9 +1265,9 @@ pub mod certificate { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1280,6 +1286,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1654,9 +1663,9 @@ pub mod connection { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1675,6 +1684,9 @@ pub mod connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1963,9 +1975,9 @@ pub mod connection_type { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1984,6 +1996,9 @@ pub mod connection_type { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2349,9 +2364,9 @@ pub mod credential { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2370,6 +2385,9 @@ pub mod credential { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2833,9 +2851,9 @@ pub mod dsc_configuration { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2854,6 +2872,9 @@ pub mod dsc_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3128,9 +3149,9 @@ pub mod hybrid_runbook_worker_group { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/hybridRunbookWorkerGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3149,6 +3170,9 @@ pub mod hybrid_runbook_worker_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3441,9 +3465,9 @@ pub mod job_schedule { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3462,6 +3486,9 @@ pub mod job_schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3674,9 +3701,9 @@ pub mod activity { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/modules/{}/activities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . module_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3695,6 +3722,9 @@ pub mod activity { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4060,9 +4090,9 @@ pub mod module { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4081,6 +4111,9 @@ pub mod module { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4653,9 +4686,9 @@ pub mod schedule { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4674,6 +4707,9 @@ pub mod schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5039,9 +5075,9 @@ pub mod variable { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5060,6 +5096,9 @@ pub mod variable { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5491,9 +5530,9 @@ pub mod webhook { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5512,6 +5551,9 @@ pub mod webhook { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6018,9 +6060,9 @@ pub mod watcher { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6039,6 +6081,9 @@ pub mod watcher { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7067,9 +7112,9 @@ pub mod source_control { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7088,6 +7133,9 @@ pub mod source_control { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7304,9 +7352,9 @@ pub mod source_control_sync_job { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/sourceControls/{}/sourceControlSyncJobs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . source_control_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7325,6 +7373,9 @@ pub mod source_control_sync_job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7429,9 +7480,9 @@ pub mod source_control_sync_job_streams { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/sourceControls/{}/sourceControlSyncJobs/{}/streams" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . source_control_name , & this . source_control_sync_job_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7450,6 +7501,9 @@ pub mod source_control_sync_job_streams { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8065,9 +8119,9 @@ pub mod job { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8086,6 +8140,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8325,9 +8382,9 @@ pub mod job_stream { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8346,6 +8403,9 @@ pub mod job_stream { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8791,9 +8851,9 @@ pub mod dsc_node { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8812,6 +8872,9 @@ pub mod dsc_node { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8944,9 +9007,9 @@ pub mod node_reports { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8965,6 +9028,9 @@ pub mod node_reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9306,9 +9372,9 @@ pub mod dsc_compilation_job { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9327,6 +9393,9 @@ pub mod dsc_compilation_job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9738,9 +9807,9 @@ pub mod dsc_node_configuration { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9759,6 +9828,9 @@ pub mod dsc_node_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10610,9 +10682,9 @@ pub mod runbook { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10631,6 +10703,9 @@ pub mod runbook { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10775,9 +10850,9 @@ pub mod test_job_streams { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/runbooks/{}/draft/testJob/streams" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . runbook_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10796,6 +10871,9 @@ pub mod test_job_streams { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11475,9 +11553,9 @@ pub mod python2_package { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11496,6 +11574,9 @@ pub mod python2_package { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/automation/src/package_2019_06/models.rs b/services/mgmt/automation/src/package_2019_06/models.rs index 2919c29e28..9b2bcaae08 100644 --- a/services/mgmt/automation/src/package_2019_06/models.rs +++ b/services/mgmt/automation/src/package_2019_06/models.rs @@ -33,8 +33,8 @@ pub struct ActivityListResult { pub next_link: Option, } impl azure_core::Continuable for ActivityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActivityListResult { @@ -384,8 +384,8 @@ pub struct AutomationAccountListResult { pub next_link: Option, } impl azure_core::Continuable for AutomationAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationAccountListResult { @@ -577,8 +577,8 @@ pub struct CertificateListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -700,8 +700,8 @@ pub struct ConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionListResult { @@ -808,8 +808,8 @@ pub struct ConnectionTypeListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionTypeListResult { @@ -1024,8 +1024,8 @@ pub struct CredentialListResult { pub next_link: Option, } impl azure_core::Continuable for CredentialListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CredentialListResult { @@ -1158,8 +1158,8 @@ pub struct DscCompilationJobListResult { pub next_link: Option, } impl azure_core::Continuable for DscCompilationJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscCompilationJobListResult { @@ -1377,8 +1377,8 @@ pub struct DscConfigurationListResult { pub total_count: Option, } impl azure_core::Continuable for DscConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscConfigurationListResult { @@ -1633,8 +1633,8 @@ pub struct DscNodeConfigurationListResult { pub total_count: Option, } impl azure_core::Continuable for DscNodeConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeConfigurationListResult { @@ -1698,8 +1698,8 @@ pub struct DscNodeListResult { pub total_count: Option, } impl azure_core::Continuable for DscNodeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeListResult { @@ -1823,8 +1823,8 @@ pub struct DscNodeReportListResult { pub next_link: Option, } impl azure_core::Continuable for DscNodeReportListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeReportListResult { @@ -1949,7 +1949,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2088,8 +2088,8 @@ pub struct HybridRunbookWorkerGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for HybridRunbookWorkerGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridRunbookWorkerGroupsListResult { @@ -2263,8 +2263,8 @@ pub struct JobListResultV2 { pub next_link: Option, } impl azure_core::Continuable for JobListResultV2 { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResultV2 { @@ -2493,8 +2493,8 @@ pub struct JobScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for JobScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobScheduleListResult { @@ -2552,8 +2552,8 @@ pub struct JobStreamListResult { pub next_link: Option, } impl azure_core::Continuable for JobStreamListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobStreamListResult { @@ -2901,8 +2901,8 @@ pub struct ModuleListResult { pub next_link: Option, } impl azure_core::Continuable for ModuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModuleListResult { @@ -3107,7 +3107,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3608,8 +3608,8 @@ pub struct RunbookListResult { pub next_link: Option, } impl azure_core::Continuable for RunbookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunbookListResult { @@ -3963,8 +3963,8 @@ pub struct ScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for ScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScheduleListResult { @@ -4224,8 +4224,8 @@ pub struct SourceControlListResult { pub next_link: Option, } impl azure_core::Continuable for SourceControlListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlListResult { @@ -4547,8 +4547,8 @@ pub struct SourceControlSyncJobListResult { pub next_link: Option, } impl azure_core::Continuable for SourceControlSyncJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlSyncJobListResult { @@ -4831,8 +4831,8 @@ pub struct SourceControlSyncJobStreamsListBySyncJob { pub next_link: Option, } impl azure_core::Continuable for SourceControlSyncJobStreamsListBySyncJob { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlSyncJobStreamsListBySyncJob { @@ -4910,7 +4910,7 @@ pub struct StatisticsListResult { pub value: Vec, } impl azure_core::Continuable for StatisticsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5055,7 +5055,7 @@ pub struct TypeFieldListResult { pub value: Vec, } impl azure_core::Continuable for TypeFieldListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5114,7 +5114,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5179,8 +5179,8 @@ pub struct VariableListResult { pub next_link: Option, } impl azure_core::Continuable for VariableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VariableListResult { @@ -5276,8 +5276,8 @@ pub struct WatcherListResult { pub next_link: Option, } impl azure_core::Continuable for WatcherListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatcherListResult { @@ -5412,8 +5412,8 @@ pub struct WebhookListResult { pub next_link: Option, } impl azure_core::Continuable for WebhookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebhookListResult { diff --git a/services/mgmt/automation/src/package_2019_06/operations.rs b/services/mgmt/automation/src/package_2019_06/operations.rs index 2850b5b0a4..4d827128f6 100644 --- a/services/mgmt/automation/src/package_2019_06/operations.rs +++ b/services/mgmt/automation/src/package_2019_06/operations.rs @@ -919,9 +919,9 @@ pub mod runbook { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -940,6 +940,9 @@ pub mod runbook { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1084,9 +1087,9 @@ pub mod test_job_streams { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/runbooks/{}/draft/testJob/streams" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . runbook_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1105,6 +1108,9 @@ pub mod test_job_streams { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1784,9 +1790,9 @@ pub mod python2_package { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1805,6 +1811,9 @@ pub mod python2_package { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2240,9 +2249,9 @@ pub mod dsc_node { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2261,6 +2270,9 @@ pub mod dsc_node { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2393,9 +2405,9 @@ pub mod node_reports { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2414,6 +2426,9 @@ pub mod node_reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2755,9 +2770,9 @@ pub mod dsc_compilation_job { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2776,6 +2791,9 @@ pub mod dsc_compilation_job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3187,9 +3205,9 @@ pub mod dsc_node_configuration { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3208,6 +3226,9 @@ pub mod dsc_node_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4010,9 +4031,9 @@ pub mod source_control { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4031,6 +4052,9 @@ pub mod source_control { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4247,9 +4271,9 @@ pub mod source_control_sync_job { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/sourceControls/{}/sourceControlSyncJobs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . source_control_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4268,6 +4292,9 @@ pub mod source_control_sync_job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4372,9 +4399,9 @@ pub mod source_control_sync_job_streams { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/sourceControls/{}/sourceControlSyncJobs/{}/streams" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . source_control_name , & this . source_control_sync_job_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4393,6 +4420,9 @@ pub mod source_control_sync_job_streams { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5008,9 +5038,9 @@ pub mod job { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5029,6 +5059,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5268,9 +5301,9 @@ pub mod job_stream { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5289,6 +5322,9 @@ pub mod job_stream { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5652,9 +5688,9 @@ pub mod automation_account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5673,6 +5709,9 @@ pub mod automation_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5726,9 +5765,9 @@ pub mod automation_account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5747,6 +5786,9 @@ pub mod automation_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6337,9 +6379,9 @@ pub mod certificate { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6358,6 +6400,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6728,9 +6773,9 @@ pub mod connection { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6749,6 +6794,9 @@ pub mod connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7037,9 +7085,9 @@ pub mod connection_type { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7058,6 +7106,9 @@ pub mod connection_type { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7423,9 +7474,9 @@ pub mod credential { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7444,6 +7495,9 @@ pub mod credential { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7907,9 +7961,9 @@ pub mod dsc_configuration { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7928,6 +7982,9 @@ pub mod dsc_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8512,9 +8569,9 @@ pub mod hybrid_runbook_worker_group { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/hybridRunbookWorkerGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8533,6 +8590,9 @@ pub mod hybrid_runbook_worker_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8825,9 +8885,9 @@ pub mod job_schedule { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8846,6 +8906,9 @@ pub mod job_schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9058,9 +9121,9 @@ pub mod activity { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/modules/{}/activities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . module_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9079,6 +9142,9 @@ pub mod activity { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9444,9 +9510,9 @@ pub mod module { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9465,6 +9531,9 @@ pub mod module { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10091,9 +10160,9 @@ pub mod schedule { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10112,6 +10181,9 @@ pub mod schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10477,9 +10549,9 @@ pub mod variable { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10498,6 +10570,9 @@ pub mod variable { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11001,9 +11076,9 @@ pub mod watcher { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11022,6 +11097,9 @@ pub mod watcher { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11456,9 +11534,9 @@ pub mod webhook { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11477,6 +11555,9 @@ pub mod webhook { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/automation/src/package_2020_01_13_preview/models.rs b/services/mgmt/automation/src/package_2020_01_13_preview/models.rs index 918830a6e4..212be3324a 100644 --- a/services/mgmt/automation/src/package_2020_01_13_preview/models.rs +++ b/services/mgmt/automation/src/package_2020_01_13_preview/models.rs @@ -33,8 +33,8 @@ pub struct ActivityListResult { pub next_link: Option, } impl azure_core::Continuable for ActivityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActivityListResult { @@ -396,8 +396,8 @@ pub struct AutomationAccountListResult { pub next_link: Option, } impl azure_core::Continuable for AutomationAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationAccountListResult { @@ -607,8 +607,8 @@ pub struct CertificateListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -730,8 +730,8 @@ pub struct ConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionListResult { @@ -838,8 +838,8 @@ pub struct ConnectionTypeListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionTypeListResult { @@ -1054,8 +1054,8 @@ pub struct CredentialListResult { pub next_link: Option, } impl azure_core::Continuable for CredentialListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CredentialListResult { @@ -1188,8 +1188,8 @@ pub struct DscCompilationJobListResult { pub next_link: Option, } impl azure_core::Continuable for DscCompilationJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscCompilationJobListResult { @@ -1407,8 +1407,8 @@ pub struct DscConfigurationListResult { pub total_count: Option, } impl azure_core::Continuable for DscConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscConfigurationListResult { @@ -1663,8 +1663,8 @@ pub struct DscNodeConfigurationListResult { pub total_count: Option, } impl azure_core::Continuable for DscNodeConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeConfigurationListResult { @@ -1728,8 +1728,8 @@ pub struct DscNodeListResult { pub total_count: Option, } impl azure_core::Continuable for DscNodeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeListResult { @@ -1853,8 +1853,8 @@ pub struct DscNodeReportListResult { pub next_link: Option, } impl azure_core::Continuable for DscNodeReportListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeReportListResult { @@ -2020,7 +2020,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2160,8 +2160,8 @@ pub struct HybridRunbookWorkerGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for HybridRunbookWorkerGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridRunbookWorkerGroupsListResult { @@ -2368,8 +2368,8 @@ pub struct JobListResultV2 { pub next_link: Option, } impl azure_core::Continuable for JobListResultV2 { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResultV2 { @@ -2598,8 +2598,8 @@ pub struct JobScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for JobScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobScheduleListResult { @@ -2657,8 +2657,8 @@ pub struct JobStreamListResult { pub next_link: Option, } impl azure_core::Continuable for JobStreamListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobStreamListResult { @@ -3024,8 +3024,8 @@ pub struct ModuleListResult { pub next_link: Option, } impl azure_core::Continuable for ModuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModuleListResult { @@ -3230,7 +3230,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3261,7 +3261,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3322,7 +3322,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3856,8 +3856,8 @@ pub struct RunbookListResult { pub next_link: Option, } impl azure_core::Continuable for RunbookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunbookListResult { @@ -4211,8 +4211,8 @@ pub struct ScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for ScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScheduleListResult { @@ -4472,8 +4472,8 @@ pub struct SourceControlListResult { pub next_link: Option, } impl azure_core::Continuable for SourceControlListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlListResult { @@ -4795,8 +4795,8 @@ pub struct SourceControlSyncJobListResult { pub next_link: Option, } impl azure_core::Continuable for SourceControlSyncJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlSyncJobListResult { @@ -5079,8 +5079,8 @@ pub struct SourceControlSyncJobStreamsListBySyncJob { pub next_link: Option, } impl azure_core::Continuable for SourceControlSyncJobStreamsListBySyncJob { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlSyncJobStreamsListBySyncJob { @@ -5158,7 +5158,7 @@ pub struct StatisticsListResult { pub value: Vec, } impl azure_core::Continuable for StatisticsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5303,7 +5303,7 @@ pub struct TypeFieldListResult { pub value: Vec, } impl azure_core::Continuable for TypeFieldListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5362,7 +5362,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5427,8 +5427,8 @@ pub struct VariableListResult { pub next_link: Option, } impl azure_core::Continuable for VariableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VariableListResult { @@ -5524,8 +5524,8 @@ pub struct WatcherListResult { pub next_link: Option, } impl azure_core::Continuable for WatcherListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatcherListResult { @@ -5660,8 +5660,8 @@ pub struct WebhookListResult { pub next_link: Option, } impl azure_core::Continuable for WebhookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebhookListResult { diff --git a/services/mgmt/automation/src/package_2020_01_13_preview/operations.rs b/services/mgmt/automation/src/package_2020_01_13_preview/operations.rs index 5ebb8618f6..2561c77ad6 100644 --- a/services/mgmt/automation/src/package_2020_01_13_preview/operations.rs +++ b/services/mgmt/automation/src/package_2020_01_13_preview/operations.rs @@ -864,9 +864,9 @@ pub mod python2_package { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -885,6 +885,9 @@ pub mod python2_package { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1320,9 +1323,9 @@ pub mod dsc_node { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1341,6 +1344,9 @@ pub mod dsc_node { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1473,9 +1479,9 @@ pub mod node_reports { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1494,6 +1500,9 @@ pub mod node_reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1885,9 +1894,9 @@ pub mod dsc_node_configuration { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1906,6 +1915,9 @@ pub mod dsc_node_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2160,9 +2172,9 @@ pub mod dsc_compilation_job { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2181,6 +2193,9 @@ pub mod dsc_compilation_job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2746,9 +2761,9 @@ pub mod source_control { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2767,6 +2782,9 @@ pub mod source_control { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2983,9 +3001,9 @@ pub mod source_control_sync_job { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/sourceControls/{}/sourceControlSyncJobs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . source_control_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3004,6 +3022,9 @@ pub mod source_control_sync_job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3108,9 +3129,9 @@ pub mod source_control_sync_job_streams { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/sourceControls/{}/sourceControlSyncJobs/{}/streams" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . source_control_name , & this . source_control_sync_job_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3129,6 +3150,9 @@ pub mod source_control_sync_job_streams { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3538,9 +3562,9 @@ pub mod automation_account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3559,6 +3583,9 @@ pub mod automation_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3612,9 +3639,9 @@ pub mod automation_account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3633,6 +3660,9 @@ pub mod automation_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4223,9 +4253,9 @@ pub mod certificate { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4244,6 +4274,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4614,9 +4647,9 @@ pub mod connection { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4635,6 +4668,9 @@ pub mod connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4923,9 +4959,9 @@ pub mod connection_type { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4944,6 +4980,9 @@ pub mod connection_type { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5309,9 +5348,9 @@ pub mod credential { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5330,6 +5369,9 @@ pub mod credential { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5592,9 +5634,9 @@ pub mod hybrid_runbook_worker_group { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/hybridRunbookWorkerGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5613,6 +5655,9 @@ pub mod hybrid_runbook_worker_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5905,9 +5950,9 @@ pub mod job_schedule { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5926,6 +5971,9 @@ pub mod job_schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6138,9 +6186,9 @@ pub mod activity { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/modules/{}/activities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . module_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6159,6 +6207,9 @@ pub mod activity { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6524,9 +6575,9 @@ pub mod module { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6545,6 +6596,9 @@ pub mod module { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7117,9 +7171,9 @@ pub mod schedule { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7138,6 +7192,9 @@ pub mod schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7503,9 +7560,9 @@ pub mod variable { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7524,6 +7581,9 @@ pub mod variable { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8027,9 +8087,9 @@ pub mod watcher { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8048,6 +8108,9 @@ pub mod watcher { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8514,9 +8577,9 @@ pub mod dsc_configuration { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8535,6 +8598,9 @@ pub mod dsc_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9110,9 +9176,9 @@ pub mod job { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9131,6 +9197,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9370,9 +9439,9 @@ pub mod job_stream { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9391,6 +9460,9 @@ pub mod job_stream { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10869,9 +10941,9 @@ pub mod runbook { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10890,6 +10962,9 @@ pub mod runbook { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11034,9 +11109,9 @@ pub mod test_job_streams { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/runbooks/{}/draft/testJob/streams" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . runbook_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11055,6 +11130,9 @@ pub mod test_job_streams { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11800,9 +11878,9 @@ pub mod webhook { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11821,6 +11899,9 @@ pub mod webhook { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/automation/src/package_2021_06_22/models.rs b/services/mgmt/automation/src/package_2021_06_22/models.rs index 7286b981dd..a8c073ba80 100644 --- a/services/mgmt/automation/src/package_2021_06_22/models.rs +++ b/services/mgmt/automation/src/package_2021_06_22/models.rs @@ -33,8 +33,8 @@ pub struct ActivityListResult { pub next_link: Option, } impl azure_core::Continuable for ActivityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActivityListResult { @@ -402,8 +402,8 @@ pub struct AutomationAccountListResult { pub next_link: Option, } impl azure_core::Continuable for AutomationAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationAccountListResult { @@ -622,8 +622,8 @@ pub struct CertificateListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -745,8 +745,8 @@ pub struct ConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionListResult { @@ -853,8 +853,8 @@ pub struct ConnectionTypeListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionTypeListResult { @@ -1069,8 +1069,8 @@ pub struct CredentialListResult { pub next_link: Option, } impl azure_core::Continuable for CredentialListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CredentialListResult { @@ -1203,8 +1203,8 @@ pub struct DscCompilationJobListResult { pub next_link: Option, } impl azure_core::Continuable for DscCompilationJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscCompilationJobListResult { @@ -1422,8 +1422,8 @@ pub struct DscConfigurationListResult { pub total_count: Option, } impl azure_core::Continuable for DscConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscConfigurationListResult { @@ -1678,8 +1678,8 @@ pub struct DscNodeConfigurationListResult { pub total_count: Option, } impl azure_core::Continuable for DscNodeConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeConfigurationListResult { @@ -1743,8 +1743,8 @@ pub struct DscNodeListResult { pub total_count: Option, } impl azure_core::Continuable for DscNodeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeListResult { @@ -1868,8 +1868,8 @@ pub struct DscNodeReportListResult { pub next_link: Option, } impl azure_core::Continuable for DscNodeReportListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeReportListResult { @@ -2035,7 +2035,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2230,8 +2230,8 @@ pub struct HybridRunbookWorkerGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for HybridRunbookWorkerGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridRunbookWorkerGroupsListResult { @@ -2350,8 +2350,8 @@ pub struct HybridRunbookWorkersListResult { pub next_link: Option, } impl azure_core::Continuable for HybridRunbookWorkersListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridRunbookWorkersListResult { @@ -2558,8 +2558,8 @@ pub struct JobListResultV2 { pub next_link: Option, } impl azure_core::Continuable for JobListResultV2 { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResultV2 { @@ -2788,8 +2788,8 @@ pub struct JobScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for JobScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobScheduleListResult { @@ -2847,8 +2847,8 @@ pub struct JobStreamListResult { pub next_link: Option, } impl azure_core::Continuable for JobStreamListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobStreamListResult { @@ -3214,8 +3214,8 @@ pub struct ModuleListResult { pub next_link: Option, } impl azure_core::Continuable for ModuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModuleListResult { @@ -3420,7 +3420,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3451,7 +3451,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3512,7 +3512,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4104,8 +4104,8 @@ pub struct RunbookListResult { pub next_link: Option, } impl azure_core::Continuable for RunbookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunbookListResult { @@ -4459,8 +4459,8 @@ pub struct ScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for ScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScheduleListResult { @@ -4720,8 +4720,8 @@ pub struct SourceControlListResult { pub next_link: Option, } impl azure_core::Continuable for SourceControlListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlListResult { @@ -5043,8 +5043,8 @@ pub struct SourceControlSyncJobListResult { pub next_link: Option, } impl azure_core::Continuable for SourceControlSyncJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlSyncJobListResult { @@ -5327,8 +5327,8 @@ pub struct SourceControlSyncJobStreamsListBySyncJob { pub next_link: Option, } impl azure_core::Continuable for SourceControlSyncJobStreamsListBySyncJob { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlSyncJobStreamsListBySyncJob { @@ -5406,7 +5406,7 @@ pub struct StatisticsListResult { pub value: Vec, } impl azure_core::Continuable for StatisticsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5551,7 +5551,7 @@ pub struct TypeFieldListResult { pub value: Vec, } impl azure_core::Continuable for TypeFieldListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5610,7 +5610,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5675,8 +5675,8 @@ pub struct VariableListResult { pub next_link: Option, } impl azure_core::Continuable for VariableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VariableListResult { @@ -5772,8 +5772,8 @@ pub struct WatcherListResult { pub next_link: Option, } impl azure_core::Continuable for WatcherListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatcherListResult { @@ -5908,8 +5908,8 @@ pub struct WebhookListResult { pub next_link: Option, } impl azure_core::Continuable for WebhookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebhookListResult { diff --git a/services/mgmt/automation/src/package_2021_06_22/operations.rs b/services/mgmt/automation/src/package_2021_06_22/operations.rs index e564b0caf9..cb0ed1f5f2 100644 --- a/services/mgmt/automation/src/package_2021_06_22/operations.rs +++ b/services/mgmt/automation/src/package_2021_06_22/operations.rs @@ -867,9 +867,9 @@ pub mod python2_package { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -888,6 +888,9 @@ pub mod python2_package { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1323,9 +1326,9 @@ pub mod dsc_node { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1344,6 +1347,9 @@ pub mod dsc_node { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1476,9 +1482,9 @@ pub mod node_reports { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1497,6 +1503,9 @@ pub mod node_reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1888,9 +1897,9 @@ pub mod dsc_node_configuration { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1909,6 +1918,9 @@ pub mod dsc_node_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2163,9 +2175,9 @@ pub mod dsc_compilation_job { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2184,6 +2196,9 @@ pub mod dsc_compilation_job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2749,9 +2764,9 @@ pub mod source_control { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2770,6 +2785,9 @@ pub mod source_control { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2986,9 +3004,9 @@ pub mod source_control_sync_job { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/sourceControls/{}/sourceControlSyncJobs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . source_control_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3007,6 +3025,9 @@ pub mod source_control_sync_job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3111,9 +3132,9 @@ pub mod source_control_sync_job_streams { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/sourceControls/{}/sourceControlSyncJobs/{}/streams" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . source_control_name , & this . source_control_sync_job_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3132,6 +3153,9 @@ pub mod source_control_sync_job_streams { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3541,9 +3565,9 @@ pub mod automation_account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3562,6 +3586,9 @@ pub mod automation_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3615,9 +3642,9 @@ pub mod automation_account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3636,6 +3663,9 @@ pub mod automation_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4226,9 +4256,9 @@ pub mod certificate { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4247,6 +4277,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4617,9 +4650,9 @@ pub mod connection { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4638,6 +4671,9 @@ pub mod connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4926,9 +4962,9 @@ pub mod connection_type { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4947,6 +4983,9 @@ pub mod connection_type { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5312,9 +5351,9 @@ pub mod credential { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5333,6 +5372,9 @@ pub mod credential { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5661,9 +5703,9 @@ pub mod hybrid_runbook_worker_group { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/hybridRunbookWorkerGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5682,6 +5724,9 @@ pub mod hybrid_runbook_worker_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5974,9 +6019,9 @@ pub mod job_schedule { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5995,6 +6040,9 @@ pub mod job_schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6207,9 +6255,9 @@ pub mod activity { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/modules/{}/activities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . module_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6228,6 +6276,9 @@ pub mod activity { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6593,9 +6644,9 @@ pub mod module { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6614,6 +6665,9 @@ pub mod module { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7186,9 +7240,9 @@ pub mod schedule { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7207,6 +7261,9 @@ pub mod schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7572,9 +7629,9 @@ pub mod variable { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7593,6 +7650,9 @@ pub mod variable { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8096,9 +8156,9 @@ pub mod watcher { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8117,6 +8177,9 @@ pub mod watcher { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8583,9 +8646,9 @@ pub mod dsc_configuration { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8604,6 +8667,9 @@ pub mod dsc_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9179,9 +9245,9 @@ pub mod job { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9200,6 +9266,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9439,9 +9508,9 @@ pub mod job_stream { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9460,6 +9529,9 @@ pub mod job_stream { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11003,9 +11075,9 @@ pub mod runbook { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11024,6 +11096,9 @@ pub mod runbook { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11168,9 +11243,9 @@ pub mod test_job_streams { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/runbooks/{}/draft/testJob/streams" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . runbook_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11189,6 +11264,9 @@ pub mod test_job_streams { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11934,9 +12012,9 @@ pub mod webhook { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11955,6 +12033,9 @@ pub mod webhook { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12302,9 +12383,9 @@ pub mod hybrid_runbook_workers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/hybridRunbookWorkerGroups/{}/hybridRunbookWorkers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . hybrid_runbook_worker_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12323,6 +12404,9 @@ pub mod hybrid_runbook_workers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/automation/src/package_2022_01_31/models.rs b/services/mgmt/automation/src/package_2022_01_31/models.rs index 5a60c9e26d..2f747ccbd9 100644 --- a/services/mgmt/automation/src/package_2022_01_31/models.rs +++ b/services/mgmt/automation/src/package_2022_01_31/models.rs @@ -33,8 +33,8 @@ pub struct ActivityListResult { pub next_link: Option, } impl azure_core::Continuable for ActivityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActivityListResult { @@ -402,8 +402,8 @@ pub struct AutomationAccountListResult { pub next_link: Option, } impl azure_core::Continuable for AutomationAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationAccountListResult { @@ -622,8 +622,8 @@ pub struct CertificateListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -745,8 +745,8 @@ pub struct ConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionListResult { @@ -853,8 +853,8 @@ pub struct ConnectionTypeListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionTypeListResult { @@ -1069,8 +1069,8 @@ pub struct CredentialListResult { pub next_link: Option, } impl azure_core::Continuable for CredentialListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CredentialListResult { @@ -1260,8 +1260,8 @@ pub struct DscCompilationJobListResult { pub next_link: Option, } impl azure_core::Continuable for DscCompilationJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscCompilationJobListResult { @@ -1479,8 +1479,8 @@ pub struct DscConfigurationListResult { pub total_count: Option, } impl azure_core::Continuable for DscConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscConfigurationListResult { @@ -1735,8 +1735,8 @@ pub struct DscNodeConfigurationListResult { pub total_count: Option, } impl azure_core::Continuable for DscNodeConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeConfigurationListResult { @@ -1800,8 +1800,8 @@ pub struct DscNodeListResult { pub total_count: Option, } impl azure_core::Continuable for DscNodeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeListResult { @@ -1925,8 +1925,8 @@ pub struct DscNodeReportListResult { pub next_link: Option, } impl azure_core::Continuable for DscNodeReportListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscNodeReportListResult { @@ -2092,7 +2092,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2287,8 +2287,8 @@ pub struct HybridRunbookWorkerGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for HybridRunbookWorkerGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridRunbookWorkerGroupsListResult { @@ -2407,8 +2407,8 @@ pub struct HybridRunbookWorkersListResult { pub next_link: Option, } impl azure_core::Continuable for HybridRunbookWorkersListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridRunbookWorkersListResult { @@ -2615,8 +2615,8 @@ pub struct JobListResultV2 { pub next_link: Option, } impl azure_core::Continuable for JobListResultV2 { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResultV2 { @@ -2845,8 +2845,8 @@ pub struct JobScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for JobScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobScheduleListResult { @@ -2904,8 +2904,8 @@ pub struct JobStreamListResult { pub next_link: Option, } impl azure_core::Continuable for JobStreamListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobStreamListResult { @@ -3271,8 +3271,8 @@ pub struct ModuleListResult { pub next_link: Option, } impl azure_core::Continuable for ModuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModuleListResult { @@ -3477,7 +3477,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3508,7 +3508,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3569,7 +3569,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4161,8 +4161,8 @@ pub struct RunbookListResult { pub next_link: Option, } impl azure_core::Continuable for RunbookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunbookListResult { @@ -4516,8 +4516,8 @@ pub struct ScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for ScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScheduleListResult { @@ -4777,8 +4777,8 @@ pub struct SourceControlListResult { pub next_link: Option, } impl azure_core::Continuable for SourceControlListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlListResult { @@ -5100,8 +5100,8 @@ pub struct SourceControlSyncJobListResult { pub next_link: Option, } impl azure_core::Continuable for SourceControlSyncJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlSyncJobListResult { @@ -5384,8 +5384,8 @@ pub struct SourceControlSyncJobStreamsListBySyncJob { pub next_link: Option, } impl azure_core::Continuable for SourceControlSyncJobStreamsListBySyncJob { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlSyncJobStreamsListBySyncJob { @@ -5463,7 +5463,7 @@ pub struct StatisticsListResult { pub value: Vec, } impl azure_core::Continuable for StatisticsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5608,7 +5608,7 @@ pub struct TypeFieldListResult { pub value: Vec, } impl azure_core::Continuable for TypeFieldListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5667,7 +5667,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5732,8 +5732,8 @@ pub struct VariableListResult { pub next_link: Option, } impl azure_core::Continuable for VariableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VariableListResult { @@ -5829,8 +5829,8 @@ pub struct WatcherListResult { pub next_link: Option, } impl azure_core::Continuable for WatcherListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatcherListResult { @@ -5965,8 +5965,8 @@ pub struct WebhookListResult { pub next_link: Option, } impl azure_core::Continuable for WebhookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebhookListResult { diff --git a/services/mgmt/automation/src/package_2022_01_31/operations.rs b/services/mgmt/automation/src/package_2022_01_31/operations.rs index c0f40ced85..ccf9e54df1 100644 --- a/services/mgmt/automation/src/package_2022_01_31/operations.rs +++ b/services/mgmt/automation/src/package_2022_01_31/operations.rs @@ -870,9 +870,9 @@ pub mod python2_package { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -891,6 +891,9 @@ pub mod python2_package { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1326,9 +1329,9 @@ pub mod dsc_node { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1347,6 +1350,9 @@ pub mod dsc_node { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1479,9 +1485,9 @@ pub mod node_reports { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1500,6 +1506,9 @@ pub mod node_reports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1891,9 +1900,9 @@ pub mod dsc_node_configuration { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1912,6 +1921,9 @@ pub mod dsc_node_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2166,9 +2178,9 @@ pub mod dsc_compilation_job { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2187,6 +2199,9 @@ pub mod dsc_compilation_job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2752,9 +2767,9 @@ pub mod source_control { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2773,6 +2788,9 @@ pub mod source_control { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2989,9 +3007,9 @@ pub mod source_control_sync_job { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/sourceControls/{}/sourceControlSyncJobs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . source_control_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3010,6 +3028,9 @@ pub mod source_control_sync_job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3114,9 +3135,9 @@ pub mod source_control_sync_job_streams { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/sourceControls/{}/sourceControlSyncJobs/{}/streams" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . source_control_name , & this . source_control_sync_job_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3135,6 +3156,9 @@ pub mod source_control_sync_job_streams { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3544,9 +3568,9 @@ pub mod automation_account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3565,6 +3589,9 @@ pub mod automation_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3618,9 +3645,9 @@ pub mod automation_account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3639,6 +3666,9 @@ pub mod automation_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4229,9 +4259,9 @@ pub mod certificate { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4250,6 +4280,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4620,9 +4653,9 @@ pub mod connection { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4641,6 +4674,9 @@ pub mod connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4929,9 +4965,9 @@ pub mod connection_type { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4950,6 +4986,9 @@ pub mod connection_type { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5315,9 +5354,9 @@ pub mod credential { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5336,6 +5375,9 @@ pub mod credential { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5664,9 +5706,9 @@ pub mod hybrid_runbook_worker_group { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/hybridRunbookWorkerGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5685,6 +5727,9 @@ pub mod hybrid_runbook_worker_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5977,9 +6022,9 @@ pub mod job_schedule { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5998,6 +6043,9 @@ pub mod job_schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6210,9 +6258,9 @@ pub mod activity { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/modules/{}/activities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . module_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6231,6 +6279,9 @@ pub mod activity { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6596,9 +6647,9 @@ pub mod module { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6617,6 +6668,9 @@ pub mod module { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7189,9 +7243,9 @@ pub mod schedule { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7210,6 +7264,9 @@ pub mod schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7575,9 +7632,9 @@ pub mod variable { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7596,6 +7653,9 @@ pub mod variable { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8099,9 +8159,9 @@ pub mod watcher { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8120,6 +8180,9 @@ pub mod watcher { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8586,9 +8649,9 @@ pub mod dsc_configuration { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8607,6 +8670,9 @@ pub mod dsc_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9182,9 +9248,9 @@ pub mod job { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9203,6 +9269,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9442,9 +9511,9 @@ pub mod job_stream { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9463,6 +9532,9 @@ pub mod job_stream { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11006,9 +11078,9 @@ pub mod runbook { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11027,6 +11099,9 @@ pub mod runbook { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11171,9 +11246,9 @@ pub mod test_job_streams { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/runbooks/{}/draft/testJob/streams" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . runbook_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11192,6 +11267,9 @@ pub mod test_job_streams { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11937,9 +12015,9 @@ pub mod webhook { &this.automation_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11958,6 +12036,9 @@ pub mod webhook { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12305,9 +12386,9 @@ pub mod hybrid_runbook_workers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Automation/automationAccounts/{}/hybridRunbookWorkerGroups/{}/hybridRunbookWorkers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . automation_account_name , & this . hybrid_runbook_worker_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12326,6 +12407,9 @@ pub mod hybrid_runbook_workers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/baremetalinfrastructure/src/package_2020_08_06_preview/models.rs b/services/mgmt/baremetalinfrastructure/src/package_2020_08_06_preview/models.rs index f9bedeb075..18f78d0dad 100644 --- a/services/mgmt/baremetalinfrastructure/src/package_2020_08_06_preview/models.rs +++ b/services/mgmt/baremetalinfrastructure/src/package_2020_08_06_preview/models.rs @@ -172,8 +172,8 @@ pub struct AzureBareMetalInstancesListResult { pub next_link: Option, } impl azure_core::Continuable for AzureBareMetalInstancesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureBareMetalInstancesListResult { @@ -249,7 +249,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -508,7 +508,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/baremetalinfrastructure/src/package_2020_08_06_preview/operations.rs b/services/mgmt/baremetalinfrastructure/src/package_2020_08_06_preview/operations.rs index c1649224fe..578e91efda 100644 --- a/services/mgmt/baremetalinfrastructure/src/package_2020_08_06_preview/operations.rs +++ b/services/mgmt/baremetalinfrastructure/src/package_2020_08_06_preview/operations.rs @@ -355,9 +355,9 @@ pub mod azure_bare_metal_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -376,6 +376,9 @@ pub mod azure_bare_metal_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -431,9 +434,9 @@ pub mod azure_bare_metal_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -452,6 +455,9 @@ pub mod azure_bare_metal_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/models.rs b/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/models.rs index 7192a0e61d..e363beef64 100644 --- a/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/models.rs +++ b/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/models.rs @@ -176,8 +176,8 @@ pub struct AzureBareMetalInstancesListResult { pub next_link: Option, } impl azure_core::Continuable for AzureBareMetalInstancesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureBareMetalInstancesListResult { @@ -250,7 +250,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -509,7 +509,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/operations.rs b/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/operations.rs index 668e9b84d5..5d3d7d6191 100644 --- a/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/operations.rs +++ b/services/mgmt/baremetalinfrastructure/src/package_2021_08_09/operations.rs @@ -154,9 +154,9 @@ pub mod azure_bare_metal_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -175,6 +175,9 @@ pub mod azure_bare_metal_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -230,9 +233,9 @@ pub mod azure_bare_metal_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -251,6 +254,9 @@ pub mod azure_bare_metal_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/batch/src/package_2020_09/models.rs b/services/mgmt/batch/src/package_2020_09/models.rs index 3f42ff4be0..7ca3a44ac2 100644 --- a/services/mgmt/batch/src/package_2020_09/models.rs +++ b/services/mgmt/batch/src/package_2020_09/models.rs @@ -393,8 +393,8 @@ pub struct BatchAccountListResult { pub next_link: Option, } impl azure_core::Continuable for BatchAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BatchAccountListResult { @@ -768,7 +768,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1126,8 +1126,8 @@ pub struct ListApplicationPackagesResult { pub next_link: Option, } impl azure_core::Continuable for ListApplicationPackagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListApplicationPackagesResult { @@ -1146,8 +1146,8 @@ pub struct ListApplicationsResult { pub next_link: Option, } impl azure_core::Continuable for ListApplicationsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListApplicationsResult { @@ -1166,8 +1166,8 @@ pub struct ListCertificatesResult { pub next_link: Option, } impl azure_core::Continuable for ListCertificatesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListCertificatesResult { @@ -1186,8 +1186,8 @@ pub struct ListPoolsResult { pub next_link: Option, } impl azure_core::Continuable for ListPoolsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPoolsResult { @@ -1206,8 +1206,8 @@ pub struct ListPrivateEndpointConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListPrivateEndpointConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPrivateEndpointConnectionsResult { @@ -1226,8 +1226,8 @@ pub struct ListPrivateLinkResourcesResult { pub next_link: Option, } impl azure_core::Continuable for ListPrivateLinkResourcesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPrivateLinkResourcesResult { @@ -1373,8 +1373,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/batch/src/package_2020_09/operations.rs b/services/mgmt/batch/src/package_2020_09/operations.rs index dfef89cb40..2a90affb1c 100644 --- a/services/mgmt/batch/src/package_2020_09/operations.rs +++ b/services/mgmt/batch/src/package_2020_09/operations.rs @@ -463,9 +463,9 @@ pub mod batch_account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -484,6 +484,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -539,9 +542,9 @@ pub mod batch_account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -560,6 +563,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1102,9 +1108,9 @@ pub mod application_package { &this.application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1123,6 +1129,9 @@ pub mod application_package { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1500,9 +1509,9 @@ pub mod application { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1521,6 +1530,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1709,9 +1721,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Batch/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1730,6 +1742,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1907,9 +1922,9 @@ pub mod certificate { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1928,6 +1943,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2338,9 +2356,9 @@ pub mod private_link_resource { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2359,6 +2377,9 @@ pub mod private_link_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2531,9 +2552,9 @@ pub mod private_endpoint_connection { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2552,6 +2573,9 @@ pub mod private_endpoint_connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2859,9 +2883,9 @@ pub mod pool { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2880,6 +2904,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/batch/src/package_2021_01/models.rs b/services/mgmt/batch/src/package_2021_01/models.rs index e9d25f9a7b..baf99c6d3d 100644 --- a/services/mgmt/batch/src/package_2021_01/models.rs +++ b/services/mgmt/batch/src/package_2021_01/models.rs @@ -398,8 +398,8 @@ pub struct BatchAccountListResult { pub next_link: Option, } impl azure_core::Continuable for BatchAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BatchAccountListResult { @@ -800,7 +800,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1158,8 +1158,8 @@ pub struct ListApplicationPackagesResult { pub next_link: Option, } impl azure_core::Continuable for ListApplicationPackagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListApplicationPackagesResult { @@ -1178,8 +1178,8 @@ pub struct ListApplicationsResult { pub next_link: Option, } impl azure_core::Continuable for ListApplicationsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListApplicationsResult { @@ -1198,8 +1198,8 @@ pub struct ListCertificatesResult { pub next_link: Option, } impl azure_core::Continuable for ListCertificatesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListCertificatesResult { @@ -1218,8 +1218,8 @@ pub struct ListPoolsResult { pub next_link: Option, } impl azure_core::Continuable for ListPoolsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPoolsResult { @@ -1238,8 +1238,8 @@ pub struct ListPrivateEndpointConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListPrivateEndpointConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPrivateEndpointConnectionsResult { @@ -1258,8 +1258,8 @@ pub struct ListPrivateLinkResourcesResult { pub next_link: Option, } impl azure_core::Continuable for ListPrivateLinkResourcesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPrivateLinkResourcesResult { @@ -1423,8 +1423,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/batch/src/package_2021_01/operations.rs b/services/mgmt/batch/src/package_2021_01/operations.rs index f6734470c9..77a3390175 100644 --- a/services/mgmt/batch/src/package_2021_01/operations.rs +++ b/services/mgmt/batch/src/package_2021_01/operations.rs @@ -463,9 +463,9 @@ pub mod batch_account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -484,6 +484,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -539,9 +542,9 @@ pub mod batch_account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -560,6 +563,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1102,9 +1108,9 @@ pub mod application_package { &this.application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1123,6 +1129,9 @@ pub mod application_package { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1500,9 +1509,9 @@ pub mod application { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1521,6 +1530,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1709,9 +1721,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Batch/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1730,6 +1742,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1907,9 +1922,9 @@ pub mod certificate { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1928,6 +1943,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2337,9 +2355,9 @@ pub mod private_link_resource { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2358,6 +2376,9 @@ pub mod private_link_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2530,9 +2551,9 @@ pub mod private_endpoint_connection { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2551,6 +2572,9 @@ pub mod private_endpoint_connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2858,9 +2882,9 @@ pub mod pool { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2879,6 +2903,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/batch/src/package_2021_06/models.rs b/services/mgmt/batch/src/package_2021_06/models.rs index 7b7a577b81..02051a2922 100644 --- a/services/mgmt/batch/src/package_2021_06/models.rs +++ b/services/mgmt/batch/src/package_2021_06/models.rs @@ -437,8 +437,8 @@ pub struct BatchAccountListResult { pub next_link: Option, } impl azure_core::Continuable for BatchAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BatchAccountListResult { @@ -846,7 +846,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1263,8 +1263,8 @@ pub struct ListApplicationPackagesResult { pub next_link: Option, } impl azure_core::Continuable for ListApplicationPackagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListApplicationPackagesResult { @@ -1283,8 +1283,8 @@ pub struct ListApplicationsResult { pub next_link: Option, } impl azure_core::Continuable for ListApplicationsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListApplicationsResult { @@ -1303,8 +1303,8 @@ pub struct ListCertificatesResult { pub next_link: Option, } impl azure_core::Continuable for ListCertificatesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListCertificatesResult { @@ -1323,8 +1323,8 @@ pub struct ListPoolsResult { pub next_link: Option, } impl azure_core::Continuable for ListPoolsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPoolsResult { @@ -1343,8 +1343,8 @@ pub struct ListPrivateEndpointConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListPrivateEndpointConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPrivateEndpointConnectionsResult { @@ -1363,8 +1363,8 @@ pub struct ListPrivateLinkResourcesResult { pub next_link: Option, } impl azure_core::Continuable for ListPrivateLinkResourcesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPrivateLinkResourcesResult { @@ -1541,8 +1541,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1576,8 +1576,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -2048,8 +2048,8 @@ pub struct SupportedSkusResult { pub next_link: Option, } impl azure_core::Continuable for SupportedSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SupportedSkusResult { diff --git a/services/mgmt/batch/src/package_2021_06/operations.rs b/services/mgmt/batch/src/package_2021_06/operations.rs index 3b0f9f1261..3d4de56b34 100644 --- a/services/mgmt/batch/src/package_2021_06/operations.rs +++ b/services/mgmt/batch/src/package_2021_06/operations.rs @@ -477,9 +477,9 @@ pub mod batch_account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -498,6 +498,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -553,9 +556,9 @@ pub mod batch_account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -574,6 +577,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -781,9 +787,9 @@ pub mod batch_account { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Batch/batchAccounts/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -802,6 +808,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1188,9 +1197,9 @@ pub mod application_package { &this.application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1209,6 +1218,9 @@ pub mod application_package { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1586,9 +1598,9 @@ pub mod application { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1607,6 +1619,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1777,9 +1792,9 @@ pub mod location { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1798,6 +1813,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1869,9 +1887,9 @@ pub mod location { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1890,6 +1908,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2005,9 +2026,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Batch/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2026,6 +2047,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2203,9 +2227,9 @@ pub mod certificate { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2224,6 +2248,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2633,9 +2660,9 @@ pub mod private_link_resource { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2654,6 +2681,9 @@ pub mod private_link_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2826,9 +2856,9 @@ pub mod private_endpoint_connection { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2847,6 +2877,9 @@ pub mod private_endpoint_connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3154,9 +3187,9 @@ pub mod pool { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3175,6 +3208,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/batch/src/package_2022_01/models.rs b/services/mgmt/batch/src/package_2022_01/models.rs index 3a7770aa94..cc91275550 100644 --- a/services/mgmt/batch/src/package_2022_01/models.rs +++ b/services/mgmt/batch/src/package_2022_01/models.rs @@ -437,8 +437,8 @@ pub struct BatchAccountListResult { pub next_link: Option, } impl azure_core::Continuable for BatchAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BatchAccountListResult { @@ -846,7 +846,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1026,8 +1026,8 @@ pub struct DetectorListResult { pub next_link: Option, } impl azure_core::Continuable for DetectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DetectorListResult { @@ -1309,8 +1309,8 @@ pub struct ListApplicationPackagesResult { pub next_link: Option, } impl azure_core::Continuable for ListApplicationPackagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListApplicationPackagesResult { @@ -1329,8 +1329,8 @@ pub struct ListApplicationsResult { pub next_link: Option, } impl azure_core::Continuable for ListApplicationsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListApplicationsResult { @@ -1349,8 +1349,8 @@ pub struct ListCertificatesResult { pub next_link: Option, } impl azure_core::Continuable for ListCertificatesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListCertificatesResult { @@ -1369,8 +1369,8 @@ pub struct ListPoolsResult { pub next_link: Option, } impl azure_core::Continuable for ListPoolsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPoolsResult { @@ -1389,8 +1389,8 @@ pub struct ListPrivateEndpointConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListPrivateEndpointConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPrivateEndpointConnectionsResult { @@ -1409,8 +1409,8 @@ pub struct ListPrivateLinkResourcesResult { pub next_link: Option, } impl azure_core::Continuable for ListPrivateLinkResourcesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPrivateLinkResourcesResult { @@ -1599,8 +1599,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1634,8 +1634,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -2106,8 +2106,8 @@ pub struct SupportedSkusResult { pub next_link: Option, } impl azure_core::Continuable for SupportedSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SupportedSkusResult { diff --git a/services/mgmt/batch/src/package_2022_01/operations.rs b/services/mgmt/batch/src/package_2022_01/operations.rs index 4c4e6d818b..26776baa02 100644 --- a/services/mgmt/batch/src/package_2022_01/operations.rs +++ b/services/mgmt/batch/src/package_2022_01/operations.rs @@ -505,9 +505,9 @@ pub mod batch_account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -526,6 +526,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -581,9 +584,9 @@ pub mod batch_account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -602,6 +605,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -815,9 +821,9 @@ pub mod batch_account { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -836,6 +842,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -941,9 +950,9 @@ pub mod batch_account { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Batch/batchAccounts/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -962,6 +971,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1348,9 +1360,9 @@ pub mod application_package { &this.application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1369,6 +1381,9 @@ pub mod application_package { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1746,9 +1761,9 @@ pub mod application { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1767,6 +1782,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1937,9 +1955,9 @@ pub mod location { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1958,6 +1976,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2029,9 +2050,9 @@ pub mod location { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2050,6 +2071,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2165,9 +2189,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Batch/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2186,6 +2210,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2363,9 +2390,9 @@ pub mod certificate { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2384,6 +2411,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2793,9 +2823,9 @@ pub mod private_link_resource { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2814,6 +2844,9 @@ pub mod private_link_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2986,9 +3019,9 @@ pub mod private_endpoint_connection { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3007,6 +3040,9 @@ pub mod private_endpoint_connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3314,9 +3350,9 @@ pub mod pool { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3335,6 +3371,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/batch/src/package_2022_06/models.rs b/services/mgmt/batch/src/package_2022_06/models.rs index 58ddbed067..2d53e0a068 100644 --- a/services/mgmt/batch/src/package_2022_06/models.rs +++ b/services/mgmt/batch/src/package_2022_06/models.rs @@ -440,8 +440,8 @@ pub struct BatchAccountListResult { pub next_link: Option, } impl azure_core::Continuable for BatchAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BatchAccountListResult { @@ -861,7 +861,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1041,8 +1041,8 @@ pub struct DetectorListResult { pub next_link: Option, } impl azure_core::Continuable for DetectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DetectorListResult { @@ -1372,8 +1372,8 @@ pub struct ListApplicationPackagesResult { pub next_link: Option, } impl azure_core::Continuable for ListApplicationPackagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListApplicationPackagesResult { @@ -1392,8 +1392,8 @@ pub struct ListApplicationsResult { pub next_link: Option, } impl azure_core::Continuable for ListApplicationsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListApplicationsResult { @@ -1412,8 +1412,8 @@ pub struct ListCertificatesResult { pub next_link: Option, } impl azure_core::Continuable for ListCertificatesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListCertificatesResult { @@ -1432,8 +1432,8 @@ pub struct ListPoolsResult { pub next_link: Option, } impl azure_core::Continuable for ListPoolsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPoolsResult { @@ -1452,8 +1452,8 @@ pub struct ListPrivateEndpointConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListPrivateEndpointConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPrivateEndpointConnectionsResult { @@ -1472,8 +1472,8 @@ pub struct ListPrivateLinkResourcesResult { pub next_link: Option, } impl azure_core::Continuable for ListPrivateLinkResourcesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListPrivateLinkResourcesResult { @@ -1677,8 +1677,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1712,8 +1712,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -2190,8 +2190,8 @@ pub struct SupportedSkusResult { pub next_link: Option, } impl azure_core::Continuable for SupportedSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SupportedSkusResult { diff --git a/services/mgmt/batch/src/package_2022_06/operations.rs b/services/mgmt/batch/src/package_2022_06/operations.rs index f2fa35e75b..9a272d3410 100644 --- a/services/mgmt/batch/src/package_2022_06/operations.rs +++ b/services/mgmt/batch/src/package_2022_06/operations.rs @@ -505,9 +505,9 @@ pub mod batch_account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -526,6 +526,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -581,9 +584,9 @@ pub mod batch_account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -602,6 +605,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -815,9 +821,9 @@ pub mod batch_account { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -836,6 +842,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -941,9 +950,9 @@ pub mod batch_account { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Batch/batchAccounts/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -962,6 +971,9 @@ pub mod batch_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1348,9 +1360,9 @@ pub mod application_package { &this.application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1369,6 +1381,9 @@ pub mod application_package { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1746,9 +1761,9 @@ pub mod application { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1767,6 +1782,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1937,9 +1955,9 @@ pub mod location { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1958,6 +1976,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2029,9 +2050,9 @@ pub mod location { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2050,6 +2071,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2165,9 +2189,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Batch/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2186,6 +2210,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2363,9 +2390,9 @@ pub mod certificate { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2384,6 +2411,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2793,9 +2823,9 @@ pub mod private_link_resource { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2814,6 +2844,9 @@ pub mod private_link_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3001,9 +3034,9 @@ pub mod private_endpoint_connection { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3022,6 +3055,9 @@ pub mod private_endpoint_connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3378,9 +3414,9 @@ pub mod pool { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3399,6 +3435,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/billing/src/package_2019_10_preview/models.rs b/services/mgmt/billing/src/package_2019_10_preview/models.rs index 26f1e77801..aaa80c6424 100644 --- a/services/mgmt/billing/src/package_2019_10_preview/models.rs +++ b/services/mgmt/billing/src/package_2019_10_preview/models.rs @@ -516,8 +516,8 @@ pub struct BillingPermissionsListResult { pub next_link: Option, } impl azure_core::Continuable for BillingPermissionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingPermissionsListResult { @@ -1019,8 +1019,8 @@ pub struct BillingRoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for BillingRoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingRoleAssignmentListResult { @@ -1110,8 +1110,8 @@ pub struct BillingRoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for BillingRoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingRoleDefinitionListResult { @@ -1259,8 +1259,8 @@ pub struct BillingSubscriptionsListResult { pub next_link: Option, } impl azure_core::Continuable for BillingSubscriptionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingSubscriptionsListResult { @@ -1293,8 +1293,8 @@ pub struct CustomerListResult { pub next_link: Option, } impl azure_core::Continuable for CustomerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomerListResult { @@ -1834,7 +1834,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1914,8 +1914,8 @@ pub struct InstructionListResult { pub next_link: Option, } impl azure_core::Continuable for InstructionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstructionListResult { @@ -1976,8 +1976,8 @@ pub struct InvoiceListResult { pub total_count: Option, } impl azure_core::Continuable for InvoiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceListResult { @@ -2255,8 +2255,8 @@ pub struct InvoiceSectionListWithCreateSubPermissionResult { pub next_link: Option, } impl azure_core::Continuable for InvoiceSectionListWithCreateSubPermissionResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceSectionListWithCreateSubPermissionResult { @@ -2525,8 +2525,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2638,8 +2638,8 @@ pub struct PaymentMethodsListResult { pub next_link: Option, } impl azure_core::Continuable for PaymentMethodsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaymentMethodsListResult { @@ -3214,8 +3214,8 @@ pub struct ProductsListResult { pub next_link: Option, } impl azure_core::Continuable for ProductsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductsListResult { @@ -3246,8 +3246,8 @@ pub struct RecipientTransferDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for RecipientTransferDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecipientTransferDetailsListResult { @@ -3511,8 +3511,8 @@ pub struct TransactionListResult { pub next_link: Option, } impl azure_core::Continuable for TransactionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransactionListResult { @@ -3785,8 +3785,8 @@ pub struct TransferDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for TransferDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransferDetailsListResult { diff --git a/services/mgmt/billing/src/package_2019_10_preview/operations.rs b/services/mgmt/billing/src/package_2019_10_preview/operations.rs index c33144dee7..fef7658e04 100644 --- a/services/mgmt/billing/src/package_2019_10_preview/operations.rs +++ b/services/mgmt/billing/src/package_2019_10_preview/operations.rs @@ -380,9 +380,9 @@ pub mod billing_accounts { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -401,6 +401,9 @@ pub mod billing_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -478,9 +481,9 @@ pub mod payment_methods { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -499,6 +502,9 @@ pub mod payment_methods { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -554,9 +560,9 @@ pub mod payment_methods { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -575,6 +581,9 @@ pub mod payment_methods { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -800,9 +809,9 @@ pub mod instructions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -821,6 +830,9 @@ pub mod instructions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1365,9 +1377,9 @@ pub mod customers { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1386,6 +1398,9 @@ pub mod customers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1455,9 +1470,9 @@ pub mod customers { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1476,6 +1491,9 @@ pub mod customers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2053,9 +2071,9 @@ pub mod billing_permissions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2074,6 +2092,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2231,9 +2252,9 @@ pub mod billing_permissions { &this.department_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2252,6 +2273,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2307,9 +2331,9 @@ pub mod billing_permissions { &this.enrollment_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2328,6 +2352,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2492,9 +2519,9 @@ pub mod billing_subscriptions { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2513,6 +2540,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2618,9 +2648,9 @@ pub mod billing_subscriptions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2639,6 +2669,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3172,9 +3205,9 @@ pub mod products { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3193,6 +3226,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3628,9 +3664,9 @@ pub mod transactions { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3649,6 +3685,9 @@ pub mod transactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3716,9 +3755,9 @@ pub mod transactions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3737,6 +3776,9 @@ pub mod transactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3931,9 +3973,9 @@ pub mod transactions { &this.invoice_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3952,6 +3994,9 @@ pub mod transactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4880,9 +4925,9 @@ pub mod invoices { &this.billing_subscription_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4901,6 +4946,9 @@ pub mod invoices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5695,9 +5743,9 @@ pub mod transfers { &this.invoice_section_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5709,6 +5757,9 @@ pub mod transfers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5980,9 +6031,9 @@ pub mod partner_transfers { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5994,6 +6045,9 @@ pub mod partner_transfers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6269,9 +6323,9 @@ pub mod recipient_transfers { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/transfers", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6283,6 +6337,9 @@ pub mod recipient_transfers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6338,9 +6395,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6359,6 +6416,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6788,9 +6848,9 @@ pub mod billing_role_definitions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6809,6 +6869,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6960,9 +7023,9 @@ pub mod billing_role_definitions { &this.department_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6981,6 +7044,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7036,9 +7102,9 @@ pub mod billing_role_definitions { &this.enrollment_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7057,6 +7123,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7843,9 +7912,9 @@ pub mod billing_role_assignments { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7864,6 +7933,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8165,9 +8237,9 @@ pub mod billing_role_assignments { &this.department_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8186,6 +8258,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8241,9 +8316,9 @@ pub mod billing_role_assignments { &this.enrollment_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8262,6 +8337,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/billing/src/package_2020_05/models.rs b/services/mgmt/billing/src/package_2020_05/models.rs index 3dfb25fdbc..bac7cff008 100644 --- a/services/mgmt/billing/src/package_2020_05/models.rs +++ b/services/mgmt/billing/src/package_2020_05/models.rs @@ -132,8 +132,8 @@ pub struct AgreementListResult { pub next_link: Option, } impl azure_core::Continuable for AgreementListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgreementListResult { @@ -336,8 +336,8 @@ pub struct BillingAccountListResult { pub next_link: Option, } impl azure_core::Continuable for BillingAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingAccountListResult { @@ -574,8 +574,8 @@ pub struct BillingPeriodsListResult { pub next_link: Option, } impl azure_core::Continuable for BillingPeriodsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingPeriodsListResult { @@ -594,8 +594,8 @@ pub struct BillingPermissionsListResult { pub next_link: Option, } impl azure_core::Continuable for BillingPermissionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingPermissionsListResult { @@ -688,8 +688,8 @@ pub struct BillingProfileListResult { pub next_link: Option, } impl azure_core::Continuable for BillingProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingProfileListResult { @@ -1153,8 +1153,8 @@ pub struct BillingRoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for BillingRoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingRoleAssignmentListResult { @@ -1226,8 +1226,8 @@ pub struct BillingRoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for BillingRoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingRoleDefinitionListResult { @@ -1384,8 +1384,8 @@ pub struct BillingSubscriptionsListResult { pub next_link: Option, } impl azure_core::Continuable for BillingSubscriptionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingSubscriptionsListResult { @@ -1421,8 +1421,8 @@ pub struct CustomerListResult { pub next_link: Option, } impl azure_core::Continuable for CustomerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomerListResult { @@ -1753,8 +1753,8 @@ pub struct EnrollmentAccountListResult { pub next_link: Option, } impl azure_core::Continuable for EnrollmentAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnrollmentAccountListResult { @@ -1870,7 +1870,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1923,8 +1923,8 @@ pub struct InstructionListResult { pub next_link: Option, } impl azure_core::Continuable for InstructionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstructionListResult { @@ -1985,8 +1985,8 @@ pub struct InvoiceListResult { pub total_count: Option, } impl azure_core::Continuable for InvoiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceListResult { @@ -2238,8 +2238,8 @@ pub struct InvoiceSectionListResult { pub next_link: Option, } impl azure_core::Continuable for InvoiceSectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceSectionListResult { @@ -2258,8 +2258,8 @@ pub struct InvoiceSectionListWithCreateSubPermissionResult { pub next_link: Option, } impl azure_core::Continuable for InvoiceSectionListWithCreateSubPermissionResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceSectionListWithCreateSubPermissionResult { @@ -2564,8 +2564,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2599,7 +2599,7 @@ pub struct OperationsErrorResponse { pub error: Option, } impl azure_core::Continuable for OperationsErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3140,8 +3140,8 @@ pub struct ProductsListResult { pub next_link: Option, } impl azure_core::Continuable for ProductsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductsListResult { @@ -3362,8 +3362,8 @@ pub struct ReservationsListResult { pub summary: Option, } impl azure_core::Continuable for ReservationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationsListResult { @@ -3570,8 +3570,8 @@ pub struct TransactionListResult { pub next_link: Option, } impl azure_core::Continuable for TransactionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransactionListResult { diff --git a/services/mgmt/billing/src/package_2020_05/operations.rs b/services/mgmt/billing/src/package_2020_05/operations.rs index 8f77b1e49e..ad9e906572 100644 --- a/services/mgmt/billing/src/package_2020_05/operations.rs +++ b/services/mgmt/billing/src/package_2020_05/operations.rs @@ -196,9 +196,9 @@ pub mod billing_accounts { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/billingAccounts", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -217,6 +217,9 @@ pub mod billing_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -385,9 +388,9 @@ pub mod billing_accounts { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -406,6 +409,9 @@ pub mod billing_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -628,9 +634,9 @@ pub mod instructions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -649,6 +655,9 @@ pub mod instructions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -847,9 +856,9 @@ pub mod billing_profiles { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -868,6 +877,9 @@ pub mod billing_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1087,9 +1099,9 @@ pub mod customers { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1108,6 +1120,9 @@ pub mod customers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1177,9 +1192,9 @@ pub mod customers { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1198,6 +1213,9 @@ pub mod customers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1362,9 +1380,9 @@ pub mod invoice_sections { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1383,6 +1401,9 @@ pub mod invoice_sections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1597,9 +1618,9 @@ pub mod billing_permissions { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1618,6 +1639,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1671,9 +1695,9 @@ pub mod billing_permissions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1692,6 +1716,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1749,9 +1776,9 @@ pub mod billing_permissions { &this.invoice_section_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1770,6 +1797,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1825,9 +1855,9 @@ pub mod billing_permissions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1846,6 +1876,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1994,9 +2027,9 @@ pub mod billing_subscriptions { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2015,6 +2048,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2068,9 +2104,9 @@ pub mod billing_subscriptions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2089,6 +2125,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2144,9 +2183,9 @@ pub mod billing_subscriptions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2165,6 +2204,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2222,9 +2264,9 @@ pub mod billing_subscriptions { &this.invoice_section_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2243,6 +2285,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2606,9 +2651,9 @@ pub mod products { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2627,6 +2672,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2685,9 +2733,9 @@ pub mod products { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2706,6 +2754,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2769,9 +2820,9 @@ pub mod products { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2790,6 +2841,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2855,9 +2909,9 @@ pub mod products { &this.invoice_section_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2876,6 +2930,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3264,9 +3321,9 @@ pub mod invoices { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3285,6 +3342,9 @@ pub mod invoices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3346,9 +3406,9 @@ pub mod invoices { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3367,6 +3427,9 @@ pub mod invoices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3640,9 +3703,9 @@ pub mod invoices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3661,6 +3724,9 @@ pub mod invoices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3903,9 +3969,9 @@ pub mod transactions { &this.invoice_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3924,6 +3990,9 @@ pub mod transactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4576,9 +4645,9 @@ pub mod billing_role_definitions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4597,6 +4666,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4648,9 +4720,9 @@ pub mod billing_role_definitions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/invoiceSections/{}/billingRoleDefinitions" , this . client . endpoint () , & this . billing_account_name , & this . billing_profile_name , & this . invoice_section_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4669,6 +4741,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4724,9 +4799,9 @@ pub mod billing_role_definitions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4745,6 +4820,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5210,9 +5288,9 @@ pub mod billing_role_assignments { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5231,6 +5309,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5282,9 +5363,9 @@ pub mod billing_role_assignments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/invoiceSections/{}/billingRoleAssignments" , this . client . endpoint () , & this . billing_account_name , & this . billing_profile_name , & this . invoice_section_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5303,6 +5384,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5358,9 +5442,9 @@ pub mod billing_role_assignments { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5379,6 +5463,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5458,9 +5545,9 @@ pub mod agreements { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5479,6 +5566,9 @@ pub mod agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5644,9 +5734,9 @@ pub mod reservations { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5665,6 +5755,9 @@ pub mod reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5752,9 +5845,9 @@ pub mod reservations { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5773,6 +5866,9 @@ pub mod reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5851,9 +5947,9 @@ pub mod enrollment_accounts { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5872,6 +5968,9 @@ pub mod enrollment_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6010,9 +6109,9 @@ pub mod billing_periods { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6031,6 +6130,9 @@ pub mod billing_periods { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6148,9 +6250,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6169,6 +6271,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/billing/src/package_2020_09_preview/models.rs b/services/mgmt/billing/src/package_2020_09_preview/models.rs index 7a1c1f643a..6ad8f0cd59 100644 --- a/services/mgmt/billing/src/package_2020_09_preview/models.rs +++ b/services/mgmt/billing/src/package_2020_09_preview/models.rs @@ -132,8 +132,8 @@ pub struct AgreementListResult { pub next_link: Option, } impl azure_core::Continuable for AgreementListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgreementListResult { @@ -337,8 +337,8 @@ pub struct BillingAccountListResult { pub next_link: Option, } impl azure_core::Continuable for BillingAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingAccountListResult { @@ -543,8 +543,8 @@ pub struct BillingPermissionsListResult { pub next_link: Option, } impl azure_core::Continuable for BillingPermissionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingPermissionsListResult { @@ -637,8 +637,8 @@ pub struct BillingProfileListResult { pub next_link: Option, } impl azure_core::Continuable for BillingProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingProfileListResult { @@ -1102,8 +1102,8 @@ pub struct BillingRoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for BillingRoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingRoleAssignmentListResult { @@ -1175,8 +1175,8 @@ pub struct BillingRoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for BillingRoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingRoleDefinitionListResult { @@ -1333,8 +1333,8 @@ pub struct BillingSubscriptionsListResult { pub next_link: Option, } impl azure_core::Continuable for BillingSubscriptionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingSubscriptionsListResult { @@ -1370,8 +1370,8 @@ pub struct CustomerListResult { pub next_link: Option, } impl azure_core::Continuable for CustomerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomerListResult { @@ -1773,7 +1773,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1826,8 +1826,8 @@ pub struct InstructionListResult { pub next_link: Option, } impl azure_core::Continuable for InstructionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstructionListResult { @@ -1888,8 +1888,8 @@ pub struct InvoiceListResult { pub total_count: Option, } impl azure_core::Continuable for InvoiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceListResult { @@ -2141,8 +2141,8 @@ pub struct InvoiceSectionListResult { pub next_link: Option, } impl azure_core::Continuable for InvoiceSectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceSectionListResult { @@ -2161,8 +2161,8 @@ pub struct InvoiceSectionListWithCreateSubPermissionResult { pub next_link: Option, } impl azure_core::Continuable for InvoiceSectionListWithCreateSubPermissionResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceSectionListWithCreateSubPermissionResult { @@ -2467,8 +2467,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2502,7 +2502,7 @@ pub struct OperationsErrorResponse { pub error: Option, } impl azure_core::Continuable for OperationsErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3043,8 +3043,8 @@ pub struct ProductsListResult { pub next_link: Option, } impl azure_core::Continuable for ProductsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductsListResult { @@ -3151,8 +3151,8 @@ pub struct PromotionList { pub next_link: Option, } impl azure_core::Continuable for PromotionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PromotionList { @@ -3420,8 +3420,8 @@ pub struct ReservationsListResult { pub summary: Option, } impl azure_core::Continuable for ReservationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationsListResult { @@ -3628,8 +3628,8 @@ pub struct TransactionListResult { pub next_link: Option, } impl azure_core::Continuable for TransactionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransactionListResult { diff --git a/services/mgmt/billing/src/package_2020_09_preview/operations.rs b/services/mgmt/billing/src/package_2020_09_preview/operations.rs index 89af53937c..83dcaad73e 100644 --- a/services/mgmt/billing/src/package_2020_09_preview/operations.rs +++ b/services/mgmt/billing/src/package_2020_09_preview/operations.rs @@ -199,9 +199,9 @@ pub mod billing_accounts { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/billingAccounts", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -220,6 +220,9 @@ pub mod billing_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -388,9 +391,9 @@ pub mod billing_accounts { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -409,6 +412,9 @@ pub mod billing_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -631,9 +637,9 @@ pub mod instructions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -652,6 +658,9 @@ pub mod instructions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -850,9 +859,9 @@ pub mod billing_profiles { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -871,6 +880,9 @@ pub mod billing_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1090,9 +1102,9 @@ pub mod customers { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1111,6 +1123,9 @@ pub mod customers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1180,9 +1195,9 @@ pub mod customers { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1201,6 +1216,9 @@ pub mod customers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1365,9 +1383,9 @@ pub mod invoice_sections { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1386,6 +1404,9 @@ pub mod invoice_sections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1600,9 +1621,9 @@ pub mod billing_permissions { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1621,6 +1642,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1674,9 +1698,9 @@ pub mod billing_permissions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1695,6 +1719,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1752,9 +1779,9 @@ pub mod billing_permissions { &this.invoice_section_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1773,6 +1800,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1828,9 +1858,9 @@ pub mod billing_permissions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1849,6 +1879,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1997,9 +2030,9 @@ pub mod billing_subscriptions { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2018,6 +2051,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2071,9 +2107,9 @@ pub mod billing_subscriptions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2092,6 +2128,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2147,9 +2186,9 @@ pub mod billing_subscriptions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2168,6 +2207,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2225,9 +2267,9 @@ pub mod billing_subscriptions { &this.invoice_section_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2246,6 +2288,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2609,9 +2654,9 @@ pub mod products { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2630,6 +2675,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2688,9 +2736,9 @@ pub mod products { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2709,6 +2757,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2772,9 +2823,9 @@ pub mod products { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2793,6 +2844,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2858,9 +2912,9 @@ pub mod products { &this.invoice_section_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2879,6 +2933,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3267,9 +3324,9 @@ pub mod invoices { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3288,6 +3345,9 @@ pub mod invoices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3349,9 +3409,9 @@ pub mod invoices { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3370,6 +3430,9 @@ pub mod invoices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3643,9 +3706,9 @@ pub mod invoices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3664,6 +3727,9 @@ pub mod invoices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3906,9 +3972,9 @@ pub mod transactions { &this.invoice_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3927,6 +3993,9 @@ pub mod transactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4579,9 +4648,9 @@ pub mod billing_role_definitions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4600,6 +4669,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4651,9 +4723,9 @@ pub mod billing_role_definitions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/invoiceSections/{}/billingRoleDefinitions" , this . client . endpoint () , & this . billing_account_name , & this . billing_profile_name , & this . invoice_section_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4672,6 +4744,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4727,9 +4802,9 @@ pub mod billing_role_definitions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4748,6 +4823,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5213,9 +5291,9 @@ pub mod billing_role_assignments { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5234,6 +5312,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5285,9 +5366,9 @@ pub mod billing_role_assignments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/invoiceSections/{}/billingRoleAssignments" , this . client . endpoint () , & this . billing_account_name , & this . billing_profile_name , & this . invoice_section_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5306,6 +5387,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5361,9 +5445,9 @@ pub mod billing_role_assignments { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5382,6 +5466,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5461,9 +5548,9 @@ pub mod agreements { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5482,6 +5569,9 @@ pub mod agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5647,9 +5737,9 @@ pub mod reservations { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5668,6 +5758,9 @@ pub mod reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5755,9 +5848,9 @@ pub mod reservations { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5776,6 +5869,9 @@ pub mod reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6037,9 +6133,9 @@ pub mod promotions { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/promotions", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6058,6 +6154,9 @@ pub mod promotions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6116,9 +6215,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6137,6 +6236,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/billing/src/package_2020_11_preview/models.rs b/services/mgmt/billing/src/package_2020_11_preview/models.rs index f40ea28293..1fc99e320e 100644 --- a/services/mgmt/billing/src/package_2020_11_preview/models.rs +++ b/services/mgmt/billing/src/package_2020_11_preview/models.rs @@ -132,8 +132,8 @@ pub struct AgreementListResult { pub next_link: Option, } impl azure_core::Continuable for AgreementListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgreementListResult { @@ -337,8 +337,8 @@ pub struct BillingAccountListResult { pub next_link: Option, } impl azure_core::Continuable for BillingAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingAccountListResult { @@ -543,8 +543,8 @@ pub struct BillingPermissionsListResult { pub next_link: Option, } impl azure_core::Continuable for BillingPermissionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingPermissionsListResult { @@ -637,8 +637,8 @@ pub struct BillingProfileListResult { pub next_link: Option, } impl azure_core::Continuable for BillingProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingProfileListResult { @@ -1102,8 +1102,8 @@ pub struct BillingRoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for BillingRoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingRoleAssignmentListResult { @@ -1175,8 +1175,8 @@ pub struct BillingRoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for BillingRoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingRoleDefinitionListResult { @@ -1333,8 +1333,8 @@ pub struct BillingSubscriptionsListResult { pub next_link: Option, } impl azure_core::Continuable for BillingSubscriptionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingSubscriptionsListResult { @@ -1370,8 +1370,8 @@ pub struct CustomerListResult { pub next_link: Option, } impl azure_core::Continuable for CustomerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomerListResult { @@ -1773,7 +1773,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1826,8 +1826,8 @@ pub struct InstructionListResult { pub next_link: Option, } impl azure_core::Continuable for InstructionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstructionListResult { @@ -1888,8 +1888,8 @@ pub struct InvoiceListResult { pub total_count: Option, } impl azure_core::Continuable for InvoiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceListResult { @@ -2141,8 +2141,8 @@ pub struct InvoiceSectionListResult { pub next_link: Option, } impl azure_core::Continuable for InvoiceSectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceSectionListResult { @@ -2161,8 +2161,8 @@ pub struct InvoiceSectionListWithCreateSubPermissionResult { pub next_link: Option, } impl azure_core::Continuable for InvoiceSectionListWithCreateSubPermissionResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvoiceSectionListWithCreateSubPermissionResult { @@ -2467,8 +2467,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2502,7 +2502,7 @@ pub struct OperationsErrorResponse { pub error: Option, } impl azure_core::Continuable for OperationsErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3043,8 +3043,8 @@ pub struct ProductsListResult { pub next_link: Option, } impl azure_core::Continuable for ProductsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductsListResult { @@ -3139,8 +3139,8 @@ pub struct PromotionList { pub next_link: Option, } impl azure_core::Continuable for PromotionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PromotionList { @@ -3408,8 +3408,8 @@ pub struct ReservationsListResult { pub summary: Option, } impl azure_core::Continuable for ReservationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationsListResult { @@ -3616,8 +3616,8 @@ pub struct TransactionListResult { pub next_link: Option, } impl azure_core::Continuable for TransactionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransactionListResult { diff --git a/services/mgmt/billing/src/package_2020_11_preview/operations.rs b/services/mgmt/billing/src/package_2020_11_preview/operations.rs index c8b64f52aa..c9066d8167 100644 --- a/services/mgmt/billing/src/package_2020_11_preview/operations.rs +++ b/services/mgmt/billing/src/package_2020_11_preview/operations.rs @@ -199,9 +199,9 @@ pub mod billing_accounts { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/billingAccounts", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -220,6 +220,9 @@ pub mod billing_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -388,9 +391,9 @@ pub mod billing_accounts { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -409,6 +412,9 @@ pub mod billing_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -631,9 +637,9 @@ pub mod instructions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -652,6 +658,9 @@ pub mod instructions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -850,9 +859,9 @@ pub mod billing_profiles { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -871,6 +880,9 @@ pub mod billing_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1090,9 +1102,9 @@ pub mod customers { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1111,6 +1123,9 @@ pub mod customers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1180,9 +1195,9 @@ pub mod customers { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1201,6 +1216,9 @@ pub mod customers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1365,9 +1383,9 @@ pub mod invoice_sections { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1386,6 +1404,9 @@ pub mod invoice_sections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1600,9 +1621,9 @@ pub mod billing_permissions { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1621,6 +1642,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1674,9 +1698,9 @@ pub mod billing_permissions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1695,6 +1719,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1752,9 +1779,9 @@ pub mod billing_permissions { &this.invoice_section_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1773,6 +1800,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1828,9 +1858,9 @@ pub mod billing_permissions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1849,6 +1879,9 @@ pub mod billing_permissions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1997,9 +2030,9 @@ pub mod billing_subscriptions { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2018,6 +2051,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2071,9 +2107,9 @@ pub mod billing_subscriptions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2092,6 +2128,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2147,9 +2186,9 @@ pub mod billing_subscriptions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2168,6 +2207,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2225,9 +2267,9 @@ pub mod billing_subscriptions { &this.invoice_section_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2246,6 +2288,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2609,9 +2654,9 @@ pub mod products { &this.customer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2630,6 +2675,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2688,9 +2736,9 @@ pub mod products { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2709,6 +2757,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2772,9 +2823,9 @@ pub mod products { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2793,6 +2844,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2858,9 +2912,9 @@ pub mod products { &this.invoice_section_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2879,6 +2933,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3267,9 +3324,9 @@ pub mod invoices { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3288,6 +3345,9 @@ pub mod invoices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3349,9 +3409,9 @@ pub mod invoices { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3370,6 +3430,9 @@ pub mod invoices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3643,9 +3706,9 @@ pub mod invoices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3664,6 +3727,9 @@ pub mod invoices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3906,9 +3972,9 @@ pub mod transactions { &this.invoice_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3927,6 +3993,9 @@ pub mod transactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4579,9 +4648,9 @@ pub mod billing_role_definitions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4600,6 +4669,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4651,9 +4723,9 @@ pub mod billing_role_definitions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/invoiceSections/{}/billingRoleDefinitions" , this . client . endpoint () , & this . billing_account_name , & this . billing_profile_name , & this . invoice_section_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4672,6 +4744,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4727,9 +4802,9 @@ pub mod billing_role_definitions { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4748,6 +4823,9 @@ pub mod billing_role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5213,9 +5291,9 @@ pub mod billing_role_assignments { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5234,6 +5312,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5285,9 +5366,9 @@ pub mod billing_role_assignments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/invoiceSections/{}/billingRoleAssignments" , this . client . endpoint () , & this . billing_account_name , & this . billing_profile_name , & this . invoice_section_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5306,6 +5387,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5361,9 +5445,9 @@ pub mod billing_role_assignments { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5382,6 +5466,9 @@ pub mod billing_role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5461,9 +5548,9 @@ pub mod agreements { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5482,6 +5569,9 @@ pub mod agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5647,9 +5737,9 @@ pub mod reservations { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5668,6 +5758,9 @@ pub mod reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5755,9 +5848,9 @@ pub mod reservations { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5776,6 +5869,9 @@ pub mod reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6037,9 +6133,9 @@ pub mod promotions { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/promotions", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6058,6 +6154,9 @@ pub mod promotions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6116,9 +6215,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6137,6 +6236,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/billing/src/package_2021_10/models.rs b/services/mgmt/billing/src/package_2021_10/models.rs index ac970ed031..57382575f3 100644 --- a/services/mgmt/billing/src/package_2021_10/models.rs +++ b/services/mgmt/billing/src/package_2021_10/models.rs @@ -58,8 +58,8 @@ pub struct BillingSubscriptionAliasListResult { pub next_link: Option, } impl azure_core::Continuable for BillingSubscriptionAliasListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingSubscriptionAliasListResult { @@ -341,8 +341,8 @@ pub struct BillingSubscriptionsListResult { pub next_link: Option, } impl azure_core::Continuable for BillingSubscriptionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingSubscriptionsListResult { @@ -538,7 +538,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -769,8 +769,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -829,8 +829,8 @@ pub struct PaymentMethodLinksListResult { pub next_link: Option, } impl azure_core::Continuable for PaymentMethodLinksListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaymentMethodLinksListResult { @@ -1103,8 +1103,8 @@ pub struct PaymentMethodsListResult { pub next_link: Option, } impl azure_core::Continuable for PaymentMethodsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaymentMethodsListResult { diff --git a/services/mgmt/billing/src/package_2021_10/operations.rs b/services/mgmt/billing/src/package_2021_10/operations.rs index 79746238ec..8ffa24d6c4 100644 --- a/services/mgmt/billing/src/package_2021_10/operations.rs +++ b/services/mgmt/billing/src/package_2021_10/operations.rs @@ -196,9 +196,9 @@ pub mod billing_subscriptions { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -217,6 +217,9 @@ pub mod billing_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -691,9 +694,9 @@ pub mod billing_subscriptions_aliases { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -712,6 +715,9 @@ pub mod billing_subscriptions_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -944,9 +950,9 @@ pub mod payment_methods { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/paymentMethods", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -965,6 +971,9 @@ pub mod payment_methods { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1115,9 +1124,9 @@ pub mod payment_methods { &this.billing_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1136,6 +1145,9 @@ pub mod payment_methods { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1241,9 +1253,9 @@ pub mod payment_methods { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1262,6 +1274,9 @@ pub mod payment_methods { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1428,9 +1443,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Billing/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1449,6 +1464,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/blockchain/src/package_2018_06_01_preview/models.rs b/services/mgmt/blockchain/src/package_2018_06_01_preview/models.rs index 3100cd8d07..8f847fb119 100644 --- a/services/mgmt/blockchain/src/package_2018_06_01_preview/models.rs +++ b/services/mgmt/blockchain/src/package_2018_06_01_preview/models.rs @@ -59,8 +59,8 @@ pub struct BlockchainMemberCollection { pub next_link: Option, } impl azure_core::Continuable for BlockchainMemberCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BlockchainMemberCollection { @@ -361,8 +361,8 @@ pub struct ConsortiumMemberCollection { pub next_link: Option, } impl azure_core::Continuable for ConsortiumMemberCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsortiumMemberCollection { @@ -531,8 +531,8 @@ pub struct ResourceProviderOperationCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationCollection { @@ -669,8 +669,8 @@ pub struct TransactionNodeCollection { pub next_link: Option, } impl azure_core::Continuable for TransactionNodeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransactionNodeCollection { diff --git a/services/mgmt/blockchain/src/package_2018_06_01_preview/operations.rs b/services/mgmt/blockchain/src/package_2018_06_01_preview/operations.rs index f32e444cd6..76dd1ded73 100644 --- a/services/mgmt/blockchain/src/package_2018_06_01_preview/operations.rs +++ b/services/mgmt/blockchain/src/package_2018_06_01_preview/operations.rs @@ -466,9 +466,9 @@ pub mod blockchain_members { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -487,6 +487,9 @@ pub mod blockchain_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -540,9 +543,9 @@ pub mod blockchain_members { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -561,6 +564,9 @@ pub mod blockchain_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -618,9 +624,9 @@ pub mod blockchain_members { &this.blockchain_member_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -639,6 +645,9 @@ pub mod blockchain_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1024,9 +1033,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Blockchain/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1045,6 +1054,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1522,9 +1534,9 @@ pub mod transaction_nodes { &this.blockchain_member_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1543,6 +1555,9 @@ pub mod transaction_nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/blueprint/src/package_2017_11_preview/models.rs b/services/mgmt/blueprint/src/package_2017_11_preview/models.rs index 4f30e0a88d..17730b2b6c 100644 --- a/services/mgmt/blueprint/src/package_2017_11_preview/models.rs +++ b/services/mgmt/blueprint/src/package_2017_11_preview/models.rs @@ -76,8 +76,8 @@ pub struct ArtifactList { pub next_link: Option, } impl azure_core::Continuable for ArtifactList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArtifactList { @@ -127,8 +127,8 @@ pub struct AssignmentList { pub next_link: Option, } impl azure_core::Continuable for AssignmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssignmentList { @@ -346,8 +346,8 @@ pub struct BlueprintList { pub next_link: Option, } impl azure_core::Continuable for BlueprintList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BlueprintList { @@ -693,8 +693,8 @@ pub struct PublishedBlueprintList { pub next_link: Option, } impl azure_core::Continuable for PublishedBlueprintList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublishedBlueprintList { diff --git a/services/mgmt/blueprint/src/package_2017_11_preview/operations.rs b/services/mgmt/blueprint/src/package_2017_11_preview/operations.rs index 53110ec10c..a97748f65a 100644 --- a/services/mgmt/blueprint/src/package_2017_11_preview/operations.rs +++ b/services/mgmt/blueprint/src/package_2017_11_preview/operations.rs @@ -307,9 +307,9 @@ pub mod blueprints { &this.management_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -328,6 +328,9 @@ pub mod blueprints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -582,9 +585,9 @@ pub mod artifacts { &this.blueprint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -603,6 +606,9 @@ pub mod artifacts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -871,9 +877,9 @@ pub mod published_blueprints { &this.blueprint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -892,6 +898,9 @@ pub mod published_blueprints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1024,9 +1033,9 @@ pub mod published_artifacts { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Management/managementGroups/{}/providers/Microsoft.Blueprint/blueprints/{}/versions/{}/artifacts" , this . client . endpoint () , & this . management_group_name , & this . blueprint_name , & this . version_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1045,6 +1054,9 @@ pub mod published_artifacts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1346,9 +1358,9 @@ pub mod assignments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1367,6 +1379,9 @@ pub mod assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/blueprint/src/package_2018_11_preview/models.rs b/services/mgmt/blueprint/src/package_2018_11_preview/models.rs index b48c2553ac..ffc5c7b8a9 100644 --- a/services/mgmt/blueprint/src/package_2018_11_preview/models.rs +++ b/services/mgmt/blueprint/src/package_2018_11_preview/models.rs @@ -76,8 +76,8 @@ pub struct ArtifactList { pub next_link: Option, } impl azure_core::Continuable for ArtifactList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArtifactList { @@ -186,8 +186,8 @@ pub struct AssignmentList { pub next_link: Option, } impl azure_core::Continuable for AssignmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssignmentList { @@ -280,8 +280,8 @@ pub struct AssignmentOperationList { pub next_link: Option, } impl azure_core::Continuable for AssignmentOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssignmentOperationList { @@ -496,8 +496,8 @@ pub struct BlueprintList { pub next_link: Option, } impl azure_core::Continuable for BlueprintList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BlueprintList { @@ -574,7 +574,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -873,8 +873,8 @@ pub struct PublishedBlueprintList { pub next_link: Option, } impl azure_core::Continuable for PublishedBlueprintList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublishedBlueprintList { diff --git a/services/mgmt/blueprint/src/package_2018_11_preview/operations.rs b/services/mgmt/blueprint/src/package_2018_11_preview/operations.rs index e440953959..aa96913a54 100644 --- a/services/mgmt/blueprint/src/package_2018_11_preview/operations.rs +++ b/services/mgmt/blueprint/src/package_2018_11_preview/operations.rs @@ -307,9 +307,9 @@ pub mod blueprints { &this.resource_scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -328,6 +328,9 @@ pub mod blueprints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -600,9 +603,9 @@ pub mod artifacts { &this.blueprint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -621,6 +624,9 @@ pub mod artifacts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -900,9 +906,9 @@ pub mod published_blueprints { &this.blueprint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -921,6 +927,9 @@ pub mod published_blueprints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1066,9 +1075,9 @@ pub mod published_artifacts { &this.version_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1087,6 +1096,9 @@ pub mod published_artifacts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1403,9 +1415,9 @@ pub mod assignments { &this.resource_scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1424,6 +1436,9 @@ pub mod assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1505,9 +1520,9 @@ pub mod assignment_operations { &this.assignment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1526,6 +1541,9 @@ pub mod assignment_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/botservice/src/package_2017_12_01/models.rs b/services/mgmt/botservice/src/package_2017_12_01/models.rs index 8f29bd556b..89387ad880 100644 --- a/services/mgmt/botservice/src/package_2017_12_01/models.rs +++ b/services/mgmt/botservice/src/package_2017_12_01/models.rs @@ -104,8 +104,8 @@ pub struct BotResponseList { pub value: Vec, } impl azure_core::Continuable for BotResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BotResponseList { @@ -136,8 +136,8 @@ pub struct ChannelResponseList { pub value: Vec, } impl azure_core::Continuable for ChannelResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ChannelResponseList { @@ -257,8 +257,8 @@ pub struct ConnectionSettingResponseList { pub value: Vec, } impl azure_core::Continuable for ConnectionSettingResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionSettingResponseList { @@ -373,7 +373,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -643,8 +643,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { diff --git a/services/mgmt/botservice/src/package_2017_12_01/operations.rs b/services/mgmt/botservice/src/package_2017_12_01/operations.rs index 64a3b82c15..d0cd3f6a41 100644 --- a/services/mgmt/botservice/src/package_2017_12_01/operations.rs +++ b/services/mgmt/botservice/src/package_2017_12_01/operations.rs @@ -426,9 +426,9 @@ pub mod bots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -447,6 +447,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -500,9 +503,9 @@ pub mod bots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -521,6 +524,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1011,9 +1017,9 @@ pub mod channels { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1032,6 +1038,9 @@ pub mod channels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1090,9 +1099,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.BotService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1111,6 +1120,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1608,9 +1620,9 @@ pub mod bot_connection { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1629,6 +1641,9 @@ pub mod bot_connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/botservice/src/package_2018_07_12/models.rs b/services/mgmt/botservice/src/package_2018_07_12/models.rs index ac448e3a4a..1fb98ee777 100644 --- a/services/mgmt/botservice/src/package_2018_07_12/models.rs +++ b/services/mgmt/botservice/src/package_2018_07_12/models.rs @@ -104,8 +104,8 @@ pub struct BotResponseList { pub value: Vec, } impl azure_core::Continuable for BotResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BotResponseList { @@ -136,8 +136,8 @@ pub struct ChannelResponseList { pub value: Vec, } impl azure_core::Continuable for ChannelResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ChannelResponseList { @@ -257,8 +257,8 @@ pub struct ConnectionSettingResponseList { pub value: Vec, } impl azure_core::Continuable for ConnectionSettingResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionSettingResponseList { @@ -580,8 +580,8 @@ pub struct EnterpriseChannelResponseList { pub value: Vec, } impl azure_core::Continuable for EnterpriseChannelResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnterpriseChannelResponseList { @@ -597,7 +597,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -855,8 +855,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { diff --git a/services/mgmt/botservice/src/package_2018_07_12/operations.rs b/services/mgmt/botservice/src/package_2018_07_12/operations.rs index af5ddae406..825b078109 100644 --- a/services/mgmt/botservice/src/package_2018_07_12/operations.rs +++ b/services/mgmt/botservice/src/package_2018_07_12/operations.rs @@ -429,9 +429,9 @@ pub mod bots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -450,6 +450,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -503,9 +506,9 @@ pub mod bots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -524,6 +527,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1014,9 +1020,9 @@ pub mod channels { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1035,6 +1041,9 @@ pub mod channels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1093,9 +1102,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.BotService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1114,6 +1123,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1611,9 +1623,9 @@ pub mod bot_connection { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1632,6 +1644,9 @@ pub mod bot_connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1817,9 +1832,9 @@ pub mod enterprise_channels { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1838,6 +1853,9 @@ pub mod enterprise_channels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/botservice/src/package_2020_06_02/models.rs b/services/mgmt/botservice/src/package_2020_06_02/models.rs index d0fae924eb..5a87c8e4c5 100644 --- a/services/mgmt/botservice/src/package_2020_06_02/models.rs +++ b/services/mgmt/botservice/src/package_2020_06_02/models.rs @@ -152,8 +152,8 @@ pub struct BotResponseList { pub value: Vec, } impl azure_core::Continuable for BotResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BotResponseList { @@ -184,8 +184,8 @@ pub struct ChannelResponseList { pub value: Vec, } impl azure_core::Continuable for ChannelResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ChannelResponseList { @@ -305,8 +305,8 @@ pub struct ConnectionSettingResponseList { pub value: Vec, } impl azure_core::Continuable for ConnectionSettingResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionSettingResponseList { @@ -474,7 +474,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -786,8 +786,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { diff --git a/services/mgmt/botservice/src/package_2020_06_02/operations.rs b/services/mgmt/botservice/src/package_2020_06_02/operations.rs index 338cbb4643..63cadaf8ee 100644 --- a/services/mgmt/botservice/src/package_2020_06_02/operations.rs +++ b/services/mgmt/botservice/src/package_2020_06_02/operations.rs @@ -429,9 +429,9 @@ pub mod bots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -450,6 +450,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -503,9 +506,9 @@ pub mod bots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -524,6 +527,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1014,9 +1020,9 @@ pub mod channels { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1035,6 +1041,9 @@ pub mod channels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1165,9 +1174,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.BotService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1186,6 +1195,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1683,9 +1695,9 @@ pub mod bot_connection { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1704,6 +1716,9 @@ pub mod bot_connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/botservice/src/package_2021_03_01/models.rs b/services/mgmt/botservice/src/package_2021_03_01/models.rs index 776dd47a70..7afbabb022 100644 --- a/services/mgmt/botservice/src/package_2021_03_01/models.rs +++ b/services/mgmt/botservice/src/package_2021_03_01/models.rs @@ -309,8 +309,8 @@ pub struct BotResponseList { pub value: Vec, } impl azure_core::Continuable for BotResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BotResponseList { @@ -355,8 +355,8 @@ pub struct ChannelResponseList { pub value: Vec, } impl azure_core::Continuable for ChannelResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ChannelResponseList { @@ -521,8 +521,8 @@ pub struct ConnectionSettingResponseList { pub value: Vec, } impl azure_core::Continuable for ConnectionSettingResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionSettingResponseList { @@ -701,7 +701,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1087,8 +1087,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { diff --git a/services/mgmt/botservice/src/package_2021_03_01/operations.rs b/services/mgmt/botservice/src/package_2021_03_01/operations.rs index fb550a035f..562e5500c0 100644 --- a/services/mgmt/botservice/src/package_2021_03_01/operations.rs +++ b/services/mgmt/botservice/src/package_2021_03_01/operations.rs @@ -432,9 +432,9 @@ pub mod bots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -453,6 +453,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -506,9 +509,9 @@ pub mod bots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -527,6 +530,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1017,9 +1023,9 @@ pub mod channels { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1038,6 +1044,9 @@ pub mod channels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1168,9 +1177,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.BotService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1189,6 +1198,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1686,9 +1698,9 @@ pub mod bot_connection { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1707,6 +1719,9 @@ pub mod bot_connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/botservice/src/package_preview_2021_05/models.rs b/services/mgmt/botservice/src/package_preview_2021_05/models.rs index aba9ab8e8d..8dbb98cf2f 100644 --- a/services/mgmt/botservice/src/package_preview_2021_05/models.rs +++ b/services/mgmt/botservice/src/package_preview_2021_05/models.rs @@ -313,8 +313,8 @@ pub struct BotResponseList { pub value: Vec, } impl azure_core::Continuable for BotResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BotResponseList { @@ -359,8 +359,8 @@ pub struct ChannelResponseList { pub value: Vec, } impl azure_core::Continuable for ChannelResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ChannelResponseList { @@ -525,8 +525,8 @@ pub struct ConnectionSettingResponseList { pub value: Vec, } impl azure_core::Continuable for ConnectionSettingResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionSettingResponseList { @@ -705,7 +705,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1091,8 +1091,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -1201,7 +1201,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/botservice/src/package_preview_2021_05/operations.rs b/services/mgmt/botservice/src/package_preview_2021_05/operations.rs index ebed39f369..1d428bea47 100644 --- a/services/mgmt/botservice/src/package_preview_2021_05/operations.rs +++ b/services/mgmt/botservice/src/package_preview_2021_05/operations.rs @@ -441,9 +441,9 @@ pub mod bots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -462,6 +462,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -515,9 +518,9 @@ pub mod bots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -536,6 +539,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1026,9 +1032,9 @@ pub mod channels { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1047,6 +1053,9 @@ pub mod channels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1177,9 +1186,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.BotService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1198,6 +1207,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1695,9 +1707,9 @@ pub mod bot_connection { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1716,6 +1728,9 @@ pub mod bot_connection { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cdn/src/package_2019_06_preview/models.rs b/services/mgmt/cdn/src/package_2019_06_preview/models.rs index f5cfaeed10..5ecb810167 100644 --- a/services/mgmt/cdn/src/package_2019_06_preview/models.rs +++ b/services/mgmt/cdn/src/package_2019_06_preview/models.rs @@ -361,8 +361,8 @@ pub struct CdnWebApplicationFirewallPolicyList { pub next_link: Option, } impl azure_core::Continuable for CdnWebApplicationFirewallPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CdnWebApplicationFirewallPolicyList { @@ -761,8 +761,8 @@ pub struct CustomDomainListResult { pub next_link: Option, } impl azure_core::Continuable for CustomDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainListResult { @@ -1590,8 +1590,8 @@ pub struct EdgenodeResult { pub next_link: Option, } impl azure_core::Continuable for EdgenodeResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EdgenodeResult { @@ -1627,8 +1627,8 @@ pub struct EndpointListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointListResult { @@ -1812,7 +1812,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2398,8 +2398,8 @@ pub struct ManagedRuleSetDefinitionList { pub next_link: Option, } impl azure_core::Continuable for ManagedRuleSetDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedRuleSetDefinitionList { @@ -2632,8 +2632,8 @@ pub struct OperationsListResult { pub next_link: Option, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsListResult { @@ -2712,8 +2712,8 @@ pub struct OriginListResult { pub next_link: Option, } impl azure_core::Continuable for OriginListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OriginListResult { @@ -2949,8 +2949,8 @@ pub struct ProfileListResult { pub next_link: Option, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileListResult { @@ -3709,8 +3709,8 @@ pub struct ResourceUsageListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUsageListResult { diff --git a/services/mgmt/cdn/src/package_2019_06_preview/operations.rs b/services/mgmt/cdn/src/package_2019_06_preview/operations.rs index 297087fab1..3f0312d4dd 100644 --- a/services/mgmt/cdn/src/package_2019_06_preview/operations.rs +++ b/services/mgmt/cdn/src/package_2019_06_preview/operations.rs @@ -238,9 +238,9 @@ pub mod profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -259,6 +259,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -314,9 +317,9 @@ pub mod profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -335,6 +338,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -738,9 +744,9 @@ pub mod profiles { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -759,6 +765,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -996,9 +1005,9 @@ pub mod endpoints { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1017,6 +1026,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1626,9 +1638,9 @@ pub mod endpoints { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1647,6 +1659,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1764,9 +1779,9 @@ pub mod origins { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1785,6 +1800,9 @@ pub mod origins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2077,9 +2095,9 @@ pub mod custom_domains { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2098,6 +2116,9 @@ pub mod custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2656,9 +2677,9 @@ pub mod resource_usage { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2677,6 +2698,9 @@ pub mod resource_usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2735,9 +2759,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cdn/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2756,6 +2780,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2813,9 +2840,9 @@ pub mod edge_nodes { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cdn/edgenodes", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2834,6 +2861,9 @@ pub mod edge_nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2958,9 +2988,9 @@ pub mod policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2979,6 +3009,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3283,9 +3316,9 @@ pub mod managed_rule_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3304,6 +3337,9 @@ pub mod managed_rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cdn/src/package_2019_12/models.rs b/services/mgmt/cdn/src/package_2019_12/models.rs index c2fa2f982d..a105da3d94 100644 --- a/services/mgmt/cdn/src/package_2019_12/models.rs +++ b/services/mgmt/cdn/src/package_2019_12/models.rs @@ -533,8 +533,8 @@ pub struct CustomDomainListResult { pub next_link: Option, } impl azure_core::Continuable for CustomDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainListResult { @@ -1348,8 +1348,8 @@ pub struct EdgenodeResult { pub next_link: Option, } impl azure_core::Continuable for EdgenodeResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EdgenodeResult { @@ -1385,8 +1385,8 @@ pub struct EndpointListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointListResult { @@ -1562,7 +1562,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2080,8 +2080,8 @@ pub struct OperationsListResult { pub next_link: Option, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsListResult { @@ -2171,8 +2171,8 @@ pub struct OriginGroupListResult { pub next_link: Option, } impl azure_core::Continuable for OriginGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OriginGroupListResult { @@ -2333,8 +2333,8 @@ pub struct OriginListResult { pub next_link: Option, } impl azure_core::Continuable for OriginListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OriginListResult { @@ -2572,8 +2572,8 @@ pub struct ProfileListResult { pub next_link: Option, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileListResult { @@ -3304,8 +3304,8 @@ pub struct ResourceUsageListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUsageListResult { diff --git a/services/mgmt/cdn/src/package_2019_12/operations.rs b/services/mgmt/cdn/src/package_2019_12/operations.rs index 7f44d8ee30..384eaa79b6 100644 --- a/services/mgmt/cdn/src/package_2019_12/operations.rs +++ b/services/mgmt/cdn/src/package_2019_12/operations.rs @@ -235,9 +235,9 @@ pub mod profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -256,6 +256,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -311,9 +314,9 @@ pub mod profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -332,6 +335,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -735,9 +741,9 @@ pub mod profiles { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -756,6 +762,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -993,9 +1002,9 @@ pub mod endpoints { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1014,6 +1023,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1623,9 +1635,9 @@ pub mod endpoints { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1644,6 +1656,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1797,9 +1812,9 @@ pub mod origins { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1818,6 +1833,9 @@ pub mod origins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2226,9 +2244,9 @@ pub mod origin_groups { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2247,6 +2265,9 @@ pub mod origin_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2671,9 +2692,9 @@ pub mod custom_domains { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2692,6 +2713,9 @@ pub mod custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3252,9 +3276,9 @@ pub mod resource_usage { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3273,6 +3297,9 @@ pub mod resource_usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3331,9 +3358,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cdn/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3352,6 +3379,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3409,9 +3439,9 @@ pub mod edge_nodes { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cdn/edgenodes", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3430,6 +3460,9 @@ pub mod edge_nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cdn/src/package_2020_04/models.rs b/services/mgmt/cdn/src/package_2020_04/models.rs index 9263cfa362..e44c073f5d 100644 --- a/services/mgmt/cdn/src/package_2020_04/models.rs +++ b/services/mgmt/cdn/src/package_2020_04/models.rs @@ -361,8 +361,8 @@ pub struct CdnWebApplicationFirewallPolicyList { pub next_link: Option, } impl azure_core::Continuable for CdnWebApplicationFirewallPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CdnWebApplicationFirewallPolicyList { @@ -757,8 +757,8 @@ pub struct CustomDomainListResult { pub next_link: Option, } impl azure_core::Continuable for CustomDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainListResult { @@ -1667,8 +1667,8 @@ pub struct EdgenodeResult { pub next_link: Option, } impl azure_core::Continuable for EdgenodeResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EdgenodeResult { @@ -1704,8 +1704,8 @@ pub struct EndpointListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointListResult { @@ -1899,7 +1899,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2585,8 +2585,8 @@ pub struct ManagedRuleSetDefinitionList { pub next_link: Option, } impl azure_core::Continuable for ManagedRuleSetDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedRuleSetDefinitionList { @@ -2819,8 +2819,8 @@ pub struct OperationsListResult { pub next_link: Option, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsListResult { @@ -2910,8 +2910,8 @@ pub struct OriginGroupListResult { pub next_link: Option, } impl azure_core::Continuable for OriginGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OriginGroupListResult { @@ -3034,8 +3034,8 @@ pub struct OriginListResult { pub next_link: Option, } impl azure_core::Continuable for OriginListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OriginListResult { @@ -3332,8 +3332,8 @@ pub struct ProfileListResult { pub next_link: Option, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileListResult { @@ -4097,8 +4097,8 @@ pub struct ResourceUsageListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUsageListResult { diff --git a/services/mgmt/cdn/src/package_2020_04/operations.rs b/services/mgmt/cdn/src/package_2020_04/operations.rs index a65be02223..6a98dd7d8d 100644 --- a/services/mgmt/cdn/src/package_2020_04/operations.rs +++ b/services/mgmt/cdn/src/package_2020_04/operations.rs @@ -241,9 +241,9 @@ pub mod profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -262,6 +262,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -317,9 +320,9 @@ pub mod profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -338,6 +341,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -741,9 +747,9 @@ pub mod profiles { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -762,6 +768,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -999,9 +1008,9 @@ pub mod endpoints { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1020,6 +1029,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1629,9 +1641,9 @@ pub mod endpoints { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1650,6 +1662,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1803,9 +1818,9 @@ pub mod origins { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1824,6 +1839,9 @@ pub mod origins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2232,9 +2250,9 @@ pub mod origin_groups { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2253,6 +2271,9 @@ pub mod origin_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2677,9 +2698,9 @@ pub mod custom_domains { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2698,6 +2719,9 @@ pub mod custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3258,9 +3282,9 @@ pub mod resource_usage { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3279,6 +3303,9 @@ pub mod resource_usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3337,9 +3364,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cdn/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3358,6 +3385,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3415,9 +3445,9 @@ pub mod edge_nodes { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cdn/edgenodes", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3436,6 +3466,9 @@ pub mod edge_nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3560,9 +3593,9 @@ pub mod policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3581,6 +3614,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3885,9 +3921,9 @@ pub mod managed_rule_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3906,6 +3942,9 @@ pub mod managed_rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cdn/src/package_2020_09/models.rs b/services/mgmt/cdn/src/package_2020_09/models.rs index ec00f5c6f4..24808c6d51 100644 --- a/services/mgmt/cdn/src/package_2020_09/models.rs +++ b/services/mgmt/cdn/src/package_2020_09/models.rs @@ -99,8 +99,8 @@ pub struct AfdDomainListResult { pub next_link: Option, } impl azure_core::Continuable for AfdDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AfdDomainListResult { @@ -239,8 +239,8 @@ pub struct AfdEndpointListResult { pub next_link: Option, } impl azure_core::Continuable for AfdEndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AfdEndpointListResult { @@ -410,8 +410,8 @@ pub struct AfdOriginGroupListResult { pub next_link: Option, } impl azure_core::Continuable for AfdOriginGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AfdOriginGroupListResult { @@ -527,8 +527,8 @@ pub struct AfdOriginListResult { pub next_link: Option, } impl azure_core::Continuable for AfdOriginListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AfdOriginListResult { @@ -789,7 +789,7 @@ pub struct AfdErrorResponse { pub error: Option, } impl azure_core::Continuable for AfdErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1132,8 +1132,8 @@ pub struct CdnWebApplicationFirewallPolicyList { pub next_link: Option, } impl azure_core::Continuable for CdnWebApplicationFirewallPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CdnWebApplicationFirewallPolicyList { @@ -1576,8 +1576,8 @@ pub struct CustomDomainListResult { pub next_link: Option, } impl azure_core::Continuable for CustomDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainListResult { @@ -2569,8 +2569,8 @@ pub struct EdgenodeResult { pub next_link: Option, } impl azure_core::Continuable for EdgenodeResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EdgenodeResult { @@ -2606,8 +2606,8 @@ pub struct EndpointListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointListResult { @@ -2801,7 +2801,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3572,8 +3572,8 @@ pub struct ManagedRuleSetDefinitionList { pub next_link: Option, } impl azure_core::Continuable for ManagedRuleSetDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedRuleSetDefinitionList { @@ -3835,8 +3835,8 @@ pub struct OperationsListResult { pub next_link: Option, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsListResult { @@ -3926,8 +3926,8 @@ pub struct OriginGroupListResult { pub next_link: Option, } impl azure_core::Continuable for OriginGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OriginGroupListResult { @@ -4088,8 +4088,8 @@ pub struct OriginListResult { pub next_link: Option, } impl azure_core::Continuable for OriginListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OriginListResult { @@ -4388,8 +4388,8 @@ pub struct ProfileListResult { pub next_link: Option, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileListResult { @@ -5182,8 +5182,8 @@ pub struct ResourceUsageListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUsageListResult { @@ -5261,8 +5261,8 @@ pub struct RouteListResult { pub next_link: Option, } impl azure_core::Continuable for RouteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RouteListResult { @@ -5528,8 +5528,8 @@ pub struct RuleListResult { pub next_link: Option, } impl azure_core::Continuable for RuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RuleListResult { @@ -5578,8 +5578,8 @@ pub struct RuleSetListResult { pub next_link: Option, } impl azure_core::Continuable for RuleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RuleSetListResult { @@ -5696,8 +5696,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -5798,8 +5798,8 @@ pub struct SecurityPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for SecurityPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityPolicyListResult { @@ -6895,8 +6895,8 @@ pub struct UsagesListResult { pub next_link: Option, } impl azure_core::Continuable for UsagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsagesListResult { diff --git a/services/mgmt/cdn/src/package_2020_09/operations.rs b/services/mgmt/cdn/src/package_2020_09/operations.rs index 91ffd03012..a9ad1e1a07 100644 --- a/services/mgmt/cdn/src/package_2020_09/operations.rs +++ b/services/mgmt/cdn/src/package_2020_09/operations.rs @@ -277,9 +277,9 @@ pub mod profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -298,6 +298,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -353,9 +356,9 @@ pub mod profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -374,6 +377,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -777,9 +783,9 @@ pub mod profiles { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -798,6 +804,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1035,9 +1044,9 @@ pub mod endpoints { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1056,6 +1065,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1665,9 +1677,9 @@ pub mod endpoints { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1686,6 +1698,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1839,9 +1854,9 @@ pub mod origins { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1860,6 +1875,9 @@ pub mod origins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2268,9 +2286,9 @@ pub mod origin_groups { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2289,6 +2307,9 @@ pub mod origin_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2713,9 +2734,9 @@ pub mod custom_domains { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2734,6 +2755,9 @@ pub mod custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3294,9 +3318,9 @@ pub mod resource_usage { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3315,6 +3339,9 @@ pub mod resource_usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3373,9 +3400,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cdn/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3394,6 +3421,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3451,9 +3481,9 @@ pub mod edge_nodes { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cdn/edgenodes", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3472,6 +3502,9 @@ pub mod edge_nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3563,9 +3596,9 @@ pub mod afd_profiles { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3584,6 +3617,9 @@ pub mod afd_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3794,9 +3830,9 @@ pub mod afd_custom_domains { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3815,6 +3851,9 @@ pub mod afd_custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4303,9 +4342,9 @@ pub mod afd_endpoints { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4324,6 +4363,9 @@ pub mod afd_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4691,9 +4733,9 @@ pub mod afd_endpoints { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4712,6 +4754,9 @@ pub mod afd_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4917,9 +4962,9 @@ pub mod afd_origin_groups { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4938,6 +4983,9 @@ pub mod afd_origin_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5247,9 +5295,9 @@ pub mod afd_origin_groups { &this.origin_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5268,6 +5316,9 @@ pub mod afd_origin_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5421,9 +5472,9 @@ pub mod afd_origins { &this.origin_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5442,6 +5493,9 @@ pub mod afd_origins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5852,9 +5906,9 @@ pub mod routes { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5873,6 +5927,9 @@ pub mod routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6267,9 +6324,9 @@ pub mod rule_sets { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6288,6 +6345,9 @@ pub mod rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6527,9 +6587,9 @@ pub mod rule_sets { &this.rule_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6548,6 +6608,9 @@ pub mod rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6701,9 +6764,9 @@ pub mod rules { &this.rule_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6722,6 +6785,9 @@ pub mod rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7120,9 +7186,9 @@ pub mod security_policies { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7141,6 +7207,9 @@ pub mod security_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7531,9 +7600,9 @@ pub mod secrets { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7552,6 +7621,9 @@ pub mod secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8595,9 +8667,9 @@ pub mod policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8616,6 +8688,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8920,9 +8995,9 @@ pub mod managed_rule_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8941,6 +9016,9 @@ pub mod managed_rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cdn/src/package_2021_06/models.rs b/services/mgmt/cdn/src/package_2021_06/models.rs index 9d94ed1256..018eaf519c 100644 --- a/services/mgmt/cdn/src/package_2021_06/models.rs +++ b/services/mgmt/cdn/src/package_2021_06/models.rs @@ -103,8 +103,8 @@ pub struct AfdDomainListResult { pub next_link: Option, } impl azure_core::Continuable for AfdDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AfdDomainListResult { @@ -257,8 +257,8 @@ pub struct AfdEndpointListResult { pub next_link: Option, } impl azure_core::Continuable for AfdEndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AfdEndpointListResult { @@ -431,8 +431,8 @@ pub struct AfdOriginGroupListResult { pub next_link: Option, } impl azure_core::Continuable for AfdOriginGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AfdOriginGroupListResult { @@ -544,8 +544,8 @@ pub struct AfdOriginListResult { pub next_link: Option, } impl azure_core::Continuable for AfdOriginListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AfdOriginListResult { @@ -827,7 +827,7 @@ pub struct AfdErrorResponse { pub error: Option, } impl azure_core::Continuable for AfdErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1444,8 +1444,8 @@ pub struct CdnWebApplicationFirewallPolicyList { pub next_link: Option, } impl azure_core::Continuable for CdnWebApplicationFirewallPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CdnWebApplicationFirewallPolicyList { @@ -2032,8 +2032,8 @@ pub struct CustomDomainListResult { pub next_link: Option, } impl azure_core::Continuable for CustomDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainListResult { @@ -3206,8 +3206,8 @@ pub struct EdgenodeResult { pub next_link: Option, } impl azure_core::Continuable for EdgenodeResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EdgenodeResult { @@ -3243,8 +3243,8 @@ pub struct EndpointListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointListResult { @@ -3521,7 +3521,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4413,8 +4413,8 @@ pub struct ManagedRuleSetDefinitionList { pub next_link: Option, } impl azure_core::Continuable for ManagedRuleSetDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedRuleSetDefinitionList { @@ -4755,8 +4755,8 @@ pub struct OperationsListResult { pub next_link: Option, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsListResult { @@ -4846,8 +4846,8 @@ pub struct OriginGroupListResult { pub next_link: Option, } impl azure_core::Continuable for OriginGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OriginGroupListResult { @@ -5107,8 +5107,8 @@ pub struct OriginListResult { pub next_link: Option, } impl azure_core::Continuable for OriginListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OriginListResult { @@ -5453,8 +5453,8 @@ pub struct ProfileListResult { pub next_link: Option, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileListResult { @@ -6385,8 +6385,8 @@ pub struct ResourceUsageListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUsageListResult { @@ -6492,8 +6492,8 @@ pub struct RouteListResult { pub next_link: Option, } impl azure_core::Continuable for RouteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RouteListResult { @@ -6752,8 +6752,8 @@ pub struct RuleListResult { pub next_link: Option, } impl azure_core::Continuable for RuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RuleListResult { @@ -6802,8 +6802,8 @@ pub struct RuleSetListResult { pub next_link: Option, } impl azure_core::Continuable for RuleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RuleSetListResult { @@ -6926,8 +6926,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -7032,8 +7032,8 @@ pub struct SecurityPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for SecurityPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityPolicyListResult { @@ -8441,8 +8441,8 @@ pub struct UsagesListResult { pub next_link: Option, } impl azure_core::Continuable for UsagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsagesListResult { diff --git a/services/mgmt/cdn/src/package_2021_06/operations.rs b/services/mgmt/cdn/src/package_2021_06/operations.rs index d29a344290..f1dacc1dd1 100644 --- a/services/mgmt/cdn/src/package_2021_06/operations.rs +++ b/services/mgmt/cdn/src/package_2021_06/operations.rs @@ -441,9 +441,9 @@ pub mod afd_profiles { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -462,6 +462,9 @@ pub mod afd_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -672,9 +675,9 @@ pub mod afd_custom_domains { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -693,6 +696,9 @@ pub mod afd_custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1182,9 +1188,9 @@ pub mod afd_endpoints { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1203,6 +1209,9 @@ pub mod afd_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1570,9 +1579,9 @@ pub mod afd_endpoints { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1591,6 +1600,9 @@ pub mod afd_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1796,9 +1808,9 @@ pub mod afd_origin_groups { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1817,6 +1829,9 @@ pub mod afd_origin_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2126,9 +2141,9 @@ pub mod afd_origin_groups { &this.origin_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2147,6 +2162,9 @@ pub mod afd_origin_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2300,9 +2318,9 @@ pub mod afd_origins { &this.origin_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2321,6 +2339,9 @@ pub mod afd_origins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2731,9 +2752,9 @@ pub mod routes { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2752,6 +2773,9 @@ pub mod routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3146,9 +3170,9 @@ pub mod rule_sets { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3167,6 +3191,9 @@ pub mod rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3401,9 +3428,9 @@ pub mod rule_sets { &this.rule_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3422,6 +3449,9 @@ pub mod rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3575,9 +3605,9 @@ pub mod rules { &this.rule_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3596,6 +3626,9 @@ pub mod rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3994,9 +4027,9 @@ pub mod security_policies { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4015,6 +4048,9 @@ pub mod security_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4388,9 +4424,9 @@ pub mod secrets { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4409,6 +4445,9 @@ pub mod secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5433,9 +5472,9 @@ pub mod profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5454,6 +5493,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5509,9 +5551,9 @@ pub mod profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5530,6 +5572,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5935,9 +5980,9 @@ pub mod profiles { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5956,6 +6001,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6193,9 +6241,9 @@ pub mod endpoints { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6214,6 +6262,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6825,9 +6876,9 @@ pub mod endpoints { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6846,6 +6897,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6999,9 +7053,9 @@ pub mod origins { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7020,6 +7074,9 @@ pub mod origins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7430,9 +7487,9 @@ pub mod origin_groups { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7451,6 +7508,9 @@ pub mod origin_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7877,9 +7937,9 @@ pub mod custom_domains { &this.endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7898,6 +7958,9 @@ pub mod custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8287,9 +8350,9 @@ pub mod resource_usage { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8308,6 +8371,9 @@ pub mod resource_usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -8366,9 +8432,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cdn/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8387,6 +8453,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8444,9 +8513,9 @@ pub mod edge_nodes { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cdn/edgenodes", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8465,6 +8534,9 @@ pub mod edge_nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8589,9 +8661,9 @@ pub mod policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8610,6 +8682,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8914,9 +8989,9 @@ pub mod managed_rule_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8935,6 +9010,9 @@ pub mod managed_rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs b/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs index 42f07dc3e2..2e537ed4dd 100644 --- a/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs +++ b/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs @@ -140,7 +140,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -351,8 +351,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/changeanalysis/src/package_2020_04_01_preview/operations.rs b/services/mgmt/changeanalysis/src/package_2020_04_01_preview/operations.rs index 0e674ca35b..93dc00fe3a 100644 --- a/services/mgmt/changeanalysis/src/package_2020_04_01_preview/operations.rs +++ b/services/mgmt/changeanalysis/src/package_2020_04_01_preview/operations.rs @@ -374,9 +374,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ChangeAnalysis/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -395,6 +395,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs b/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs index 97aa70ddcd..c38783dfe3 100644 --- a/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs +++ b/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs @@ -29,8 +29,8 @@ pub struct ChangeList { pub next_link: Option, } impl azure_core::Continuable for ChangeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ChangeList { @@ -148,7 +148,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -315,8 +315,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/changeanalysis/src/package_2021_04_01/operations.rs b/services/mgmt/changeanalysis/src/package_2021_04_01/operations.rs index aebd325cdd..8383db3f21 100644 --- a/services/mgmt/changeanalysis/src/package_2021_04_01/operations.rs +++ b/services/mgmt/changeanalysis/src/package_2021_04_01/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ChangeAnalysis/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -216,9 +219,9 @@ pub mod resource_changes { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -237,6 +240,9 @@ pub mod resource_changes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -345,9 +351,9 @@ pub mod changes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -366,6 +372,9 @@ pub mod changes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -433,9 +442,9 @@ pub mod changes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -454,6 +463,9 @@ pub mod changes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs b/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs index e29af23eb3..9b648f0c77 100644 --- a/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs +++ b/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs @@ -29,8 +29,8 @@ pub struct ChangeList { pub next_link: Option, } impl azure_core::Continuable for ChangeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ChangeList { @@ -180,7 +180,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -402,8 +402,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/changeanalysis/src/package_2021_04_01_preview/operations.rs b/services/mgmt/changeanalysis/src/package_2021_04_01_preview/operations.rs index 189ee3b106..1b9470eab4 100644 --- a/services/mgmt/changeanalysis/src/package_2021_04_01_preview/operations.rs +++ b/services/mgmt/changeanalysis/src/package_2021_04_01_preview/operations.rs @@ -119,9 +119,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ChangeAnalysis/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -140,6 +140,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -225,9 +228,9 @@ pub mod resource_changes { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -246,6 +249,9 @@ pub mod resource_changes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -364,9 +370,9 @@ pub mod changes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -385,6 +391,9 @@ pub mod changes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -460,9 +469,9 @@ pub mod changes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -481,6 +490,9 @@ pub mod changes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/chaos/src/package_2021_09_15_preview/models.rs b/services/mgmt/chaos/src/package_2021_09_15_preview/models.rs index e3bec8dcba..3c9fad0cfa 100644 --- a/services/mgmt/chaos/src/package_2021_09_15_preview/models.rs +++ b/services/mgmt/chaos/src/package_2021_09_15_preview/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -196,8 +196,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -346,8 +346,8 @@ pub struct CapabilityListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilityListResult { @@ -410,8 +410,8 @@ pub struct CapabilityTypeListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilityTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilityTypeListResult { @@ -556,8 +556,8 @@ pub struct ExperimentExecutionDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for ExperimentExecutionDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExperimentExecutionDetailsListResult { @@ -624,8 +624,8 @@ pub struct ExperimentListResult { pub next_link: Option, } impl azure_core::Continuable for ExperimentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExperimentListResult { @@ -700,8 +700,8 @@ pub struct ExperimentStatusListResult { pub next_link: Option, } impl azure_core::Continuable for ExperimentStatusListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExperimentStatusListResult { @@ -966,8 +966,8 @@ pub struct TargetListResult { pub next_link: Option, } impl azure_core::Continuable for TargetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TargetListResult { @@ -1040,8 +1040,8 @@ pub struct TargetTypeListResult { pub next_link: Option, } impl azure_core::Continuable for TargetTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TargetTypeListResult { diff --git a/services/mgmt/chaos/src/package_2021_09_15_preview/operations.rs b/services/mgmt/chaos/src/package_2021_09_15_preview/operations.rs index afb777a4ed..e94132a43a 100644 --- a/services/mgmt/chaos/src/package_2021_09_15_preview/operations.rs +++ b/services/mgmt/chaos/src/package_2021_09_15_preview/operations.rs @@ -217,9 +217,9 @@ pub mod capabilities { &this.target_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -238,6 +238,9 @@ pub mod capabilities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -633,9 +636,9 @@ pub mod experiments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -654,6 +657,9 @@ pub mod experiments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -725,9 +731,9 @@ pub mod experiments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -746,6 +752,9 @@ pub mod experiments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1076,9 +1085,9 @@ pub mod experiments { &this.experiment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1097,6 +1106,9 @@ pub mod experiments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1208,9 +1220,9 @@ pub mod experiments { &this.experiment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1229,6 +1241,9 @@ pub mod experiments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1340,9 +1355,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Chaos/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1361,6 +1376,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1510,9 +1528,9 @@ pub mod targets { &this.parent_resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1531,6 +1549,9 @@ pub mod targets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1798,9 +1819,9 @@ pub mod target_types { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1819,6 +1840,9 @@ pub mod target_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1971,9 +1995,9 @@ pub mod capability_types { &this.target_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1992,6 +2016,9 @@ pub mod capability_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cognitiveservices/src/package_2016_02_preview/models.rs b/services/mgmt/cognitiveservices/src/package_2016_02_preview/models.rs index 893cb921fa..da2821856c 100644 --- a/services/mgmt/cognitiveservices/src/package_2016_02_preview/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2016_02_preview/models.rs @@ -181,7 +181,7 @@ pub struct CognitiveServicesAccountListResult { pub value: Vec, } impl azure_core::Continuable for CognitiveServicesAccountListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -259,7 +259,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/cognitiveservices/src/package_2017_04/models.rs b/services/mgmt/cognitiveservices/src/package_2017_04/models.rs index 32dfa1626c..1ef411e3d5 100644 --- a/services/mgmt/cognitiveservices/src/package_2017_04/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2017_04/models.rs @@ -212,8 +212,8 @@ pub struct CognitiveServicesAccountListResult { pub value: Vec, } impl azure_core::Continuable for CognitiveServicesAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CognitiveServicesAccountListResult { @@ -461,7 +461,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -669,8 +669,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -1006,8 +1006,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { diff --git a/services/mgmt/cognitiveservices/src/package_2017_04/operations.rs b/services/mgmt/cognitiveservices/src/package_2017_04/operations.rs index eb4fa13d00..cbc694b9c8 100644 --- a/services/mgmt/cognitiveservices/src/package_2017_04/operations.rs +++ b/services/mgmt/cognitiveservices/src/package_2017_04/operations.rs @@ -483,9 +483,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -504,6 +504,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -557,9 +560,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -578,6 +581,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -862,9 +868,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -883,6 +889,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -943,9 +952,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -964,6 +973,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cognitiveservices/src/package_2021_04/models.rs b/services/mgmt/cognitiveservices/src/package_2021_04/models.rs index 479c136632..7b70a41dff 100644 --- a/services/mgmt/cognitiveservices/src/package_2021_04/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2021_04/models.rs @@ -47,8 +47,8 @@ pub struct AccountListResult { pub value: Vec, } impl azure_core::Continuable for AccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountListResult { @@ -486,7 +486,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -769,8 +769,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1095,8 +1095,8 @@ pub struct ResourceSkuListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuListResult { diff --git a/services/mgmt/cognitiveservices/src/package_2021_04/operations.rs b/services/mgmt/cognitiveservices/src/package_2021_04/operations.rs index dac78e3496..41805654de 100644 --- a/services/mgmt/cognitiveservices/src/package_2021_04/operations.rs +++ b/services/mgmt/cognitiveservices/src/package_2021_04/operations.rs @@ -489,9 +489,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -510,6 +510,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -563,9 +566,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -584,6 +587,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1010,9 +1016,9 @@ pub mod deleted_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1031,6 +1037,9 @@ pub mod deleted_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1096,9 +1105,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1117,6 +1126,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1177,9 +1189,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1198,6 +1210,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cognitiveservices/src/package_2021_10/models.rs b/services/mgmt/cognitiveservices/src/package_2021_10/models.rs index c10e048c0f..f88dc64332 100644 --- a/services/mgmt/cognitiveservices/src/package_2021_10/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2021_10/models.rs @@ -47,8 +47,8 @@ pub struct AccountListResult { pub value: Vec, } impl azure_core::Continuable for AccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountListResult { @@ -433,8 +433,8 @@ pub struct CommitmentPlanListResult { pub value: Vec, } impl azure_core::Continuable for CommitmentPlanListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommitmentPlanListResult { @@ -528,8 +528,8 @@ pub struct CommitmentTierListResult { pub value: Vec, } impl azure_core::Continuable for CommitmentTierListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommitmentTierListResult { @@ -568,8 +568,8 @@ pub struct DeploymentListResult { pub value: Vec, } impl azure_core::Continuable for DeploymentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentListResult { @@ -849,7 +849,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1171,8 +1171,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1508,8 +1508,8 @@ pub struct ResourceSkuListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuListResult { diff --git a/services/mgmt/cognitiveservices/src/package_2021_10/operations.rs b/services/mgmt/cognitiveservices/src/package_2021_10/operations.rs index 2b71c5073e..89718d78c3 100644 --- a/services/mgmt/cognitiveservices/src/package_2021_10/operations.rs +++ b/services/mgmt/cognitiveservices/src/package_2021_10/operations.rs @@ -498,9 +498,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -519,6 +519,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -572,9 +575,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -593,6 +596,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1019,9 +1025,9 @@ pub mod deleted_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1040,6 +1046,9 @@ pub mod deleted_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1105,9 +1114,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1126,6 +1135,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1186,9 +1198,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1207,6 +1219,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1403,9 +1418,9 @@ pub mod commitment_tiers { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1424,6 +1439,9 @@ pub mod commitment_tiers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1887,9 +1905,9 @@ pub mod deployments { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1908,6 +1926,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2209,9 +2230,9 @@ pub mod commitment_plans { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2230,6 +2251,9 @@ pub mod commitment_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cognitiveservices/src/package_2022_03/models.rs b/services/mgmt/cognitiveservices/src/package_2022_03/models.rs index 51e45aa863..1925b471d9 100644 --- a/services/mgmt/cognitiveservices/src/package_2022_03/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2022_03/models.rs @@ -47,8 +47,8 @@ pub struct AccountListResult { pub value: Vec, } impl azure_core::Continuable for AccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountListResult { @@ -93,8 +93,8 @@ pub struct AccountModelListResult { pub value: Vec, } impl azure_core::Continuable for AccountModelListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountModelListResult { @@ -488,8 +488,8 @@ pub struct CommitmentPlanListResult { pub value: Vec, } impl azure_core::Continuable for CommitmentPlanListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommitmentPlanListResult { @@ -583,8 +583,8 @@ pub struct CommitmentTierListResult { pub value: Vec, } impl azure_core::Continuable for CommitmentTierListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommitmentTierListResult { @@ -623,8 +623,8 @@ pub struct DeploymentListResult { pub value: Vec, } impl azure_core::Continuable for DeploymentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentListResult { @@ -907,7 +907,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1244,8 +1244,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1581,8 +1581,8 @@ pub struct ResourceSkuListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuListResult { diff --git a/services/mgmt/cognitiveservices/src/package_2022_03/operations.rs b/services/mgmt/cognitiveservices/src/package_2022_03/operations.rs index c644367d84..4c1bfb2a86 100644 --- a/services/mgmt/cognitiveservices/src/package_2022_03/operations.rs +++ b/services/mgmt/cognitiveservices/src/package_2022_03/operations.rs @@ -511,9 +511,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -532,6 +532,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -585,9 +588,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -606,6 +609,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -882,9 +888,9 @@ pub mod accounts { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -903,6 +909,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1110,9 +1119,9 @@ pub mod deleted_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1131,6 +1140,9 @@ pub mod deleted_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1196,9 +1208,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1217,6 +1229,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1277,9 +1292,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1298,6 +1313,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1494,9 +1512,9 @@ pub mod commitment_tiers { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1515,6 +1533,9 @@ pub mod commitment_tiers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1978,9 +1999,9 @@ pub mod deployments { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1999,6 +2020,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2300,9 +2324,9 @@ pub mod commitment_plans { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2321,6 +2345,9 @@ pub mod commitment_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/commerce/src/package_2015_06_preview/models.rs b/services/mgmt/commerce/src/package_2015_06_preview/models.rs index 8b5c57dd70..71969a8e03 100644 --- a/services/mgmt/commerce/src/package_2015_06_preview/models.rs +++ b/services/mgmt/commerce/src/package_2015_06_preview/models.rs @@ -15,7 +15,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -247,8 +247,8 @@ pub struct UsageAggregationListResult { pub next_link: Option, } impl azure_core::Continuable for UsageAggregationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageAggregationListResult { diff --git a/services/mgmt/commerce/src/package_2015_06_preview/operations.rs b/services/mgmt/commerce/src/package_2015_06_preview/operations.rs index 69f649541a..ef3b1b01aa 100644 --- a/services/mgmt/commerce/src/package_2015_06_preview/operations.rs +++ b/services/mgmt/commerce/src/package_2015_06_preview/operations.rs @@ -138,9 +138,9 @@ pub mod usage_aggregates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -159,6 +159,9 @@ pub mod usage_aggregates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/commerce/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/commerce/src/profile_hybrid_2020_09_01/models.rs index 8b5c57dd70..71969a8e03 100644 --- a/services/mgmt/commerce/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/commerce/src/profile_hybrid_2020_09_01/models.rs @@ -15,7 +15,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -247,8 +247,8 @@ pub struct UsageAggregationListResult { pub next_link: Option, } impl azure_core::Continuable for UsageAggregationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageAggregationListResult { diff --git a/services/mgmt/commerce/src/profile_hybrid_2020_09_01/operations.rs b/services/mgmt/commerce/src/profile_hybrid_2020_09_01/operations.rs index 69f649541a..ef3b1b01aa 100644 --- a/services/mgmt/commerce/src/profile_hybrid_2020_09_01/operations.rs +++ b/services/mgmt/commerce/src/profile_hybrid_2020_09_01/operations.rs @@ -138,9 +138,9 @@ pub mod usage_aggregates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -159,6 +159,9 @@ pub mod usage_aggregates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/communication/src/package_2020_08_20/models.rs b/services/mgmt/communication/src/package_2020_08_20/models.rs index 5e7487b68d..3677fed103 100644 --- a/services/mgmt/communication/src/package_2020_08_20/models.rs +++ b/services/mgmt/communication/src/package_2020_08_20/models.rs @@ -145,8 +145,8 @@ pub struct CommunicationServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for CommunicationServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommunicationServiceResourceList { @@ -201,7 +201,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -420,8 +420,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/communication/src/package_2020_08_20/operations.rs b/services/mgmt/communication/src/package_2020_08_20/operations.rs index b093005967..05689daa03 100644 --- a/services/mgmt/communication/src/package_2020_08_20/operations.rs +++ b/services/mgmt/communication/src/package_2020_08_20/operations.rs @@ -105,9 +105,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Communication/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -126,6 +126,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -435,9 +438,9 @@ pub mod communication_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -456,6 +459,9 @@ pub mod communication_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -511,9 +517,9 @@ pub mod communication_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -532,6 +538,9 @@ pub mod communication_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/communication/src/package_2020_08_20_preview/models.rs b/services/mgmt/communication/src/package_2020_08_20_preview/models.rs index cf33ba94fa..2aec2f890a 100644 --- a/services/mgmt/communication/src/package_2020_08_20_preview/models.rs +++ b/services/mgmt/communication/src/package_2020_08_20_preview/models.rs @@ -142,8 +142,8 @@ pub struct CommunicationServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for CommunicationServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommunicationServiceResourceList { @@ -180,7 +180,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -413,8 +413,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/communication/src/package_2020_08_20_preview/operations.rs b/services/mgmt/communication/src/package_2020_08_20_preview/operations.rs index 6b8dccd095..f2aeab41eb 100644 --- a/services/mgmt/communication/src/package_2020_08_20_preview/operations.rs +++ b/services/mgmt/communication/src/package_2020_08_20_preview/operations.rs @@ -108,9 +108,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Communication/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -129,6 +129,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -437,9 +440,9 @@ pub mod communication_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -458,6 +461,9 @@ pub mod communication_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -513,9 +519,9 @@ pub mod communication_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -534,6 +540,9 @@ pub mod communication_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/communication/src/package_2021_10_01_preview/models.rs b/services/mgmt/communication/src/package_2021_10_01_preview/models.rs index 311b4c8004..1a82fcf4ad 100644 --- a/services/mgmt/communication/src/package_2021_10_01_preview/models.rs +++ b/services/mgmt/communication/src/package_2021_10_01_preview/models.rs @@ -222,8 +222,8 @@ pub struct CommunicationServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for CommunicationServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommunicationServiceResourceList { @@ -499,8 +499,8 @@ pub struct DomainResourceList { pub next_link: Option, } impl azure_core::Continuable for DomainResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainResourceList { @@ -613,8 +613,8 @@ pub struct EmailServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for EmailServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EmailServiceResourceList { @@ -680,7 +680,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -868,8 +868,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/communication/src/package_2021_10_01_preview/operations.rs b/services/mgmt/communication/src/package_2021_10_01_preview/operations.rs index 12e36860af..13e8afe37c 100644 --- a/services/mgmt/communication/src/package_2021_10_01_preview/operations.rs +++ b/services/mgmt/communication/src/package_2021_10_01_preview/operations.rs @@ -111,9 +111,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Communication/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -132,6 +132,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -436,9 +439,9 @@ pub mod communication_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -457,6 +460,9 @@ pub mod communication_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -512,9 +518,9 @@ pub mod communication_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -533,6 +539,9 @@ pub mod communication_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1305,9 +1314,9 @@ pub mod domains { &this.email_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1326,6 +1335,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1802,9 +1814,9 @@ pub mod email_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1823,6 +1835,9 @@ pub mod email_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1878,9 +1893,9 @@ pub mod email_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1899,6 +1914,9 @@ pub mod email_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/compute/src/package_2021_11_01/models.rs b/services/mgmt/compute/src/package_2021_11_01/models.rs index a926eb5112..586c4c81ef 100644 --- a/services/mgmt/compute/src/package_2021_11_01/models.rs +++ b/services/mgmt/compute/src/package_2021_11_01/models.rs @@ -299,8 +299,8 @@ pub struct AvailabilitySetListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilitySetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilitySetListResult { @@ -582,8 +582,8 @@ pub struct CapacityReservationGroupListResult { pub next_link: Option, } impl azure_core::Continuable for CapacityReservationGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityReservationGroupListResult { @@ -661,8 +661,8 @@ pub struct CapacityReservationListResult { pub next_link: Option, } impl azure_core::Continuable for CapacityReservationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityReservationListResult { @@ -745,7 +745,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -864,8 +864,8 @@ pub struct CloudServiceListResult { pub next_link: Option, } impl azure_core::Continuable for CloudServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudServiceListResult { @@ -978,8 +978,8 @@ pub struct CloudServiceRoleListResult { pub next_link: Option, } impl azure_core::Continuable for CloudServiceRoleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudServiceRoleListResult { @@ -1334,7 +1334,7 @@ pub struct ComputeOperationListResult { pub value: Vec, } impl azure_core::Continuable for ComputeOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1709,8 +1709,8 @@ pub struct DedicatedHostGroupListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHostGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHostGroupListResult { @@ -1811,8 +1811,8 @@ pub struct DedicatedHostListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHostListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHostListResult { @@ -2172,8 +2172,8 @@ pub struct DiskAccessList { pub next_link: Option, } impl azure_core::Continuable for DiskAccessList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskAccessList { @@ -2240,8 +2240,8 @@ pub struct DiskEncryptionSetList { pub next_link: Option, } impl azure_core::Continuable for DiskEncryptionSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskEncryptionSetList { @@ -2399,8 +2399,8 @@ pub struct DiskList { pub next_link: Option, } impl azure_core::Continuable for DiskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskList { @@ -2615,8 +2615,8 @@ pub struct DiskRestorePointList { pub next_link: Option, } impl azure_core::Continuable for DiskRestorePointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskRestorePointList { @@ -3321,8 +3321,8 @@ pub struct GalleryApplicationList { pub next_link: Option, } impl azure_core::Continuable for GalleryApplicationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryApplicationList { @@ -3414,8 +3414,8 @@ pub struct GalleryApplicationVersionList { pub next_link: Option, } impl azure_core::Continuable for GalleryApplicationVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryApplicationVersionList { @@ -3801,8 +3801,8 @@ pub struct GalleryImageList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageList { @@ -4024,8 +4024,8 @@ pub struct GalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageVersionList { @@ -4125,8 +4125,8 @@ pub struct GalleryList { pub next_link: Option, } impl azure_core::Continuable for GalleryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryList { @@ -5013,8 +5013,8 @@ pub struct ImageListResult { pub next_link: Option, } impl azure_core::Continuable for ImageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImageListResult { @@ -5542,8 +5542,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -6107,8 +6107,8 @@ pub struct OsFamilyListResult { pub next_link: Option, } impl azure_core::Continuable for OsFamilyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsFamilyListResult { @@ -6201,8 +6201,8 @@ pub struct OsVersionListResult { pub next_link: Option, } impl azure_core::Continuable for OsVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsVersionListResult { @@ -6764,8 +6764,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -6983,8 +6983,8 @@ pub struct ProximityPlacementGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ProximityPlacementGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProximityPlacementGroupListResult { @@ -7776,8 +7776,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -7795,8 +7795,8 @@ pub struct ResourceUriList { pub next_link: Option, } impl azure_core::Continuable for ResourceUriList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUriList { @@ -7846,8 +7846,8 @@ pub struct RestorePointCollectionListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointCollectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorePointCollectionListResult { @@ -8206,8 +8206,8 @@ pub struct RoleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for RoleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleInstanceListResult { @@ -8496,8 +8496,8 @@ pub struct RunCommandListResult { pub next_link: Option, } impl azure_core::Continuable for RunCommandListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunCommandListResult { @@ -8683,8 +8683,8 @@ pub struct SharedGalleryImageList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryImageList { @@ -8817,8 +8817,8 @@ pub struct SharedGalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryImageVersionList { @@ -8851,8 +8851,8 @@ pub struct SharedGalleryList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryList { @@ -9151,8 +9151,8 @@ pub struct SnapshotList { pub next_link: Option, } impl azure_core::Continuable for SnapshotList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotList { @@ -9559,8 +9559,8 @@ pub struct SshPublicKeysGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SshPublicKeysGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SshPublicKeysGroupListResult { @@ -9830,8 +9830,8 @@ pub struct UpdateDomainListResult { pub next_link: Option, } impl azure_core::Continuable for UpdateDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateDomainListResult { @@ -11073,8 +11073,8 @@ pub struct VirtualMachineListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineListResult { @@ -11746,8 +11746,8 @@ pub struct VirtualMachineRunCommandsListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineRunCommandsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineRunCommandsListResult { @@ -11867,8 +11867,8 @@ pub struct VirtualMachineScaleSetExtensionListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetExtensionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetExtensionListResult { @@ -12152,8 +12152,8 @@ pub struct VirtualMachineScaleSetListOsUpgradeHistory { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListOsUpgradeHistory { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListOsUpgradeHistory { @@ -12171,8 +12171,8 @@ pub struct VirtualMachineScaleSetListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListResult { @@ -12190,8 +12190,8 @@ pub struct VirtualMachineScaleSetListSkusResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListSkusResult { @@ -12209,8 +12209,8 @@ pub struct VirtualMachineScaleSetListWithLinkResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListWithLinkResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListWithLinkResult { @@ -13436,8 +13436,8 @@ pub struct VirtualMachineScaleSetVmListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetVmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetVmListResult { @@ -13630,7 +13630,7 @@ pub struct VirtualMachineSizeListResult { pub value: Vec, } impl azure_core::Continuable for VirtualMachineSizeListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/compute/src/package_2021_11_01/operations.rs b/services/mgmt/compute/src/package_2021_11_01/operations.rs index 68eff4ce13..f9a3ab4834 100644 --- a/services/mgmt/compute/src/package_2021_11_01/operations.rs +++ b/services/mgmt/compute/src/package_2021_11_01/operations.rs @@ -600,9 +600,9 @@ pub mod availability_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -621,6 +621,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -679,9 +682,9 @@ pub mod availability_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -700,6 +703,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1113,9 +1119,9 @@ pub mod proximity_placement_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1134,6 +1140,9 @@ pub mod proximity_placement_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1189,9 +1198,9 @@ pub mod proximity_placement_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1210,6 +1219,9 @@ pub mod proximity_placement_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1575,9 +1587,9 @@ pub mod dedicated_host_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1596,6 +1608,9 @@ pub mod dedicated_host_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1649,9 +1664,9 @@ pub mod dedicated_host_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1670,6 +1685,9 @@ pub mod dedicated_host_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2069,9 +2087,9 @@ pub mod dedicated_hosts { &this.host_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2090,6 +2108,9 @@ pub mod dedicated_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2287,9 +2308,9 @@ pub mod ssh_public_keys { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2308,6 +2329,9 @@ pub mod ssh_public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2363,9 +2387,9 @@ pub mod ssh_public_keys { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2384,6 +2408,9 @@ pub mod ssh_public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4054,9 +4081,9 @@ pub mod usage { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4075,6 +4102,9 @@ pub mod usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4461,9 +4491,9 @@ pub mod virtual_machines { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4482,6 +4512,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5066,9 +5099,9 @@ pub mod virtual_machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5087,6 +5120,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5153,9 +5189,9 @@ pub mod virtual_machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5174,6 +5210,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6291,9 +6330,9 @@ pub mod virtual_machine_scale_sets { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6312,6 +6351,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6794,9 +6836,9 @@ pub mod virtual_machine_scale_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6815,6 +6857,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6868,9 +6913,9 @@ pub mod virtual_machine_scale_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6889,6 +6934,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6946,9 +6994,9 @@ pub mod virtual_machine_scale_sets { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6967,6 +7015,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7024,9 +7075,9 @@ pub mod virtual_machine_scale_sets { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7045,6 +7096,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8161,9 +8215,9 @@ pub mod images { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8182,6 +8236,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8235,9 +8292,9 @@ pub mod images { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8256,6 +8313,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8620,9 +8680,9 @@ pub mod restore_point_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8641,6 +8701,9 @@ pub mod restore_point_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8694,9 +8757,9 @@ pub mod restore_point_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8715,6 +8778,9 @@ pub mod restore_point_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9318,9 +9384,9 @@ pub mod capacity_reservation_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9339,6 +9405,9 @@ pub mod capacity_reservation_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9400,9 +9469,9 @@ pub mod capacity_reservation_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9421,6 +9490,9 @@ pub mod capacity_reservation_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9779,9 +9851,9 @@ pub mod capacity_reservations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/capacityReservationGroups/{}/capacityReservations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . capacity_reservation_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9800,6 +9872,9 @@ pub mod capacity_reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10193,9 +10268,9 @@ pub mod virtual_machine_scale_set_extensions { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10214,6 +10289,9 @@ pub mod virtual_machine_scale_set_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11552,9 +11630,9 @@ pub mod virtual_machine_scale_set_v_ms { &this.virtual_machine_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11573,6 +11651,9 @@ pub mod virtual_machine_scale_set_v_ms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12302,9 +12383,9 @@ pub mod virtual_machine_run_commands { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12323,6 +12404,9 @@ pub mod virtual_machine_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12680,9 +12764,9 @@ pub mod virtual_machine_run_commands { &this.vm_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12701,6 +12785,9 @@ pub mod virtual_machine_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13075,9 +13162,9 @@ pub mod virtual_machine_scale_set_vm_run_commands { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/runCommands" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vm_scale_set_name , & this . instance_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13096,6 +13183,9 @@ pub mod virtual_machine_scale_set_vm_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13176,9 +13266,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13197,6 +13287,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13603,9 +13696,9 @@ pub mod disks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13624,6 +13717,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13677,9 +13773,9 @@ pub mod disks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13698,6 +13794,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14211,9 +14310,9 @@ pub mod snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14232,6 +14331,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14285,9 +14387,9 @@ pub mod snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14306,6 +14408,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14804,9 +14909,9 @@ pub mod disk_encryption_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14825,6 +14930,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14878,9 +14986,9 @@ pub mod disk_encryption_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14899,6 +15007,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14956,9 +15067,9 @@ pub mod disk_encryption_sets { &this.disk_encryption_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14977,6 +15088,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15420,9 +15534,9 @@ pub mod disk_accesses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15441,6 +15555,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15494,9 +15611,9 @@ pub mod disk_accesses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15515,6 +15632,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15781,9 +15901,9 @@ pub mod disk_accesses { &this.disk_access_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15802,6 +15922,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15976,9 +16099,9 @@ pub mod disk_restore_point { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/restorePointCollections/{}/restorePoints/{}/diskRestorePoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . restore_point_collection_name , & this . vm_restore_point_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15997,6 +16120,9 @@ pub mod disk_restore_point { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16489,9 +16615,9 @@ pub mod galleries { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16510,6 +16636,9 @@ pub mod galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16563,9 +16692,9 @@ pub mod galleries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16584,6 +16713,9 @@ pub mod galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16965,9 +17097,9 @@ pub mod gallery_images { &this.gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16986,6 +17118,9 @@ pub mod gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17396,9 +17531,9 @@ pub mod gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17417,6 +17552,9 @@ pub mod gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17798,9 +17936,9 @@ pub mod gallery_applications { &this.gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17819,6 +17957,9 @@ pub mod gallery_applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18229,9 +18370,9 @@ pub mod gallery_application_versions { &this.gallery_application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18250,6 +18391,9 @@ pub mod gallery_application_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18422,9 +18566,9 @@ pub mod shared_galleries { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18443,6 +18587,9 @@ pub mod shared_galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18595,9 +18742,9 @@ pub mod shared_gallery_images { &this.gallery_unique_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18616,6 +18763,9 @@ pub mod shared_gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18776,9 +18926,9 @@ pub mod shared_gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18797,6 +18947,9 @@ pub mod shared_gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19436,9 +19589,9 @@ pub mod cloud_service_role_instances { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19457,6 +19610,9 @@ pub mod cloud_service_role_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19823,9 +19979,9 @@ pub mod cloud_service_roles { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19844,6 +20000,9 @@ pub mod cloud_service_roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20360,9 +20519,9 @@ pub mod cloud_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20381,6 +20540,9 @@ pub mod cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20436,9 +20598,9 @@ pub mod cloud_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20457,6 +20619,9 @@ pub mod cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21050,9 +21215,9 @@ pub mod cloud_services_update_domain { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21071,6 +21236,9 @@ pub mod cloud_services_update_domain { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21224,9 +21392,9 @@ pub mod cloud_service_operating_systems { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21245,6 +21413,9 @@ pub mod cloud_service_operating_systems { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21352,9 +21523,9 @@ pub mod cloud_service_operating_systems { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21373,6 +21544,9 @@ pub mod cloud_service_operating_systems { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/compute/src/package_2021_12_01/models.rs b/services/mgmt/compute/src/package_2021_12_01/models.rs index 45d26d4ae8..3e39329db3 100644 --- a/services/mgmt/compute/src/package_2021_12_01/models.rs +++ b/services/mgmt/compute/src/package_2021_12_01/models.rs @@ -299,8 +299,8 @@ pub struct AvailabilitySetListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilitySetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilitySetListResult { @@ -582,8 +582,8 @@ pub struct CapacityReservationGroupListResult { pub next_link: Option, } impl azure_core::Continuable for CapacityReservationGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityReservationGroupListResult { @@ -661,8 +661,8 @@ pub struct CapacityReservationListResult { pub next_link: Option, } impl azure_core::Continuable for CapacityReservationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityReservationListResult { @@ -745,7 +745,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -864,8 +864,8 @@ pub struct CloudServiceListResult { pub next_link: Option, } impl azure_core::Continuable for CloudServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudServiceListResult { @@ -978,8 +978,8 @@ pub struct CloudServiceRoleListResult { pub next_link: Option, } impl azure_core::Continuable for CloudServiceRoleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudServiceRoleListResult { @@ -1334,7 +1334,7 @@ pub struct ComputeOperationListResult { pub value: Vec, } impl azure_core::Continuable for ComputeOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1746,8 +1746,8 @@ pub struct DedicatedHostGroupListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHostGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHostGroupListResult { @@ -1848,8 +1848,8 @@ pub struct DedicatedHostListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHostListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHostListResult { @@ -2209,8 +2209,8 @@ pub struct DiskAccessList { pub next_link: Option, } impl azure_core::Continuable for DiskAccessList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskAccessList { @@ -2277,8 +2277,8 @@ pub struct DiskEncryptionSetList { pub next_link: Option, } impl azure_core::Continuable for DiskEncryptionSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskEncryptionSetList { @@ -2436,8 +2436,8 @@ pub struct DiskList { pub next_link: Option, } impl azure_core::Continuable for DiskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskList { @@ -2656,8 +2656,8 @@ pub struct DiskRestorePointList { pub next_link: Option, } impl azure_core::Continuable for DiskRestorePointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskRestorePointList { @@ -3365,8 +3365,8 @@ pub struct GalleryApplicationList { pub next_link: Option, } impl azure_core::Continuable for GalleryApplicationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryApplicationList { @@ -3458,8 +3458,8 @@ pub struct GalleryApplicationVersionList { pub next_link: Option, } impl azure_core::Continuable for GalleryApplicationVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryApplicationVersionList { @@ -3845,8 +3845,8 @@ pub struct GalleryImageList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageList { @@ -4068,8 +4068,8 @@ pub struct GalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageVersionList { @@ -4169,8 +4169,8 @@ pub struct GalleryList { pub next_link: Option, } impl azure_core::Continuable for GalleryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryList { @@ -5057,8 +5057,8 @@ pub struct ImageListResult { pub next_link: Option, } impl azure_core::Continuable for ImageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImageListResult { @@ -5586,8 +5586,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -6151,8 +6151,8 @@ pub struct OsFamilyListResult { pub next_link: Option, } impl azure_core::Continuable for OsFamilyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsFamilyListResult { @@ -6245,8 +6245,8 @@ pub struct OsVersionListResult { pub next_link: Option, } impl azure_core::Continuable for OsVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsVersionListResult { @@ -6808,8 +6808,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -7027,8 +7027,8 @@ pub struct ProximityPlacementGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ProximityPlacementGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProximityPlacementGroupListResult { @@ -7820,8 +7820,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -7839,8 +7839,8 @@ pub struct ResourceUriList { pub next_link: Option, } impl azure_core::Continuable for ResourceUriList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUriList { @@ -7890,8 +7890,8 @@ pub struct RestorePointCollectionListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointCollectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorePointCollectionListResult { @@ -8250,8 +8250,8 @@ pub struct RoleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for RoleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleInstanceListResult { @@ -8540,8 +8540,8 @@ pub struct RunCommandListResult { pub next_link: Option, } impl azure_core::Continuable for RunCommandListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunCommandListResult { @@ -8727,8 +8727,8 @@ pub struct SharedGalleryImageList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryImageList { @@ -8861,8 +8861,8 @@ pub struct SharedGalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryImageVersionList { @@ -8895,8 +8895,8 @@ pub struct SharedGalleryList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryList { @@ -9195,8 +9195,8 @@ pub struct SnapshotList { pub next_link: Option, } impl azure_core::Continuable for SnapshotList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotList { @@ -9610,8 +9610,8 @@ pub struct SshPublicKeysGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SshPublicKeysGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SshPublicKeysGroupListResult { @@ -9925,8 +9925,8 @@ pub struct UpdateDomainListResult { pub next_link: Option, } impl azure_core::Continuable for UpdateDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateDomainListResult { @@ -11168,8 +11168,8 @@ pub struct VirtualMachineListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineListResult { @@ -11841,8 +11841,8 @@ pub struct VirtualMachineRunCommandsListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineRunCommandsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineRunCommandsListResult { @@ -11962,8 +11962,8 @@ pub struct VirtualMachineScaleSetExtensionListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetExtensionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetExtensionListResult { @@ -12247,8 +12247,8 @@ pub struct VirtualMachineScaleSetListOsUpgradeHistory { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListOsUpgradeHistory { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListOsUpgradeHistory { @@ -12266,8 +12266,8 @@ pub struct VirtualMachineScaleSetListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListResult { @@ -12285,8 +12285,8 @@ pub struct VirtualMachineScaleSetListSkusResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListSkusResult { @@ -12304,8 +12304,8 @@ pub struct VirtualMachineScaleSetListWithLinkResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListWithLinkResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListWithLinkResult { @@ -13531,8 +13531,8 @@ pub struct VirtualMachineScaleSetVmListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetVmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetVmListResult { @@ -13725,7 +13725,7 @@ pub struct VirtualMachineSizeListResult { pub value: Vec, } impl azure_core::Continuable for VirtualMachineSizeListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/compute/src/package_2021_12_01/operations.rs b/services/mgmt/compute/src/package_2021_12_01/operations.rs index 11d0640b0b..9c029954f6 100644 --- a/services/mgmt/compute/src/package_2021_12_01/operations.rs +++ b/services/mgmt/compute/src/package_2021_12_01/operations.rs @@ -600,9 +600,9 @@ pub mod availability_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -621,6 +621,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -679,9 +682,9 @@ pub mod availability_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -700,6 +703,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1113,9 +1119,9 @@ pub mod proximity_placement_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1134,6 +1140,9 @@ pub mod proximity_placement_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1189,9 +1198,9 @@ pub mod proximity_placement_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1210,6 +1219,9 @@ pub mod proximity_placement_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1575,9 +1587,9 @@ pub mod dedicated_host_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1596,6 +1608,9 @@ pub mod dedicated_host_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1649,9 +1664,9 @@ pub mod dedicated_host_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1670,6 +1685,9 @@ pub mod dedicated_host_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2069,9 +2087,9 @@ pub mod dedicated_hosts { &this.host_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2090,6 +2108,9 @@ pub mod dedicated_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2287,9 +2308,9 @@ pub mod ssh_public_keys { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2308,6 +2329,9 @@ pub mod ssh_public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2363,9 +2387,9 @@ pub mod ssh_public_keys { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2384,6 +2408,9 @@ pub mod ssh_public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4054,9 +4081,9 @@ pub mod usage { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4075,6 +4102,9 @@ pub mod usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4461,9 +4491,9 @@ pub mod virtual_machines { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4482,6 +4512,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5066,9 +5099,9 @@ pub mod virtual_machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5087,6 +5120,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5153,9 +5189,9 @@ pub mod virtual_machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5174,6 +5210,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6291,9 +6330,9 @@ pub mod virtual_machine_scale_sets { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6312,6 +6351,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6794,9 +6836,9 @@ pub mod virtual_machine_scale_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6815,6 +6857,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6868,9 +6913,9 @@ pub mod virtual_machine_scale_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6889,6 +6934,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6946,9 +6994,9 @@ pub mod virtual_machine_scale_sets { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6967,6 +7015,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7024,9 +7075,9 @@ pub mod virtual_machine_scale_sets { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7045,6 +7096,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8161,9 +8215,9 @@ pub mod images { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8182,6 +8236,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8235,9 +8292,9 @@ pub mod images { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8256,6 +8313,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8620,9 +8680,9 @@ pub mod restore_point_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8641,6 +8701,9 @@ pub mod restore_point_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8694,9 +8757,9 @@ pub mod restore_point_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8715,6 +8778,9 @@ pub mod restore_point_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9318,9 +9384,9 @@ pub mod capacity_reservation_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9339,6 +9405,9 @@ pub mod capacity_reservation_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9400,9 +9469,9 @@ pub mod capacity_reservation_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9421,6 +9490,9 @@ pub mod capacity_reservation_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9779,9 +9851,9 @@ pub mod capacity_reservations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/capacityReservationGroups/{}/capacityReservations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . capacity_reservation_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9800,6 +9872,9 @@ pub mod capacity_reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10193,9 +10268,9 @@ pub mod virtual_machine_scale_set_extensions { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10214,6 +10289,9 @@ pub mod virtual_machine_scale_set_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11552,9 +11630,9 @@ pub mod virtual_machine_scale_set_v_ms { &this.virtual_machine_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11573,6 +11651,9 @@ pub mod virtual_machine_scale_set_v_ms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12302,9 +12383,9 @@ pub mod virtual_machine_run_commands { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12323,6 +12404,9 @@ pub mod virtual_machine_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12680,9 +12764,9 @@ pub mod virtual_machine_run_commands { &this.vm_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12701,6 +12785,9 @@ pub mod virtual_machine_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13075,9 +13162,9 @@ pub mod virtual_machine_scale_set_vm_run_commands { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/runCommands" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vm_scale_set_name , & this . instance_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13096,6 +13183,9 @@ pub mod virtual_machine_scale_set_vm_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13176,9 +13266,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13197,6 +13287,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13603,9 +13696,9 @@ pub mod disks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13624,6 +13717,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13677,9 +13773,9 @@ pub mod disks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13698,6 +13794,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14211,9 +14310,9 @@ pub mod snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14232,6 +14331,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14285,9 +14387,9 @@ pub mod snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14306,6 +14408,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14804,9 +14909,9 @@ pub mod disk_encryption_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14825,6 +14930,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14878,9 +14986,9 @@ pub mod disk_encryption_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14899,6 +15007,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14956,9 +15067,9 @@ pub mod disk_encryption_sets { &this.disk_encryption_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14977,6 +15088,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15420,9 +15534,9 @@ pub mod disk_accesses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15441,6 +15555,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15494,9 +15611,9 @@ pub mod disk_accesses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15515,6 +15632,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15781,9 +15901,9 @@ pub mod disk_accesses { &this.disk_access_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15802,6 +15922,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15976,9 +16099,9 @@ pub mod disk_restore_point { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/restorePointCollections/{}/restorePoints/{}/diskRestorePoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . restore_point_collection_name , & this . vm_restore_point_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15997,6 +16120,9 @@ pub mod disk_restore_point { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16489,9 +16615,9 @@ pub mod galleries { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16510,6 +16636,9 @@ pub mod galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16563,9 +16692,9 @@ pub mod galleries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16584,6 +16713,9 @@ pub mod galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16965,9 +17097,9 @@ pub mod gallery_images { &this.gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16986,6 +17118,9 @@ pub mod gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17396,9 +17531,9 @@ pub mod gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17417,6 +17552,9 @@ pub mod gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17798,9 +17936,9 @@ pub mod gallery_applications { &this.gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17819,6 +17957,9 @@ pub mod gallery_applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18229,9 +18370,9 @@ pub mod gallery_application_versions { &this.gallery_application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18250,6 +18391,9 @@ pub mod gallery_application_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18422,9 +18566,9 @@ pub mod shared_galleries { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18443,6 +18587,9 @@ pub mod shared_galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18595,9 +18742,9 @@ pub mod shared_gallery_images { &this.gallery_unique_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18616,6 +18763,9 @@ pub mod shared_gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18776,9 +18926,9 @@ pub mod shared_gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18797,6 +18947,9 @@ pub mod shared_gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19436,9 +19589,9 @@ pub mod cloud_service_role_instances { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19457,6 +19610,9 @@ pub mod cloud_service_role_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19823,9 +19979,9 @@ pub mod cloud_service_roles { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19844,6 +20000,9 @@ pub mod cloud_service_roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20360,9 +20519,9 @@ pub mod cloud_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20381,6 +20540,9 @@ pub mod cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20436,9 +20598,9 @@ pub mod cloud_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20457,6 +20619,9 @@ pub mod cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21050,9 +21215,9 @@ pub mod cloud_services_update_domain { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21071,6 +21236,9 @@ pub mod cloud_services_update_domain { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21224,9 +21392,9 @@ pub mod cloud_service_operating_systems { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21245,6 +21413,9 @@ pub mod cloud_service_operating_systems { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21352,9 +21523,9 @@ pub mod cloud_service_operating_systems { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21373,6 +21544,9 @@ pub mod cloud_service_operating_systems { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/compute/src/package_2022_01_03/models.rs b/services/mgmt/compute/src/package_2022_01_03/models.rs index eb2a6d01b8..3bf1afd016 100644 --- a/services/mgmt/compute/src/package_2022_01_03/models.rs +++ b/services/mgmt/compute/src/package_2022_01_03/models.rs @@ -340,8 +340,8 @@ pub struct AvailabilitySetListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilitySetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilitySetListResult { @@ -623,8 +623,8 @@ pub struct CapacityReservationGroupListResult { pub next_link: Option, } impl azure_core::Continuable for CapacityReservationGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityReservationGroupListResult { @@ -702,8 +702,8 @@ pub struct CapacityReservationListResult { pub next_link: Option, } impl azure_core::Continuable for CapacityReservationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityReservationListResult { @@ -786,7 +786,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -905,8 +905,8 @@ pub struct CloudServiceListResult { pub next_link: Option, } impl azure_core::Continuable for CloudServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudServiceListResult { @@ -1019,8 +1019,8 @@ pub struct CloudServiceRoleListResult { pub next_link: Option, } impl azure_core::Continuable for CloudServiceRoleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudServiceRoleListResult { @@ -1220,8 +1220,8 @@ pub struct CommunityGalleryImageList { pub next_link: Option, } impl azure_core::Continuable for CommunityGalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommunityGalleryImageList { @@ -1366,8 +1366,8 @@ pub struct CommunityGalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for CommunityGalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommunityGalleryImageVersionList { @@ -1431,7 +1431,7 @@ pub struct ComputeOperationListResult { pub value: Vec, } impl azure_core::Continuable for ComputeOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1843,8 +1843,8 @@ pub struct DedicatedHostGroupListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHostGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHostGroupListResult { @@ -1964,8 +1964,8 @@ pub struct DedicatedHostListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHostListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHostListResult { @@ -2325,8 +2325,8 @@ pub struct DiskAccessList { pub next_link: Option, } impl azure_core::Continuable for DiskAccessList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskAccessList { @@ -2393,8 +2393,8 @@ pub struct DiskEncryptionSetList { pub next_link: Option, } impl azure_core::Continuable for DiskEncryptionSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskEncryptionSetList { @@ -2552,8 +2552,8 @@ pub struct DiskList { pub next_link: Option, } impl azure_core::Continuable for DiskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskList { @@ -2772,8 +2772,8 @@ pub struct DiskRestorePointList { pub next_link: Option, } impl azure_core::Continuable for DiskRestorePointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskRestorePointList { @@ -3484,8 +3484,8 @@ pub struct GalleryApplicationList { pub next_link: Option, } impl azure_core::Continuable for GalleryApplicationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryApplicationList { @@ -3577,8 +3577,8 @@ pub struct GalleryApplicationVersionList { pub next_link: Option, } impl azure_core::Continuable for GalleryApplicationVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryApplicationVersionList { @@ -3959,8 +3959,8 @@ pub struct GalleryImageList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageList { @@ -4134,8 +4134,8 @@ pub struct GalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageVersionList { @@ -4222,8 +4222,8 @@ pub struct GalleryList { pub next_link: Option, } impl azure_core::Continuable for GalleryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryList { @@ -5142,8 +5142,8 @@ pub struct ImageListResult { pub next_link: Option, } impl azure_core::Continuable for ImageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImageListResult { @@ -5730,8 +5730,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -6295,8 +6295,8 @@ pub struct OsFamilyListResult { pub next_link: Option, } impl azure_core::Continuable for OsFamilyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsFamilyListResult { @@ -6389,8 +6389,8 @@ pub struct OsVersionListResult { pub next_link: Option, } impl azure_core::Continuable for OsVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsVersionListResult { @@ -6955,8 +6955,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -7178,8 +7178,8 @@ pub struct ProximityPlacementGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ProximityPlacementGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProximityPlacementGroupListResult { @@ -7985,8 +7985,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -8004,8 +8004,8 @@ pub struct ResourceUriList { pub next_link: Option, } impl azure_core::Continuable for ResourceUriList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUriList { @@ -8079,8 +8079,8 @@ pub struct RestorePointCollectionListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointCollectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorePointCollectionListResult { @@ -8439,8 +8439,8 @@ pub struct RoleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for RoleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleInstanceListResult { @@ -8729,8 +8729,8 @@ pub struct RunCommandListResult { pub next_link: Option, } impl azure_core::Continuable for RunCommandListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunCommandListResult { @@ -8989,8 +8989,8 @@ pub struct SharedGalleryImageList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryImageList { @@ -9127,8 +9127,8 @@ pub struct SharedGalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryImageVersionList { @@ -9182,8 +9182,8 @@ pub struct SharedGalleryList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryList { @@ -9493,8 +9493,8 @@ pub struct SnapshotList { pub next_link: Option, } impl azure_core::Continuable for SnapshotList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotList { @@ -9908,8 +9908,8 @@ pub struct SshPublicKeysGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SshPublicKeysGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SshPublicKeysGroupListResult { @@ -10226,8 +10226,8 @@ pub struct UpdateDomainListResult { pub next_link: Option, } impl azure_core::Continuable for UpdateDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateDomainListResult { @@ -11497,8 +11497,8 @@ pub struct VirtualMachineListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineListResult { @@ -12170,8 +12170,8 @@ pub struct VirtualMachineRunCommandsListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineRunCommandsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineRunCommandsListResult { @@ -12295,8 +12295,8 @@ pub struct VirtualMachineScaleSetExtensionListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetExtensionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetExtensionListResult { @@ -12580,8 +12580,8 @@ pub struct VirtualMachineScaleSetListOsUpgradeHistory { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListOsUpgradeHistory { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListOsUpgradeHistory { @@ -12599,8 +12599,8 @@ pub struct VirtualMachineScaleSetListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListResult { @@ -12618,8 +12618,8 @@ pub struct VirtualMachineScaleSetListSkusResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListSkusResult { @@ -12637,8 +12637,8 @@ pub struct VirtualMachineScaleSetListWithLinkResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListWithLinkResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListWithLinkResult { @@ -13875,8 +13875,8 @@ pub struct VirtualMachineScaleSetVmListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetVmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetVmListResult { @@ -14069,7 +14069,7 @@ pub struct VirtualMachineSizeListResult { pub value: Vec, } impl azure_core::Continuable for VirtualMachineSizeListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/compute/src/package_2022_01_03/operations.rs b/services/mgmt/compute/src/package_2022_01_03/operations.rs index fd1ebae1fa..9e5d85674b 100644 --- a/services/mgmt/compute/src/package_2022_01_03/operations.rs +++ b/services/mgmt/compute/src/package_2022_01_03/operations.rs @@ -308,9 +308,9 @@ pub mod usage { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -329,6 +329,9 @@ pub mod usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1167,9 +1170,9 @@ pub mod virtual_machines { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1188,6 +1191,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1772,9 +1778,9 @@ pub mod virtual_machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1793,6 +1799,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1859,9 +1868,9 @@ pub mod virtual_machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1880,6 +1889,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2997,9 +3009,9 @@ pub mod virtual_machine_scale_sets { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3018,6 +3030,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3500,9 +3515,9 @@ pub mod virtual_machine_scale_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3521,6 +3536,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3574,9 +3592,9 @@ pub mod virtual_machine_scale_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3595,6 +3613,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3652,9 +3673,9 @@ pub mod virtual_machine_scale_sets { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3673,6 +3694,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3730,9 +3754,9 @@ pub mod virtual_machine_scale_sets { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3751,6 +3775,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4817,9 +4844,9 @@ pub mod virtual_machine_scale_set_extensions { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4838,6 +4865,9 @@ pub mod virtual_machine_scale_set_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6176,9 +6206,9 @@ pub mod virtual_machine_scale_set_v_ms { &this.virtual_machine_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6197,6 +6227,9 @@ pub mod virtual_machine_scale_set_v_ms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7987,9 +8020,9 @@ pub mod availability_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8008,6 +8041,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8066,9 +8102,9 @@ pub mod availability_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8087,6 +8123,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8500,9 +8539,9 @@ pub mod proximity_placement_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8521,6 +8560,9 @@ pub mod proximity_placement_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8576,9 +8618,9 @@ pub mod proximity_placement_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8597,6 +8639,9 @@ pub mod proximity_placement_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8962,9 +9007,9 @@ pub mod dedicated_host_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8983,6 +9028,9 @@ pub mod dedicated_host_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9036,9 +9084,9 @@ pub mod dedicated_host_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9057,6 +9105,9 @@ pub mod dedicated_host_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9456,9 +9507,9 @@ pub mod dedicated_hosts { &this.host_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9477,6 +9528,9 @@ pub mod dedicated_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9674,9 +9728,9 @@ pub mod ssh_public_keys { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9695,6 +9749,9 @@ pub mod ssh_public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9750,9 +9807,9 @@ pub mod ssh_public_keys { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9771,6 +9828,9 @@ pub mod ssh_public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10425,9 +10485,9 @@ pub mod images { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10446,6 +10506,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10499,9 +10562,9 @@ pub mod images { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10520,6 +10583,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10884,9 +10950,9 @@ pub mod restore_point_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10905,6 +10971,9 @@ pub mod restore_point_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10958,9 +11027,9 @@ pub mod restore_point_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10979,6 +11048,9 @@ pub mod restore_point_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11582,9 +11654,9 @@ pub mod capacity_reservation_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11603,6 +11675,9 @@ pub mod capacity_reservation_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11664,9 +11739,9 @@ pub mod capacity_reservation_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11685,6 +11760,9 @@ pub mod capacity_reservation_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12043,9 +12121,9 @@ pub mod capacity_reservations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/capacityReservationGroups/{}/capacityReservations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . capacity_reservation_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12064,6 +12142,9 @@ pub mod capacity_reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12367,9 +12448,9 @@ pub mod virtual_machine_run_commands { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12388,6 +12469,9 @@ pub mod virtual_machine_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12745,9 +12829,9 @@ pub mod virtual_machine_run_commands { &this.vm_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12766,6 +12850,9 @@ pub mod virtual_machine_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13140,9 +13227,9 @@ pub mod virtual_machine_scale_set_vm_run_commands { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/runCommands" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vm_scale_set_name , & this . instance_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13161,6 +13248,9 @@ pub mod virtual_machine_scale_set_vm_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13241,9 +13331,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13262,6 +13352,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13668,9 +13761,9 @@ pub mod disks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13689,6 +13782,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13742,9 +13838,9 @@ pub mod disks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13763,6 +13859,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14276,9 +14375,9 @@ pub mod snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14297,6 +14396,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14350,9 +14452,9 @@ pub mod snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14371,6 +14473,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14869,9 +14974,9 @@ pub mod disk_encryption_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14890,6 +14995,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14943,9 +15051,9 @@ pub mod disk_encryption_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14964,6 +15072,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15021,9 +15132,9 @@ pub mod disk_encryption_sets { &this.disk_encryption_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15042,6 +15153,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15485,9 +15599,9 @@ pub mod disk_accesses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15506,6 +15620,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15559,9 +15676,9 @@ pub mod disk_accesses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15580,6 +15697,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15846,9 +15966,9 @@ pub mod disk_accesses { &this.disk_access_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15867,6 +15987,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16041,9 +16164,9 @@ pub mod disk_restore_point { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/restorePointCollections/{}/restorePoints/{}/diskRestorePoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . restore_point_collection_name , & this . vm_restore_point_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16062,6 +16185,9 @@ pub mod disk_restore_point { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16554,9 +16680,9 @@ pub mod galleries { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16575,6 +16701,9 @@ pub mod galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16628,9 +16757,9 @@ pub mod galleries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16649,6 +16778,9 @@ pub mod galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17030,9 +17162,9 @@ pub mod gallery_images { &this.gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17051,6 +17183,9 @@ pub mod gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17461,9 +17596,9 @@ pub mod gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17482,6 +17617,9 @@ pub mod gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17863,9 +18001,9 @@ pub mod gallery_applications { &this.gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17884,6 +18022,9 @@ pub mod gallery_applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18294,9 +18435,9 @@ pub mod gallery_application_versions { &this.gallery_application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18315,6 +18456,9 @@ pub mod gallery_application_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18487,9 +18631,9 @@ pub mod shared_galleries { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18508,6 +18652,9 @@ pub mod shared_galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18660,9 +18807,9 @@ pub mod shared_gallery_images { &this.gallery_unique_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18681,6 +18828,9 @@ pub mod shared_gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18841,9 +18991,9 @@ pub mod shared_gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18862,6 +19012,9 @@ pub mod shared_gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19137,9 +19290,9 @@ pub mod community_gallery_images { &this.public_gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19158,6 +19311,9 @@ pub mod community_gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19311,9 +19467,9 @@ pub mod community_gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19332,6 +19488,9 @@ pub mod community_gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19687,9 +19846,9 @@ pub mod cloud_service_role_instances { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19708,6 +19867,9 @@ pub mod cloud_service_role_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20074,9 +20236,9 @@ pub mod cloud_service_roles { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20095,6 +20257,9 @@ pub mod cloud_service_roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20611,9 +20776,9 @@ pub mod cloud_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20632,6 +20797,9 @@ pub mod cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20687,9 +20855,9 @@ pub mod cloud_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20708,6 +20876,9 @@ pub mod cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21301,9 +21472,9 @@ pub mod cloud_services_update_domain { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21322,6 +21493,9 @@ pub mod cloud_services_update_domain { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21475,9 +21649,9 @@ pub mod cloud_service_operating_systems { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21496,6 +21670,9 @@ pub mod cloud_service_operating_systems { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21603,9 +21780,9 @@ pub mod cloud_service_operating_systems { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21624,6 +21801,9 @@ pub mod cloud_service_operating_systems { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/compute/src/package_2022_03_01/models.rs b/services/mgmt/compute/src/package_2022_03_01/models.rs index 188c3d06ca..07f097fabf 100644 --- a/services/mgmt/compute/src/package_2022_03_01/models.rs +++ b/services/mgmt/compute/src/package_2022_03_01/models.rs @@ -302,8 +302,8 @@ pub struct AvailabilitySetListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilitySetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilitySetListResult { @@ -585,8 +585,8 @@ pub struct CapacityReservationGroupListResult { pub next_link: Option, } impl azure_core::Continuable for CapacityReservationGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityReservationGroupListResult { @@ -664,8 +664,8 @@ pub struct CapacityReservationListResult { pub next_link: Option, } impl azure_core::Continuable for CapacityReservationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityReservationListResult { @@ -748,7 +748,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -867,8 +867,8 @@ pub struct CloudServiceListResult { pub next_link: Option, } impl azure_core::Continuable for CloudServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudServiceListResult { @@ -981,8 +981,8 @@ pub struct CloudServiceRoleListResult { pub next_link: Option, } impl azure_core::Continuable for CloudServiceRoleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudServiceRoleListResult { @@ -1337,7 +1337,7 @@ pub struct ComputeOperationListResult { pub value: Vec, } impl azure_core::Continuable for ComputeOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1749,8 +1749,8 @@ pub struct DedicatedHostGroupListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHostGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHostGroupListResult { @@ -1870,8 +1870,8 @@ pub struct DedicatedHostListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHostListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHostListResult { @@ -2231,8 +2231,8 @@ pub struct DiskAccessList { pub next_link: Option, } impl azure_core::Continuable for DiskAccessList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskAccessList { @@ -2299,8 +2299,8 @@ pub struct DiskEncryptionSetList { pub next_link: Option, } impl azure_core::Continuable for DiskEncryptionSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskEncryptionSetList { @@ -2458,8 +2458,8 @@ pub struct DiskList { pub next_link: Option, } impl azure_core::Continuable for DiskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskList { @@ -2678,8 +2678,8 @@ pub struct DiskRestorePointList { pub next_link: Option, } impl azure_core::Continuable for DiskRestorePointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskRestorePointList { @@ -3390,8 +3390,8 @@ pub struct GalleryApplicationList { pub next_link: Option, } impl azure_core::Continuable for GalleryApplicationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryApplicationList { @@ -3483,8 +3483,8 @@ pub struct GalleryApplicationVersionList { pub next_link: Option, } impl azure_core::Continuable for GalleryApplicationVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryApplicationVersionList { @@ -3870,8 +3870,8 @@ pub struct GalleryImageList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageList { @@ -4093,8 +4093,8 @@ pub struct GalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageVersionList { @@ -4194,8 +4194,8 @@ pub struct GalleryList { pub next_link: Option, } impl azure_core::Continuable for GalleryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryList { @@ -5082,8 +5082,8 @@ pub struct ImageListResult { pub next_link: Option, } impl azure_core::Continuable for ImageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImageListResult { @@ -5670,8 +5670,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -6235,8 +6235,8 @@ pub struct OsFamilyListResult { pub next_link: Option, } impl azure_core::Continuable for OsFamilyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsFamilyListResult { @@ -6329,8 +6329,8 @@ pub struct OsVersionListResult { pub next_link: Option, } impl azure_core::Continuable for OsVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsVersionListResult { @@ -6895,8 +6895,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -7118,8 +7118,8 @@ pub struct ProximityPlacementGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ProximityPlacementGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProximityPlacementGroupListResult { @@ -7925,8 +7925,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -7944,8 +7944,8 @@ pub struct ResourceUriList { pub next_link: Option, } impl azure_core::Continuable for ResourceUriList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUriList { @@ -8019,8 +8019,8 @@ pub struct RestorePointCollectionListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointCollectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorePointCollectionListResult { @@ -8379,8 +8379,8 @@ pub struct RoleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for RoleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleInstanceListResult { @@ -8669,8 +8669,8 @@ pub struct RunCommandListResult { pub next_link: Option, } impl azure_core::Continuable for RunCommandListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunCommandListResult { @@ -8856,8 +8856,8 @@ pub struct SharedGalleryImageList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryImageList { @@ -8990,8 +8990,8 @@ pub struct SharedGalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryImageVersionList { @@ -9024,8 +9024,8 @@ pub struct SharedGalleryList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryList { @@ -9324,8 +9324,8 @@ pub struct SnapshotList { pub next_link: Option, } impl azure_core::Continuable for SnapshotList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotList { @@ -9739,8 +9739,8 @@ pub struct SshPublicKeysGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SshPublicKeysGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SshPublicKeysGroupListResult { @@ -10057,8 +10057,8 @@ pub struct UpdateDomainListResult { pub next_link: Option, } impl azure_core::Continuable for UpdateDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateDomainListResult { @@ -11313,8 +11313,8 @@ pub struct VirtualMachineListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineListResult { @@ -11986,8 +11986,8 @@ pub struct VirtualMachineRunCommandsListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineRunCommandsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineRunCommandsListResult { @@ -12111,8 +12111,8 @@ pub struct VirtualMachineScaleSetExtensionListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetExtensionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetExtensionListResult { @@ -12396,8 +12396,8 @@ pub struct VirtualMachineScaleSetListOsUpgradeHistory { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListOsUpgradeHistory { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListOsUpgradeHistory { @@ -12415,8 +12415,8 @@ pub struct VirtualMachineScaleSetListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListResult { @@ -12434,8 +12434,8 @@ pub struct VirtualMachineScaleSetListSkusResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListSkusResult { @@ -12453,8 +12453,8 @@ pub struct VirtualMachineScaleSetListWithLinkResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListWithLinkResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListWithLinkResult { @@ -13691,8 +13691,8 @@ pub struct VirtualMachineScaleSetVmListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetVmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetVmListResult { @@ -13885,7 +13885,7 @@ pub struct VirtualMachineSizeListResult { pub value: Vec, } impl azure_core::Continuable for VirtualMachineSizeListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/compute/src/package_2022_03_01/operations.rs b/services/mgmt/compute/src/package_2022_03_01/operations.rs index 750ed8a309..a11df09629 100644 --- a/services/mgmt/compute/src/package_2022_03_01/operations.rs +++ b/services/mgmt/compute/src/package_2022_03_01/operations.rs @@ -308,9 +308,9 @@ pub mod usage { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -329,6 +329,9 @@ pub mod usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1167,9 +1170,9 @@ pub mod virtual_machines { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1188,6 +1191,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1772,9 +1778,9 @@ pub mod virtual_machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1793,6 +1799,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1859,9 +1868,9 @@ pub mod virtual_machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1880,6 +1889,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2997,9 +3009,9 @@ pub mod virtual_machine_scale_sets { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3018,6 +3030,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3500,9 +3515,9 @@ pub mod virtual_machine_scale_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3521,6 +3536,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3574,9 +3592,9 @@ pub mod virtual_machine_scale_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3595,6 +3613,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3652,9 +3673,9 @@ pub mod virtual_machine_scale_sets { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3673,6 +3694,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3730,9 +3754,9 @@ pub mod virtual_machine_scale_sets { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3751,6 +3775,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4817,9 +4844,9 @@ pub mod virtual_machine_scale_set_extensions { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4838,6 +4865,9 @@ pub mod virtual_machine_scale_set_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6176,9 +6206,9 @@ pub mod virtual_machine_scale_set_v_ms { &this.virtual_machine_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6197,6 +6227,9 @@ pub mod virtual_machine_scale_set_v_ms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7987,9 +8020,9 @@ pub mod availability_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8008,6 +8041,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8066,9 +8102,9 @@ pub mod availability_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8087,6 +8123,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8500,9 +8539,9 @@ pub mod proximity_placement_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8521,6 +8560,9 @@ pub mod proximity_placement_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8576,9 +8618,9 @@ pub mod proximity_placement_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8597,6 +8639,9 @@ pub mod proximity_placement_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8962,9 +9007,9 @@ pub mod dedicated_host_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8983,6 +9028,9 @@ pub mod dedicated_host_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9036,9 +9084,9 @@ pub mod dedicated_host_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9057,6 +9105,9 @@ pub mod dedicated_host_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9456,9 +9507,9 @@ pub mod dedicated_hosts { &this.host_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9477,6 +9528,9 @@ pub mod dedicated_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9674,9 +9728,9 @@ pub mod ssh_public_keys { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9695,6 +9749,9 @@ pub mod ssh_public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9750,9 +9807,9 @@ pub mod ssh_public_keys { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9771,6 +9828,9 @@ pub mod ssh_public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10425,9 +10485,9 @@ pub mod images { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10446,6 +10506,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10499,9 +10562,9 @@ pub mod images { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10520,6 +10583,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10884,9 +10950,9 @@ pub mod restore_point_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10905,6 +10971,9 @@ pub mod restore_point_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10958,9 +11027,9 @@ pub mod restore_point_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10979,6 +11048,9 @@ pub mod restore_point_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11582,9 +11654,9 @@ pub mod capacity_reservation_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11603,6 +11675,9 @@ pub mod capacity_reservation_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11664,9 +11739,9 @@ pub mod capacity_reservation_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11685,6 +11760,9 @@ pub mod capacity_reservation_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12043,9 +12121,9 @@ pub mod capacity_reservations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/capacityReservationGroups/{}/capacityReservations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . capacity_reservation_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12064,6 +12142,9 @@ pub mod capacity_reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12367,9 +12448,9 @@ pub mod virtual_machine_run_commands { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12388,6 +12469,9 @@ pub mod virtual_machine_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12745,9 +12829,9 @@ pub mod virtual_machine_run_commands { &this.vm_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12766,6 +12850,9 @@ pub mod virtual_machine_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13140,9 +13227,9 @@ pub mod virtual_machine_scale_set_vm_run_commands { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/runCommands" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vm_scale_set_name , & this . instance_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13161,6 +13248,9 @@ pub mod virtual_machine_scale_set_vm_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13241,9 +13331,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13262,6 +13352,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13668,9 +13761,9 @@ pub mod disks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13689,6 +13782,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13742,9 +13838,9 @@ pub mod disks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13763,6 +13859,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14276,9 +14375,9 @@ pub mod snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14297,6 +14396,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14350,9 +14452,9 @@ pub mod snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14371,6 +14473,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14869,9 +14974,9 @@ pub mod disk_encryption_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14890,6 +14995,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14943,9 +15051,9 @@ pub mod disk_encryption_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14964,6 +15072,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15021,9 +15132,9 @@ pub mod disk_encryption_sets { &this.disk_encryption_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15042,6 +15153,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15485,9 +15599,9 @@ pub mod disk_accesses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15506,6 +15620,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15559,9 +15676,9 @@ pub mod disk_accesses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15580,6 +15697,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15846,9 +15966,9 @@ pub mod disk_accesses { &this.disk_access_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15867,6 +15987,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16041,9 +16164,9 @@ pub mod disk_restore_point { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/restorePointCollections/{}/restorePoints/{}/diskRestorePoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . restore_point_collection_name , & this . vm_restore_point_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16062,6 +16185,9 @@ pub mod disk_restore_point { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16554,9 +16680,9 @@ pub mod galleries { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16575,6 +16701,9 @@ pub mod galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16628,9 +16757,9 @@ pub mod galleries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16649,6 +16778,9 @@ pub mod galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17030,9 +17162,9 @@ pub mod gallery_images { &this.gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17051,6 +17183,9 @@ pub mod gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17461,9 +17596,9 @@ pub mod gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17482,6 +17617,9 @@ pub mod gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17863,9 +18001,9 @@ pub mod gallery_applications { &this.gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17884,6 +18022,9 @@ pub mod gallery_applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18294,9 +18435,9 @@ pub mod gallery_application_versions { &this.gallery_application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18315,6 +18456,9 @@ pub mod gallery_application_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18487,9 +18631,9 @@ pub mod shared_galleries { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18508,6 +18652,9 @@ pub mod shared_galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18660,9 +18807,9 @@ pub mod shared_gallery_images { &this.gallery_unique_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18681,6 +18828,9 @@ pub mod shared_gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18841,9 +18991,9 @@ pub mod shared_gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18862,6 +19012,9 @@ pub mod shared_gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19501,9 +19654,9 @@ pub mod cloud_service_role_instances { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19522,6 +19675,9 @@ pub mod cloud_service_role_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19888,9 +20044,9 @@ pub mod cloud_service_roles { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19909,6 +20065,9 @@ pub mod cloud_service_roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20425,9 +20584,9 @@ pub mod cloud_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20446,6 +20605,9 @@ pub mod cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20501,9 +20663,9 @@ pub mod cloud_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20522,6 +20684,9 @@ pub mod cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21115,9 +21280,9 @@ pub mod cloud_services_update_domain { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21136,6 +21301,9 @@ pub mod cloud_services_update_domain { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21289,9 +21457,9 @@ pub mod cloud_service_operating_systems { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21310,6 +21478,9 @@ pub mod cloud_service_operating_systems { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21417,9 +21588,9 @@ pub mod cloud_service_operating_systems { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21438,6 +21609,9 @@ pub mod cloud_service_operating_systems { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/compute/src/package_2022_03_02/models.rs b/services/mgmt/compute/src/package_2022_03_02/models.rs index 9c9a6f825f..976e8d0808 100644 --- a/services/mgmt/compute/src/package_2022_03_02/models.rs +++ b/services/mgmt/compute/src/package_2022_03_02/models.rs @@ -340,8 +340,8 @@ pub struct AvailabilitySetListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilitySetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilitySetListResult { @@ -623,8 +623,8 @@ pub struct CapacityReservationGroupListResult { pub next_link: Option, } impl azure_core::Continuable for CapacityReservationGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityReservationGroupListResult { @@ -702,8 +702,8 @@ pub struct CapacityReservationListResult { pub next_link: Option, } impl azure_core::Continuable for CapacityReservationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityReservationListResult { @@ -786,7 +786,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -905,8 +905,8 @@ pub struct CloudServiceListResult { pub next_link: Option, } impl azure_core::Continuable for CloudServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudServiceListResult { @@ -1019,8 +1019,8 @@ pub struct CloudServiceRoleListResult { pub next_link: Option, } impl azure_core::Continuable for CloudServiceRoleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudServiceRoleListResult { @@ -1220,8 +1220,8 @@ pub struct CommunityGalleryImageList { pub next_link: Option, } impl azure_core::Continuable for CommunityGalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommunityGalleryImageList { @@ -1366,8 +1366,8 @@ pub struct CommunityGalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for CommunityGalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommunityGalleryImageVersionList { @@ -1431,7 +1431,7 @@ pub struct ComputeOperationListResult { pub value: Vec, } impl azure_core::Continuable for ComputeOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1896,8 +1896,8 @@ pub struct DedicatedHostGroupListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHostGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHostGroupListResult { @@ -2017,8 +2017,8 @@ pub struct DedicatedHostListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHostListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHostListResult { @@ -2378,8 +2378,8 @@ pub struct DiskAccessList { pub next_link: Option, } impl azure_core::Continuable for DiskAccessList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskAccessList { @@ -2446,8 +2446,8 @@ pub struct DiskEncryptionSetList { pub next_link: Option, } impl azure_core::Continuable for DiskEncryptionSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskEncryptionSetList { @@ -2608,8 +2608,8 @@ pub struct DiskList { pub next_link: Option, } impl azure_core::Continuable for DiskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskList { @@ -2828,8 +2828,8 @@ pub struct DiskRestorePointList { pub next_link: Option, } impl azure_core::Continuable for DiskRestorePointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskRestorePointList { @@ -3557,8 +3557,8 @@ pub struct GalleryApplicationList { pub next_link: Option, } impl azure_core::Continuable for GalleryApplicationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryApplicationList { @@ -3650,8 +3650,8 @@ pub struct GalleryApplicationVersionList { pub next_link: Option, } impl azure_core::Continuable for GalleryApplicationVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryApplicationVersionList { @@ -4032,8 +4032,8 @@ pub struct GalleryImageList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageList { @@ -4207,8 +4207,8 @@ pub struct GalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageVersionList { @@ -4295,8 +4295,8 @@ pub struct GalleryList { pub next_link: Option, } impl azure_core::Continuable for GalleryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryList { @@ -5222,8 +5222,8 @@ pub struct ImageListResult { pub next_link: Option, } impl azure_core::Continuable for ImageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImageListResult { @@ -5810,8 +5810,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -6375,8 +6375,8 @@ pub struct OsFamilyListResult { pub next_link: Option, } impl azure_core::Continuable for OsFamilyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsFamilyListResult { @@ -6469,8 +6469,8 @@ pub struct OsVersionListResult { pub next_link: Option, } impl azure_core::Continuable for OsVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsVersionListResult { @@ -7035,8 +7035,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -7258,8 +7258,8 @@ pub struct ProximityPlacementGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ProximityPlacementGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProximityPlacementGroupListResult { @@ -8065,8 +8065,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -8084,8 +8084,8 @@ pub struct ResourceUriList { pub next_link: Option, } impl azure_core::Continuable for ResourceUriList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUriList { @@ -8159,8 +8159,8 @@ pub struct RestorePointCollectionListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointCollectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorePointCollectionListResult { @@ -8519,8 +8519,8 @@ pub struct RoleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for RoleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleInstanceListResult { @@ -8809,8 +8809,8 @@ pub struct RunCommandListResult { pub next_link: Option, } impl azure_core::Continuable for RunCommandListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunCommandListResult { @@ -9069,8 +9069,8 @@ pub struct SharedGalleryImageList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryImageList { @@ -9207,8 +9207,8 @@ pub struct SharedGalleryImageVersionList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryImageVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryImageVersionList { @@ -9262,8 +9262,8 @@ pub struct SharedGalleryList { pub next_link: Option, } impl azure_core::Continuable for SharedGalleryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedGalleryList { @@ -9573,8 +9573,8 @@ pub struct SnapshotList { pub next_link: Option, } impl azure_core::Continuable for SnapshotList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotList { @@ -9992,8 +9992,8 @@ pub struct SshPublicKeysGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SshPublicKeysGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SshPublicKeysGroupListResult { @@ -10310,8 +10310,8 @@ pub struct UpdateDomainListResult { pub next_link: Option, } impl azure_core::Continuable for UpdateDomainListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateDomainListResult { @@ -11581,8 +11581,8 @@ pub struct VirtualMachineListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineListResult { @@ -12254,8 +12254,8 @@ pub struct VirtualMachineRunCommandsListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineRunCommandsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineRunCommandsListResult { @@ -12379,8 +12379,8 @@ pub struct VirtualMachineScaleSetExtensionListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetExtensionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetExtensionListResult { @@ -12664,8 +12664,8 @@ pub struct VirtualMachineScaleSetListOsUpgradeHistory { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListOsUpgradeHistory { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListOsUpgradeHistory { @@ -12683,8 +12683,8 @@ pub struct VirtualMachineScaleSetListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListResult { @@ -12702,8 +12702,8 @@ pub struct VirtualMachineScaleSetListSkusResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListSkusResult { @@ -12721,8 +12721,8 @@ pub struct VirtualMachineScaleSetListWithLinkResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetListWithLinkResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetListWithLinkResult { @@ -13959,8 +13959,8 @@ pub struct VirtualMachineScaleSetVmListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineScaleSetVmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineScaleSetVmListResult { @@ -14153,7 +14153,7 @@ pub struct VirtualMachineSizeListResult { pub value: Vec, } impl azure_core::Continuable for VirtualMachineSizeListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/compute/src/package_2022_03_02/operations.rs b/services/mgmt/compute/src/package_2022_03_02/operations.rs index 8f8279702c..99df9be3b2 100644 --- a/services/mgmt/compute/src/package_2022_03_02/operations.rs +++ b/services/mgmt/compute/src/package_2022_03_02/operations.rs @@ -308,9 +308,9 @@ pub mod usage { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -329,6 +329,9 @@ pub mod usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1167,9 +1170,9 @@ pub mod virtual_machines { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1188,6 +1191,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1772,9 +1778,9 @@ pub mod virtual_machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1793,6 +1799,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1859,9 +1868,9 @@ pub mod virtual_machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1880,6 +1889,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2997,9 +3009,9 @@ pub mod virtual_machine_scale_sets { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3018,6 +3030,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3500,9 +3515,9 @@ pub mod virtual_machine_scale_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3521,6 +3536,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3574,9 +3592,9 @@ pub mod virtual_machine_scale_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3595,6 +3613,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3652,9 +3673,9 @@ pub mod virtual_machine_scale_sets { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3673,6 +3694,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3730,9 +3754,9 @@ pub mod virtual_machine_scale_sets { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3751,6 +3775,9 @@ pub mod virtual_machine_scale_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4817,9 +4844,9 @@ pub mod virtual_machine_scale_set_extensions { &this.vm_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4838,6 +4865,9 @@ pub mod virtual_machine_scale_set_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6176,9 +6206,9 @@ pub mod virtual_machine_scale_set_v_ms { &this.virtual_machine_scale_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6197,6 +6227,9 @@ pub mod virtual_machine_scale_set_v_ms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7987,9 +8020,9 @@ pub mod availability_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8008,6 +8041,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8066,9 +8102,9 @@ pub mod availability_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8087,6 +8123,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8500,9 +8539,9 @@ pub mod proximity_placement_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8521,6 +8560,9 @@ pub mod proximity_placement_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8576,9 +8618,9 @@ pub mod proximity_placement_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8597,6 +8639,9 @@ pub mod proximity_placement_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8962,9 +9007,9 @@ pub mod dedicated_host_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8983,6 +9028,9 @@ pub mod dedicated_host_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9036,9 +9084,9 @@ pub mod dedicated_host_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9057,6 +9105,9 @@ pub mod dedicated_host_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9456,9 +9507,9 @@ pub mod dedicated_hosts { &this.host_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9477,6 +9528,9 @@ pub mod dedicated_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9674,9 +9728,9 @@ pub mod ssh_public_keys { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9695,6 +9749,9 @@ pub mod ssh_public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9750,9 +9807,9 @@ pub mod ssh_public_keys { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9771,6 +9828,9 @@ pub mod ssh_public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10425,9 +10485,9 @@ pub mod images { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10446,6 +10506,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10499,9 +10562,9 @@ pub mod images { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10520,6 +10583,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10884,9 +10950,9 @@ pub mod restore_point_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10905,6 +10971,9 @@ pub mod restore_point_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10958,9 +11027,9 @@ pub mod restore_point_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10979,6 +11048,9 @@ pub mod restore_point_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11582,9 +11654,9 @@ pub mod capacity_reservation_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11603,6 +11675,9 @@ pub mod capacity_reservation_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11664,9 +11739,9 @@ pub mod capacity_reservation_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11685,6 +11760,9 @@ pub mod capacity_reservation_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12043,9 +12121,9 @@ pub mod capacity_reservations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/capacityReservationGroups/{}/capacityReservations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . capacity_reservation_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12064,6 +12142,9 @@ pub mod capacity_reservations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12367,9 +12448,9 @@ pub mod virtual_machine_run_commands { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12388,6 +12469,9 @@ pub mod virtual_machine_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12745,9 +12829,9 @@ pub mod virtual_machine_run_commands { &this.vm_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12766,6 +12850,9 @@ pub mod virtual_machine_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13140,9 +13227,9 @@ pub mod virtual_machine_scale_set_vm_run_commands { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/runCommands" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vm_scale_set_name , & this . instance_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13161,6 +13248,9 @@ pub mod virtual_machine_scale_set_vm_run_commands { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13562,9 +13652,9 @@ pub mod disks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13583,6 +13673,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13636,9 +13729,9 @@ pub mod disks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13657,6 +13750,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14215,9 +14311,9 @@ pub mod disk_accesses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14236,6 +14332,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14289,9 +14388,9 @@ pub mod disk_accesses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14310,6 +14409,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14576,9 +14678,9 @@ pub mod disk_accesses { &this.disk_access_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14597,6 +14699,9 @@ pub mod disk_accesses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14980,9 +15085,9 @@ pub mod disk_encryption_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15001,6 +15106,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15054,9 +15162,9 @@ pub mod disk_encryption_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15075,6 +15183,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15132,9 +15243,9 @@ pub mod disk_encryption_sets { &this.disk_encryption_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15153,6 +15264,9 @@ pub mod disk_encryption_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15327,9 +15441,9 @@ pub mod disk_restore_point { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/restorePointCollections/{}/restorePoints/{}/diskRestorePoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . restore_point_collection_name , & this . vm_restore_point_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15348,6 +15462,9 @@ pub mod disk_restore_point { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15853,9 +15970,9 @@ pub mod snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15874,6 +15991,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15927,9 +16047,9 @@ pub mod snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15948,6 +16068,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16140,9 +16263,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16161,6 +16284,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16554,9 +16680,9 @@ pub mod galleries { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16575,6 +16701,9 @@ pub mod galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16628,9 +16757,9 @@ pub mod galleries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16649,6 +16778,9 @@ pub mod galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17030,9 +17162,9 @@ pub mod gallery_images { &this.gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17051,6 +17183,9 @@ pub mod gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17461,9 +17596,9 @@ pub mod gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17482,6 +17617,9 @@ pub mod gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17863,9 +18001,9 @@ pub mod gallery_applications { &this.gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17884,6 +18022,9 @@ pub mod gallery_applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18294,9 +18435,9 @@ pub mod gallery_application_versions { &this.gallery_application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18315,6 +18456,9 @@ pub mod gallery_application_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18487,9 +18631,9 @@ pub mod shared_galleries { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18508,6 +18652,9 @@ pub mod shared_galleries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18660,9 +18807,9 @@ pub mod shared_gallery_images { &this.gallery_unique_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18681,6 +18828,9 @@ pub mod shared_gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18841,9 +18991,9 @@ pub mod shared_gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18862,6 +19012,9 @@ pub mod shared_gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19137,9 +19290,9 @@ pub mod community_gallery_images { &this.public_gallery_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19158,6 +19311,9 @@ pub mod community_gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19311,9 +19467,9 @@ pub mod community_gallery_image_versions { &this.gallery_image_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19332,6 +19488,9 @@ pub mod community_gallery_image_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19687,9 +19846,9 @@ pub mod cloud_service_role_instances { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19708,6 +19867,9 @@ pub mod cloud_service_role_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20074,9 +20236,9 @@ pub mod cloud_service_roles { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20095,6 +20257,9 @@ pub mod cloud_service_roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20611,9 +20776,9 @@ pub mod cloud_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20632,6 +20797,9 @@ pub mod cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20687,9 +20855,9 @@ pub mod cloud_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20708,6 +20876,9 @@ pub mod cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21301,9 +21472,9 @@ pub mod cloud_services_update_domain { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21322,6 +21493,9 @@ pub mod cloud_services_update_domain { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21475,9 +21649,9 @@ pub mod cloud_service_operating_systems { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21496,6 +21670,9 @@ pub mod cloud_service_operating_systems { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21603,9 +21780,9 @@ pub mod cloud_service_operating_systems { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21624,6 +21801,9 @@ pub mod cloud_service_operating_systems { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/confidentialledger/src/package_2020_12_01_preview/models.rs b/services/mgmt/confidentialledger/src/package_2020_12_01_preview/models.rs index ea19014de5..5346691b3b 100644 --- a/services/mgmt/confidentialledger/src/package_2020_12_01_preview/models.rs +++ b/services/mgmt/confidentialledger/src/package_2020_12_01_preview/models.rs @@ -66,8 +66,8 @@ pub struct ConfidentialLedgerList { pub next_link: Option, } impl azure_core::Continuable for ConfidentialLedgerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfidentialLedgerList { @@ -161,7 +161,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -375,8 +375,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/confidentialledger/src/package_2020_12_01_preview/operations.rs b/services/mgmt/confidentialledger/src/package_2020_12_01_preview/operations.rs index 036188f7a1..0875a7852d 100644 --- a/services/mgmt/confidentialledger/src/package_2020_12_01_preview/operations.rs +++ b/services/mgmt/confidentialledger/src/package_2020_12_01_preview/operations.rs @@ -107,9 +107,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -503,9 +506,9 @@ pub mod ledger { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -524,6 +527,9 @@ pub mod ledger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -585,9 +591,9 @@ pub mod ledger { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -606,6 +612,9 @@ pub mod ledger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/confidentialledger/src/package_2021_05_13_preview/models.rs b/services/mgmt/confidentialledger/src/package_2021_05_13_preview/models.rs index 1f98b5bfa4..c463890f2f 100644 --- a/services/mgmt/confidentialledger/src/package_2021_05_13_preview/models.rs +++ b/services/mgmt/confidentialledger/src/package_2021_05_13_preview/models.rs @@ -139,8 +139,8 @@ pub struct ConfidentialLedgerList { pub next_link: Option, } impl azure_core::Continuable for ConfidentialLedgerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfidentialLedgerList { @@ -234,7 +234,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -445,8 +445,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/confidentialledger/src/package_2021_05_13_preview/operations.rs b/services/mgmt/confidentialledger/src/package_2021_05_13_preview/operations.rs index 5fae942722..a607958a43 100644 --- a/services/mgmt/confidentialledger/src/package_2021_05_13_preview/operations.rs +++ b/services/mgmt/confidentialledger/src/package_2021_05_13_preview/operations.rs @@ -107,9 +107,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -566,9 +569,9 @@ pub mod ledger { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -587,6 +590,9 @@ pub mod ledger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -648,9 +654,9 @@ pub mod ledger { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -669,6 +675,9 @@ pub mod ledger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/confidentialledger/src/package_2022_05_13/models.rs b/services/mgmt/confidentialledger/src/package_2022_05_13/models.rs index 1f98b5bfa4..c463890f2f 100644 --- a/services/mgmt/confidentialledger/src/package_2022_05_13/models.rs +++ b/services/mgmt/confidentialledger/src/package_2022_05_13/models.rs @@ -139,8 +139,8 @@ pub struct ConfidentialLedgerList { pub next_link: Option, } impl azure_core::Continuable for ConfidentialLedgerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfidentialLedgerList { @@ -234,7 +234,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -445,8 +445,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/confidentialledger/src/package_2022_05_13/operations.rs b/services/mgmt/confidentialledger/src/package_2022_05_13/operations.rs index f132a87d68..2c9fadef39 100644 --- a/services/mgmt/confidentialledger/src/package_2022_05_13/operations.rs +++ b/services/mgmt/confidentialledger/src/package_2022_05_13/operations.rs @@ -107,9 +107,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -566,9 +569,9 @@ pub mod ledger { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -587,6 +590,9 @@ pub mod ledger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -648,9 +654,9 @@ pub mod ledger { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -669,6 +675,9 @@ pub mod ledger { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/confluent/src/package_2020_03_01/models.rs b/services/mgmt/confluent/src/package_2020_03_01/models.rs index 629f404011..028051af9e 100644 --- a/services/mgmt/confluent/src/package_2020_03_01/models.rs +++ b/services/mgmt/confluent/src/package_2020_03_01/models.rs @@ -69,8 +69,8 @@ pub struct ConfluentAgreementResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for ConfluentAgreementResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfluentAgreementResourceListResponse { @@ -158,8 +158,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -223,8 +223,8 @@ pub struct OrganizationResourceListResult { pub next_link: Option, } impl azure_core::Continuable for OrganizationResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrganizationResourceListResult { @@ -330,7 +330,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/confluent/src/package_2020_03_01/operations.rs b/services/mgmt/confluent/src/package_2020_03_01/operations.rs index a07c32797d..bc6c8000d1 100644 --- a/services/mgmt/confluent/src/package_2020_03_01/operations.rs +++ b/services/mgmt/confluent/src/package_2020_03_01/operations.rs @@ -123,9 +123,9 @@ pub mod marketplace_agreements { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -144,6 +144,9 @@ pub mod marketplace_agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -261,9 +264,9 @@ pub mod organization_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Confluent/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -282,6 +285,9 @@ pub mod organization_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -418,9 +424,9 @@ pub mod organization { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -439,6 +445,9 @@ pub mod organization { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -494,9 +503,9 @@ pub mod organization { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -515,6 +524,9 @@ pub mod organization { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/confluent/src/package_2020_03_01_preview/models.rs b/services/mgmt/confluent/src/package_2020_03_01_preview/models.rs index 2fa0d55e3f..8c287d04a6 100644 --- a/services/mgmt/confluent/src/package_2020_03_01_preview/models.rs +++ b/services/mgmt/confluent/src/package_2020_03_01_preview/models.rs @@ -69,8 +69,8 @@ pub struct ConfluentAgreementResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for ConfluentAgreementResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfluentAgreementResourceListResponse { @@ -158,8 +158,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -223,8 +223,8 @@ pub struct OrganizationResourceListResult { pub next_link: Option, } impl azure_core::Continuable for OrganizationResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrganizationResourceListResult { @@ -330,7 +330,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/confluent/src/package_2020_03_01_preview/operations.rs b/services/mgmt/confluent/src/package_2020_03_01_preview/operations.rs index 6740f15473..bc93921575 100644 --- a/services/mgmt/confluent/src/package_2020_03_01_preview/operations.rs +++ b/services/mgmt/confluent/src/package_2020_03_01_preview/operations.rs @@ -123,9 +123,9 @@ pub mod marketplace_agreements { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -144,6 +144,9 @@ pub mod marketplace_agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -261,9 +264,9 @@ pub mod organization_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Confluent/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -282,6 +285,9 @@ pub mod organization_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -418,9 +424,9 @@ pub mod organization { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -439,6 +445,9 @@ pub mod organization { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -494,9 +503,9 @@ pub mod organization { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -515,6 +524,9 @@ pub mod organization { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/confluent/src/package_2021_03_01_preview/models.rs b/services/mgmt/confluent/src/package_2021_03_01_preview/models.rs index bdb11a2bfc..bb2f6f22ae 100644 --- a/services/mgmt/confluent/src/package_2021_03_01_preview/models.rs +++ b/services/mgmt/confluent/src/package_2021_03_01_preview/models.rs @@ -72,8 +72,8 @@ pub struct ConfluentAgreementResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for ConfluentAgreementResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfluentAgreementResourceListResponse { @@ -167,8 +167,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -242,8 +242,8 @@ pub struct OrganizationResourceListResult { pub next_link: Option, } impl azure_core::Continuable for OrganizationResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrganizationResourceListResult { @@ -356,7 +356,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/confluent/src/package_2021_03_01_preview/operations.rs b/services/mgmt/confluent/src/package_2021_03_01_preview/operations.rs index f128e3bbc8..4ae1aa143d 100644 --- a/services/mgmt/confluent/src/package_2021_03_01_preview/operations.rs +++ b/services/mgmt/confluent/src/package_2021_03_01_preview/operations.rs @@ -126,9 +126,9 @@ pub mod marketplace_agreements { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -147,6 +147,9 @@ pub mod marketplace_agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -264,9 +267,9 @@ pub mod organization_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Confluent/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -285,6 +288,9 @@ pub mod organization_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -421,9 +427,9 @@ pub mod organization { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -442,6 +448,9 @@ pub mod organization { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -497,9 +506,9 @@ pub mod organization { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -518,6 +527,9 @@ pub mod organization { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/confluent/src/package_2021_12_01/models.rs b/services/mgmt/confluent/src/package_2021_12_01/models.rs index bdb11a2bfc..bb2f6f22ae 100644 --- a/services/mgmt/confluent/src/package_2021_12_01/models.rs +++ b/services/mgmt/confluent/src/package_2021_12_01/models.rs @@ -72,8 +72,8 @@ pub struct ConfluentAgreementResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for ConfluentAgreementResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfluentAgreementResourceListResponse { @@ -167,8 +167,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -242,8 +242,8 @@ pub struct OrganizationResourceListResult { pub next_link: Option, } impl azure_core::Continuable for OrganizationResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrganizationResourceListResult { @@ -356,7 +356,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/confluent/src/package_2021_12_01/operations.rs b/services/mgmt/confluent/src/package_2021_12_01/operations.rs index c11fc88d29..af14994f4d 100644 --- a/services/mgmt/confluent/src/package_2021_12_01/operations.rs +++ b/services/mgmt/confluent/src/package_2021_12_01/operations.rs @@ -126,9 +126,9 @@ pub mod marketplace_agreements { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -147,6 +147,9 @@ pub mod marketplace_agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -264,9 +267,9 @@ pub mod organization_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Confluent/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -285,6 +288,9 @@ pub mod organization_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -421,9 +427,9 @@ pub mod organization { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -442,6 +448,9 @@ pub mod organization { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -497,9 +506,9 @@ pub mod organization { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -518,6 +527,9 @@ pub mod organization { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/confluent/src/package_preview_2021_09/models.rs b/services/mgmt/confluent/src/package_preview_2021_09/models.rs index bdb11a2bfc..bb2f6f22ae 100644 --- a/services/mgmt/confluent/src/package_preview_2021_09/models.rs +++ b/services/mgmt/confluent/src/package_preview_2021_09/models.rs @@ -72,8 +72,8 @@ pub struct ConfluentAgreementResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for ConfluentAgreementResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfluentAgreementResourceListResponse { @@ -167,8 +167,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -242,8 +242,8 @@ pub struct OrganizationResourceListResult { pub next_link: Option, } impl azure_core::Continuable for OrganizationResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrganizationResourceListResult { @@ -356,7 +356,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/confluent/src/package_preview_2021_09/operations.rs b/services/mgmt/confluent/src/package_preview_2021_09/operations.rs index 99a57b47b1..6721ea4fd1 100644 --- a/services/mgmt/confluent/src/package_preview_2021_09/operations.rs +++ b/services/mgmt/confluent/src/package_preview_2021_09/operations.rs @@ -126,9 +126,9 @@ pub mod marketplace_agreements { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -147,6 +147,9 @@ pub mod marketplace_agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -264,9 +267,9 @@ pub mod organization_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Confluent/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -285,6 +288,9 @@ pub mod organization_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -421,9 +427,9 @@ pub mod organization { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -442,6 +448,9 @@ pub mod organization { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -497,9 +506,9 @@ pub mod organization { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -518,6 +527,9 @@ pub mod organization { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs b/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs index da90357ab5..330c715f5e 100644 --- a/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs @@ -108,8 +108,8 @@ pub struct ClustersList { pub value: Vec, } impl azure_core::Continuable for ClustersList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClustersList { @@ -246,8 +246,8 @@ pub struct DatastoresList { pub value: Vec, } impl azure_core::Continuable for DatastoresList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatastoresList { @@ -400,7 +400,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -493,8 +493,8 @@ pub struct GuestAgentList { pub value: Vec, } impl azure_core::Continuable for GuestAgentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GuestAgentList { @@ -747,8 +747,8 @@ pub struct HostsList { pub value: Vec, } impl azure_core::Continuable for HostsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostsList { @@ -798,8 +798,8 @@ pub struct HybridIdentityMetadataList { pub value: Vec, } impl azure_core::Continuable for HybridIdentityMetadataList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridIdentityMetadataList { @@ -1020,8 +1020,8 @@ pub struct InventoryItemsList { pub value: Vec, } impl azure_core::Continuable for InventoryItemsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InventoryItemsList { @@ -1287,8 +1287,8 @@ pub struct MachineExtensionsListResult { pub next_link: Option, } impl azure_core::Continuable for MachineExtensionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineExtensionsListResult { @@ -1825,8 +1825,8 @@ pub struct ResourcePoolsList { pub value: Vec, } impl azure_core::Continuable for ResourcePoolsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourcePoolsList { @@ -2097,8 +2097,8 @@ pub struct VCentersList { pub value: Vec, } impl azure_core::Continuable for VCentersList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VCentersList { @@ -2534,8 +2534,8 @@ pub struct VirtualMachineTemplatesList { pub value: Vec, } impl azure_core::Continuable for VirtualMachineTemplatesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineTemplatesList { @@ -2589,8 +2589,8 @@ pub struct VirtualMachinesList { pub value: Vec, } impl azure_core::Continuable for VirtualMachinesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachinesList { @@ -2696,8 +2696,8 @@ pub struct VirtualNetworksList { pub value: Vec, } impl azure_core::Continuable for VirtualNetworksList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworksList { @@ -2823,8 +2823,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { diff --git a/services/mgmt/connectedvmware/src/package_2020_10_01_preview/operations.rs b/services/mgmt/connectedvmware/src/package_2020_10_01_preview/operations.rs index db3683c26d..027dbf272e 100644 --- a/services/mgmt/connectedvmware/src/package_2020_10_01_preview/operations.rs +++ b/services/mgmt/connectedvmware/src/package_2020_10_01_preview/operations.rs @@ -139,9 +139,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -160,6 +160,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -547,9 +550,9 @@ pub mod resource_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -568,6 +571,9 @@ pub mod resource_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -623,9 +629,9 @@ pub mod resource_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -644,6 +650,9 @@ pub mod resource_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1031,9 +1040,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1052,6 +1061,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1107,9 +1119,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1128,6 +1140,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1515,9 +1530,9 @@ pub mod hosts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1536,6 +1551,9 @@ pub mod hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1591,9 +1609,9 @@ pub mod hosts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1612,6 +1630,9 @@ pub mod hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1999,9 +2020,9 @@ pub mod datastores { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2020,6 +2041,9 @@ pub mod datastores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2075,9 +2099,9 @@ pub mod datastores { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2096,6 +2120,9 @@ pub mod datastores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2483,9 +2510,9 @@ pub mod v_centers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2504,6 +2531,9 @@ pub mod v_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2559,9 +2589,9 @@ pub mod v_centers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2580,6 +2610,9 @@ pub mod v_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3196,9 +3229,9 @@ pub mod virtual_machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3217,6 +3250,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3272,9 +3308,9 @@ pub mod virtual_machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3293,6 +3329,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3680,9 +3719,9 @@ pub mod virtual_machine_templates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3701,6 +3740,9 @@ pub mod virtual_machine_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3756,9 +3798,9 @@ pub mod virtual_machine_templates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3777,6 +3819,9 @@ pub mod virtual_machine_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4164,9 +4209,9 @@ pub mod virtual_networks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4185,6 +4230,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4240,9 +4288,9 @@ pub mod virtual_networks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4261,6 +4309,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4539,9 +4590,9 @@ pub mod inventory_items { &this.vcenter_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4560,6 +4611,9 @@ pub mod inventory_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4832,9 +4886,9 @@ pub mod hybrid_identity_metadata { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{}/hybridIdentityMetadata" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4853,6 +4907,9 @@ pub mod hybrid_identity_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5209,9 +5266,9 @@ pub mod machine_extensions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{}/extensions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5230,6 +5287,9 @@ pub mod machine_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5518,9 +5578,9 @@ pub mod guest_agents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{}/guestAgents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5539,6 +5599,9 @@ pub mod guest_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/consumption/src/package_2019_10/models.rs b/services/mgmt/consumption/src/package_2019_10/models.rs index ea3f4b798e..ab9a442168 100644 --- a/services/mgmt/consumption/src/package_2019_10/models.rs +++ b/services/mgmt/consumption/src/package_2019_10/models.rs @@ -391,8 +391,8 @@ pub struct BudgetsListResult { pub next_link: Option, } impl azure_core::Continuable for BudgetsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BudgetsListResult { @@ -588,7 +588,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -732,8 +732,8 @@ pub struct Events { pub next_link: Option, } impl azure_core::Continuable for Events { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Events { @@ -884,7 +884,7 @@ pub struct ForecastsListResult { pub value: Vec, } impl azure_core::Continuable for ForecastsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1376,8 +1376,8 @@ pub struct Lots { pub next_link: Option, } impl azure_core::Continuable for Lots { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Lots { @@ -1550,8 +1550,8 @@ pub struct MarketplacesListResult { pub next_link: Option, } impl azure_core::Continuable for MarketplacesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MarketplacesListResult { @@ -1852,8 +1852,8 @@ pub struct ModernReservationTransactionsListResult { pub next_link: Option, } impl azure_core::Continuable for ModernReservationTransactionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModernReservationTransactionsListResult { @@ -2351,8 +2351,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2531,8 +2531,8 @@ pub struct ReservationDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationDetailsListResult { @@ -2773,8 +2773,8 @@ pub struct ReservationRecommendationsListResult { pub total_cost: Option, } impl azure_core::Continuable for ReservationRecommendationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationRecommendationsListResult { @@ -2793,8 +2793,8 @@ pub struct ReservationSummariesListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationSummariesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationSummariesListResult { @@ -2916,8 +2916,8 @@ pub struct ReservationTransactionsListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationTransactionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationTransactionsListResult { @@ -3095,8 +3095,8 @@ pub struct UsageDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for UsageDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageDetailsListResult { diff --git a/services/mgmt/consumption/src/package_2019_10/operations.rs b/services/mgmt/consumption/src/package_2019_10/operations.rs index 5bd63e89d2..45299e02f7 100644 --- a/services/mgmt/consumption/src/package_2019_10/operations.rs +++ b/services/mgmt/consumption/src/package_2019_10/operations.rs @@ -189,9 +189,9 @@ pub mod usage_details { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -210,6 +210,9 @@ pub mod usage_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -308,9 +311,9 @@ pub mod marketplaces { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -329,6 +332,9 @@ pub mod marketplaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -430,9 +436,9 @@ pub mod budgets { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -451,6 +457,9 @@ pub mod budgets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -993,9 +1002,9 @@ pub mod reservations_summaries { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1014,6 +1023,9 @@ pub mod reservations_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1075,9 +1087,9 @@ pub mod reservations_summaries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Capacity/reservationorders/{}/reservations/{}/providers/Microsoft.Consumption/reservationSummaries" , this . client . endpoint () , & this . reservation_order_id , & this . reservation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1096,6 +1108,9 @@ pub mod reservations_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1180,9 +1195,9 @@ pub mod reservations_summaries { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1201,6 +1216,9 @@ pub mod reservations_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1315,9 +1333,9 @@ pub mod reservations_details { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1336,6 +1354,9 @@ pub mod reservations_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1389,9 +1410,9 @@ pub mod reservations_details { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Capacity/reservationorders/{}/reservations/{}/providers/Microsoft.Consumption/reservationDetails" , this . client . endpoint () , & this . reservation_order_id , & this . reservation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1410,6 +1431,9 @@ pub mod reservations_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1490,9 +1514,9 @@ pub mod reservations_details { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1511,6 +1535,9 @@ pub mod reservations_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1583,7 +1610,7 @@ pub mod reservation_recommendations { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, @@ -1611,9 +1638,9 @@ pub mod reservation_recommendations { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1632,6 +1659,9 @@ pub mod reservation_recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1812,9 +1842,9 @@ pub mod reservation_transactions { &this.billing_account_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1833,6 +1863,9 @@ pub mod reservation_transactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1891,9 +1924,9 @@ pub mod reservation_transactions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/providers/Microsoft.Consumption/reservationTransactions" , this . client . endpoint () , & this . billing_account_id , & this . billing_profile_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1912,6 +1945,9 @@ pub mod reservation_transactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2213,9 +2249,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Consumption/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2234,6 +2270,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2428,9 +2467,9 @@ pub mod events { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2449,6 +2488,9 @@ pub mod events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2518,9 +2560,9 @@ pub mod lots { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2539,6 +2581,9 @@ pub mod lots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/consumption/src/package_2021_10/models.rs b/services/mgmt/consumption/src/package_2021_10/models.rs index 8c8de86e79..0ca0ae7777 100644 --- a/services/mgmt/consumption/src/package_2021_10/models.rs +++ b/services/mgmt/consumption/src/package_2021_10/models.rs @@ -388,8 +388,8 @@ pub struct BudgetsListResult { pub next_link: Option, } impl azure_core::Continuable for BudgetsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BudgetsListResult { @@ -585,7 +585,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -749,8 +749,8 @@ pub struct Events { pub next_link: Option, } impl azure_core::Continuable for Events { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Events { @@ -1421,8 +1421,8 @@ pub struct Lots { pub next_link: Option, } impl azure_core::Continuable for Lots { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Lots { @@ -1595,8 +1595,8 @@ pub struct MarketplacesListResult { pub next_link: Option, } impl azure_core::Continuable for MarketplacesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MarketplacesListResult { @@ -1891,8 +1891,8 @@ pub struct ModernReservationTransactionsListResult { pub next_link: Option, } impl azure_core::Continuable for ModernReservationTransactionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModernReservationTransactionsListResult { @@ -2453,8 +2453,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2633,8 +2633,8 @@ pub struct ReservationDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationDetailsListResult { @@ -2872,8 +2872,8 @@ pub struct ReservationRecommendationsListResult { pub previous_link: Option, } impl azure_core::Continuable for ReservationRecommendationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationRecommendationsListResult { @@ -2892,8 +2892,8 @@ pub struct ReservationSummariesListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationSummariesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationSummariesListResult { @@ -3015,8 +3015,8 @@ pub struct ReservationTransactionsListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationTransactionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationTransactionsListResult { @@ -3194,8 +3194,8 @@ pub struct UsageDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for UsageDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageDetailsListResult { diff --git a/services/mgmt/consumption/src/package_2021_10/operations.rs b/services/mgmt/consumption/src/package_2021_10/operations.rs index 7223533e14..6a79e9580b 100644 --- a/services/mgmt/consumption/src/package_2021_10/operations.rs +++ b/services/mgmt/consumption/src/package_2021_10/operations.rs @@ -150,7 +150,7 @@ pub mod usage_details { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, @@ -198,9 +198,9 @@ pub mod usage_details { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -219,6 +219,9 @@ pub mod usage_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -318,9 +321,9 @@ pub mod marketplaces { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -339,6 +342,9 @@ pub mod marketplaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -440,9 +446,9 @@ pub mod budgets { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -461,6 +467,9 @@ pub mod budgets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1003,9 +1012,9 @@ pub mod reservations_summaries { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1024,6 +1033,9 @@ pub mod reservations_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1085,9 +1097,9 @@ pub mod reservations_summaries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Capacity/reservationorders/{}/reservations/{}/providers/Microsoft.Consumption/reservationSummaries" , this . client . endpoint () , & this . reservation_order_id , & this . reservation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1106,6 +1118,9 @@ pub mod reservations_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1190,9 +1205,9 @@ pub mod reservations_summaries { &this.resource_scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1211,6 +1226,9 @@ pub mod reservations_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1325,9 +1343,9 @@ pub mod reservations_details { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1346,6 +1364,9 @@ pub mod reservations_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1399,9 +1420,9 @@ pub mod reservations_details { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Capacity/reservationorders/{}/reservations/{}/providers/Microsoft.Consumption/reservationDetails" , this . client . endpoint () , & this . reservation_order_id , & this . reservation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1420,6 +1441,9 @@ pub mod reservations_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1500,9 +1524,9 @@ pub mod reservations_details { &this.resource_scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1521,6 +1545,9 @@ pub mod reservations_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1593,7 +1620,7 @@ pub mod reservation_recommendations { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, @@ -1621,9 +1648,9 @@ pub mod reservation_recommendations { &this.resource_scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1642,6 +1669,9 @@ pub mod reservation_recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1822,9 +1852,9 @@ pub mod reservation_transactions { &this.billing_account_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1843,6 +1873,9 @@ pub mod reservation_transactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1901,9 +1934,9 @@ pub mod reservation_transactions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/providers/Microsoft.Consumption/reservationTransactions" , this . client . endpoint () , & this . billing_account_id , & this . billing_profile_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1922,6 +1955,9 @@ pub mod reservation_transactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2153,9 +2189,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Consumption/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2174,6 +2210,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2384,9 +2423,9 @@ pub mod events { &this.billing_profile_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2405,6 +2444,9 @@ pub mod events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2467,9 +2509,9 @@ pub mod events { &this.billing_account_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2488,6 +2530,9 @@ pub mod events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2578,9 +2623,9 @@ pub mod lots { &this.billing_profile_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2599,6 +2644,9 @@ pub mod lots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2657,9 +2705,9 @@ pub mod lots { &this.billing_account_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2678,6 +2726,9 @@ pub mod lots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2741,9 +2792,9 @@ pub mod lots { &this.customer_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2762,6 +2813,9 @@ pub mod lots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/consumption/src/package_preview_2018_11/models.rs b/services/mgmt/consumption/src/package_preview_2018_11/models.rs index 18d15b673f..dd546aa23d 100644 --- a/services/mgmt/consumption/src/package_preview_2018_11/models.rs +++ b/services/mgmt/consumption/src/package_preview_2018_11/models.rs @@ -499,7 +499,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -781,8 +781,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/consumption/src/package_preview_2018_11/operations.rs b/services/mgmt/consumption/src/package_preview_2018_11/operations.rs index 11fb51de74..9f99c7848f 100644 --- a/services/mgmt/consumption/src/package_preview_2018_11/operations.rs +++ b/services/mgmt/consumption/src/package_preview_2018_11/operations.rs @@ -125,9 +125,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Consumption/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -146,6 +146,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/consumption/src/package_preview_2019_04/models.rs b/services/mgmt/consumption/src/package_preview_2019_04/models.rs index 74c20f74fa..5960dee96f 100644 --- a/services/mgmt/consumption/src/package_preview_2019_04/models.rs +++ b/services/mgmt/consumption/src/package_preview_2019_04/models.rs @@ -277,8 +277,8 @@ pub struct BudgetsListResult { pub next_link: Option, } impl azure_core::Continuable for BudgetsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BudgetsListResult { @@ -395,7 +395,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -553,7 +553,7 @@ pub struct ForecastsListResult { pub value: Vec, } impl azure_core::Continuable for ForecastsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -724,8 +724,8 @@ pub struct MarketplacesListResult { pub next_link: Option, } impl azure_core::Continuable for MarketplacesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MarketplacesListResult { @@ -913,8 +913,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1066,8 +1066,8 @@ pub struct ReservationDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationDetailsListResult { @@ -1138,8 +1138,8 @@ pub struct ReservationRecommendationsListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationRecommendationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationRecommendationsListResult { @@ -1158,8 +1158,8 @@ pub struct ReservationSummariesListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationSummariesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationSummariesListResult { @@ -1465,8 +1465,8 @@ pub struct UsageDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for UsageDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageDetailsListResult { diff --git a/services/mgmt/consumption/src/package_preview_2019_04/operations.rs b/services/mgmt/consumption/src/package_preview_2019_04/operations.rs index 9e256bcff5..3336156c41 100644 --- a/services/mgmt/consumption/src/package_preview_2019_04/operations.rs +++ b/services/mgmt/consumption/src/package_preview_2019_04/operations.rs @@ -181,9 +181,9 @@ pub mod usage_details { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -202,6 +202,9 @@ pub mod usage_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -363,9 +366,9 @@ pub mod marketplaces { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -384,6 +387,9 @@ pub mod marketplaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -485,9 +491,9 @@ pub mod budgets { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -506,6 +512,9 @@ pub mod budgets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -999,9 +1008,9 @@ pub mod reservations_summaries { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1020,6 +1029,9 @@ pub mod reservations_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1081,9 +1093,9 @@ pub mod reservations_summaries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Capacity/reservationorders/{}/reservations/{}/providers/Microsoft.Consumption/reservationSummaries" , this . client . endpoint () , & this . reservation_order_id , & this . reservation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1102,6 +1114,9 @@ pub mod reservations_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1191,9 +1206,9 @@ pub mod reservations_details { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1212,6 +1227,9 @@ pub mod reservations_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1265,9 +1283,9 @@ pub mod reservations_details { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Capacity/reservationorders/{}/reservations/{}/providers/Microsoft.Consumption/reservationDetails" , this . client . endpoint () , & this . reservation_order_id , & this . reservation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1286,6 +1304,9 @@ pub mod reservations_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1359,9 +1380,9 @@ pub mod reservation_recommendations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1380,6 +1401,9 @@ pub mod reservation_recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1681,9 +1705,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Consumption/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1702,6 +1726,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/consumption/src/package_preview_2019_05/models.rs b/services/mgmt/consumption/src/package_preview_2019_05/models.rs index 74c20f74fa..5960dee96f 100644 --- a/services/mgmt/consumption/src/package_preview_2019_05/models.rs +++ b/services/mgmt/consumption/src/package_preview_2019_05/models.rs @@ -277,8 +277,8 @@ pub struct BudgetsListResult { pub next_link: Option, } impl azure_core::Continuable for BudgetsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BudgetsListResult { @@ -395,7 +395,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -553,7 +553,7 @@ pub struct ForecastsListResult { pub value: Vec, } impl azure_core::Continuable for ForecastsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -724,8 +724,8 @@ pub struct MarketplacesListResult { pub next_link: Option, } impl azure_core::Continuable for MarketplacesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MarketplacesListResult { @@ -913,8 +913,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1066,8 +1066,8 @@ pub struct ReservationDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationDetailsListResult { @@ -1138,8 +1138,8 @@ pub struct ReservationRecommendationsListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationRecommendationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationRecommendationsListResult { @@ -1158,8 +1158,8 @@ pub struct ReservationSummariesListResult { pub next_link: Option, } impl azure_core::Continuable for ReservationSummariesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationSummariesListResult { @@ -1465,8 +1465,8 @@ pub struct UsageDetailsListResult { pub next_link: Option, } impl azure_core::Continuable for UsageDetailsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageDetailsListResult { diff --git a/services/mgmt/consumption/src/package_preview_2019_05/operations.rs b/services/mgmt/consumption/src/package_preview_2019_05/operations.rs index 64041261a5..ed9fe7b15b 100644 --- a/services/mgmt/consumption/src/package_preview_2019_05/operations.rs +++ b/services/mgmt/consumption/src/package_preview_2019_05/operations.rs @@ -182,9 +182,9 @@ pub mod usage_details { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -203,6 +203,9 @@ pub mod usage_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -372,9 +375,9 @@ pub mod marketplaces { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -393,6 +396,9 @@ pub mod marketplaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -494,9 +500,9 @@ pub mod budgets { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -515,6 +521,9 @@ pub mod budgets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1008,9 +1017,9 @@ pub mod reservations_summaries { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1029,6 +1038,9 @@ pub mod reservations_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1090,9 +1102,9 @@ pub mod reservations_summaries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Capacity/reservationorders/{}/reservations/{}/providers/Microsoft.Consumption/reservationSummaries" , this . client . endpoint () , & this . reservation_order_id , & this . reservation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1111,6 +1123,9 @@ pub mod reservations_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1200,9 +1215,9 @@ pub mod reservations_details { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1221,6 +1236,9 @@ pub mod reservations_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1274,9 +1292,9 @@ pub mod reservations_details { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Capacity/reservationorders/{}/reservations/{}/providers/Microsoft.Consumption/reservationDetails" , this . client . endpoint () , & this . reservation_order_id , & this . reservation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1295,6 +1313,9 @@ pub mod reservations_details { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1368,9 +1389,9 @@ pub mod reservation_recommendations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1389,6 +1410,9 @@ pub mod reservation_recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1690,9 +1714,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Consumption/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1711,6 +1735,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerinstance/src/package_2020_11/models.rs b/services/mgmt/containerinstance/src/package_2020_11/models.rs index a912305f2c..5ae20c5ccc 100644 --- a/services/mgmt/containerinstance/src/package_2020_11/models.rs +++ b/services/mgmt/containerinstance/src/package_2020_11/models.rs @@ -41,8 +41,8 @@ pub struct CachedImagesListResult { pub next_link: Option, } impl azure_core::Continuable for CachedImagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CachedImagesListResult { @@ -109,8 +109,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -126,7 +126,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -479,8 +479,8 @@ pub struct ContainerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ContainerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerGroupListResult { @@ -1300,8 +1300,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1497,7 +1497,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/containerinstance/src/package_2020_11/operations.rs b/services/mgmt/containerinstance/src/package_2020_11/operations.rs index 3a9532b9fe..e17f6717c0 100644 --- a/services/mgmt/containerinstance/src/package_2020_11/operations.rs +++ b/services/mgmt/containerinstance/src/package_2020_11/operations.rs @@ -232,9 +232,9 @@ pub mod container_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -253,6 +253,9 @@ pub mod container_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -308,9 +311,9 @@ pub mod container_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -329,6 +332,9 @@ pub mod container_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -768,9 +774,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -789,6 +795,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -924,9 +933,9 @@ pub mod location { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -945,6 +954,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1000,9 +1012,9 @@ pub mod location { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1021,6 +1033,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerinstance/src/package_2021_03/models.rs b/services/mgmt/containerinstance/src/package_2021_03/models.rs index 45e402f88c..2f76a314ee 100644 --- a/services/mgmt/containerinstance/src/package_2021_03/models.rs +++ b/services/mgmt/containerinstance/src/package_2021_03/models.rs @@ -41,8 +41,8 @@ pub struct CachedImagesListResult { pub next_link: Option, } impl azure_core::Continuable for CachedImagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CachedImagesListResult { @@ -109,8 +109,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -126,7 +126,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -479,8 +479,8 @@ pub struct ContainerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ContainerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerGroupListResult { @@ -1300,8 +1300,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1497,7 +1497,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/containerinstance/src/package_2021_03/operations.rs b/services/mgmt/containerinstance/src/package_2021_03/operations.rs index d9bf15482b..b66d43d43f 100644 --- a/services/mgmt/containerinstance/src/package_2021_03/operations.rs +++ b/services/mgmt/containerinstance/src/package_2021_03/operations.rs @@ -232,9 +232,9 @@ pub mod container_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -253,6 +253,9 @@ pub mod container_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -308,9 +311,9 @@ pub mod container_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -329,6 +332,9 @@ pub mod container_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -768,9 +774,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -789,6 +795,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -924,9 +933,9 @@ pub mod location { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -945,6 +954,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1000,9 +1012,9 @@ pub mod location { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1021,6 +1033,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerinstance/src/package_2021_07/models.rs b/services/mgmt/containerinstance/src/package_2021_07/models.rs index 191e7662d7..9cf286189f 100644 --- a/services/mgmt/containerinstance/src/package_2021_07/models.rs +++ b/services/mgmt/containerinstance/src/package_2021_07/models.rs @@ -41,8 +41,8 @@ pub struct CachedImagesListResult { pub next_link: Option, } impl azure_core::Continuable for CachedImagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CachedImagesListResult { @@ -109,8 +109,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -126,7 +126,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -479,8 +479,8 @@ pub struct ContainerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ContainerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerGroupListResult { @@ -1312,8 +1312,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1509,7 +1509,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/containerinstance/src/package_2021_07/operations.rs b/services/mgmt/containerinstance/src/package_2021_07/operations.rs index 8fe5af1e1c..6707b29177 100644 --- a/services/mgmt/containerinstance/src/package_2021_07/operations.rs +++ b/services/mgmt/containerinstance/src/package_2021_07/operations.rs @@ -246,9 +246,9 @@ pub mod container_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -267,6 +267,9 @@ pub mod container_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -322,9 +325,9 @@ pub mod container_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -343,6 +346,9 @@ pub mod container_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -828,9 +834,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -849,6 +855,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -984,9 +993,9 @@ pub mod location { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1005,6 +1014,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1060,9 +1072,9 @@ pub mod location { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1081,6 +1093,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerinstance/src/package_2021_09/models.rs b/services/mgmt/containerinstance/src/package_2021_09/models.rs index 512af925d1..1ac90de429 100644 --- a/services/mgmt/containerinstance/src/package_2021_09/models.rs +++ b/services/mgmt/containerinstance/src/package_2021_09/models.rs @@ -41,8 +41,8 @@ pub struct CachedImagesListResult { pub next_link: Option, } impl azure_core::Continuable for CachedImagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CachedImagesListResult { @@ -109,8 +109,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -126,7 +126,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -479,8 +479,8 @@ pub struct ContainerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ContainerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerGroupListResult { @@ -1312,8 +1312,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1512,7 +1512,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/containerinstance/src/package_2021_09/operations.rs b/services/mgmt/containerinstance/src/package_2021_09/operations.rs index ce770b916c..9844754103 100644 --- a/services/mgmt/containerinstance/src/package_2021_09/operations.rs +++ b/services/mgmt/containerinstance/src/package_2021_09/operations.rs @@ -246,9 +246,9 @@ pub mod container_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -267,6 +267,9 @@ pub mod container_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -322,9 +325,9 @@ pub mod container_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -343,6 +346,9 @@ pub mod container_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -828,9 +834,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -849,6 +855,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -984,9 +993,9 @@ pub mod location { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1005,6 +1014,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1060,9 +1072,9 @@ pub mod location { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1081,6 +1093,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerinstance/src/package_2021_10/models.rs b/services/mgmt/containerinstance/src/package_2021_10/models.rs index 5fbd24a3c4..9bf7c52d5a 100644 --- a/services/mgmt/containerinstance/src/package_2021_10/models.rs +++ b/services/mgmt/containerinstance/src/package_2021_10/models.rs @@ -41,8 +41,8 @@ pub struct CachedImagesListResult { pub next_link: Option, } impl azure_core::Continuable for CachedImagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CachedImagesListResult { @@ -109,8 +109,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -126,7 +126,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -479,8 +479,8 @@ pub struct ContainerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ContainerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerGroupListResult { @@ -1359,8 +1359,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1559,7 +1559,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/containerinstance/src/package_2021_10/operations.rs b/services/mgmt/containerinstance/src/package_2021_10/operations.rs index a388be9f14..db64e338db 100644 --- a/services/mgmt/containerinstance/src/package_2021_10/operations.rs +++ b/services/mgmt/containerinstance/src/package_2021_10/operations.rs @@ -246,9 +246,9 @@ pub mod container_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -267,6 +267,9 @@ pub mod container_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -322,9 +325,9 @@ pub mod container_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -343,6 +346,9 @@ pub mod container_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -828,9 +834,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -849,6 +855,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -984,9 +993,9 @@ pub mod location { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1005,6 +1014,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1060,9 +1072,9 @@ pub mod location { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1081,6 +1093,9 @@ pub mod location { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerregistry/src/package_2021_06_preview/models.rs b/services/mgmt/containerregistry/src/package_2021_06_preview/models.rs index 638534ffdf..c5d72e367a 100644 --- a/services/mgmt/containerregistry/src/package_2021_06_preview/models.rs +++ b/services/mgmt/containerregistry/src/package_2021_06_preview/models.rs @@ -111,8 +111,8 @@ pub struct AgentPoolListResult { pub next_link: Option, } impl azure_core::Continuable for AgentPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgentPoolListResult { @@ -836,8 +836,8 @@ pub struct ConnectedRegistryListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectedRegistryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectedRegistryListResult { @@ -1373,7 +1373,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1476,8 +1476,8 @@ pub struct EventListResult { pub next_link: Option, } impl azure_core::Continuable for EventListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventListResult { @@ -1564,8 +1564,8 @@ pub struct ExportPipelineListResult { pub next_link: Option, } impl azure_core::Continuable for ExportPipelineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExportPipelineListResult { @@ -2120,8 +2120,8 @@ pub struct ImportPipelineListResult { pub next_link: Option, } impl azure_core::Continuable for ImportPipelineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImportPipelineListResult { @@ -2592,8 +2592,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2739,8 +2739,8 @@ pub struct PipelineRunListResult { pub next_link: Option, } impl azure_core::Continuable for PipelineRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineRunListResult { @@ -3433,8 +3433,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -3540,8 +3540,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -3829,8 +3829,8 @@ pub struct RegistryListResult { pub next_link: Option, } impl azure_core::Continuable for RegistryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistryListResult { @@ -4368,8 +4368,8 @@ pub struct ReplicationListResult { pub next_link: Option, } impl azure_core::Continuable for ReplicationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationListResult { @@ -4804,8 +4804,8 @@ pub struct RunListResult { pub next_link: Option, } impl azure_core::Continuable for RunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunListResult { @@ -5088,8 +5088,8 @@ pub struct ScopeMapListResult { pub next_link: Option, } impl azure_core::Continuable for ScopeMapListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScopeMapListResult { @@ -6028,8 +6028,8 @@ pub struct TaskListResult { pub next_link: Option, } impl azure_core::Continuable for TaskListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskListResult { @@ -6274,8 +6274,8 @@ pub struct TaskRunListResult { pub next_link: Option, } impl azure_core::Continuable for TaskRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskRunListResult { @@ -6910,8 +6910,8 @@ pub struct TokenListResult { pub next_link: Option, } impl azure_core::Continuable for TokenListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TokenListResult { @@ -7423,8 +7423,8 @@ pub struct WebhookListResult { pub next_link: Option, } impl azure_core::Continuable for WebhookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebhookListResult { diff --git a/services/mgmt/containerregistry/src/package_2021_06_preview/operations.rs b/services/mgmt/containerregistry/src/package_2021_06_preview/operations.rs index e646c4c5df..1527a5ccc9 100644 --- a/services/mgmt/containerregistry/src/package_2021_06_preview/operations.rs +++ b/services/mgmt/containerregistry/src/package_2021_06_preview/operations.rs @@ -462,9 +462,9 @@ pub mod connected_registries { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -483,6 +483,9 @@ pub mod connected_registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -837,9 +840,9 @@ pub mod export_pipelines { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -858,6 +861,9 @@ pub mod export_pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1457,9 +1463,9 @@ pub mod registries { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1478,6 +1484,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1531,9 +1540,9 @@ pub mod registries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1552,6 +1561,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1756,9 +1768,9 @@ pub mod registries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1777,6 +1789,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2245,9 +2260,9 @@ pub mod import_pipelines { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2266,6 +2281,9 @@ pub mod import_pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2326,9 +2344,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2347,6 +2365,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2648,9 +2669,9 @@ pub mod pipeline_runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2669,6 +2690,9 @@ pub mod pipeline_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2943,9 +2967,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2964,6 +2988,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3348,9 +3375,9 @@ pub mod replications { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3369,6 +3396,9 @@ pub mod replications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3753,9 +3783,9 @@ pub mod scope_maps { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3774,6 +3804,9 @@ pub mod scope_maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4158,9 +4191,9 @@ pub mod tokens { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4179,6 +4212,9 @@ pub mod tokens { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4608,9 +4644,9 @@ pub mod webhooks { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4629,6 +4665,9 @@ pub mod webhooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4784,9 +4823,9 @@ pub mod webhooks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/webhooks/{}/listEvents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name , & this . webhook_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4805,6 +4844,9 @@ pub mod webhooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5205,9 +5247,9 @@ pub mod agent_pools { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5226,6 +5268,9 @@ pub mod agent_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5424,9 +5469,9 @@ pub mod runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5445,6 +5490,9 @@ pub mod runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6123,9 +6171,9 @@ pub mod task_runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6144,6 +6192,9 @@ pub mod task_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6299,9 +6350,9 @@ pub mod tasks { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6320,6 +6371,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerregistry/src/package_2021_08_preview/models.rs b/services/mgmt/containerregistry/src/package_2021_08_preview/models.rs index 1f9147b11a..247e008c7b 100644 --- a/services/mgmt/containerregistry/src/package_2021_08_preview/models.rs +++ b/services/mgmt/containerregistry/src/package_2021_08_preview/models.rs @@ -111,8 +111,8 @@ pub struct AgentPoolListResult { pub next_link: Option, } impl azure_core::Continuable for AgentPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgentPoolListResult { @@ -836,8 +836,8 @@ pub struct ConnectedRegistryListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectedRegistryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectedRegistryListResult { @@ -1384,7 +1384,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1487,8 +1487,8 @@ pub struct EventListResult { pub next_link: Option, } impl azure_core::Continuable for EventListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventListResult { @@ -1575,8 +1575,8 @@ pub struct ExportPipelineListResult { pub next_link: Option, } impl azure_core::Continuable for ExportPipelineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExportPipelineListResult { @@ -2131,8 +2131,8 @@ pub struct ImportPipelineListResult { pub next_link: Option, } impl azure_core::Continuable for ImportPipelineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImportPipelineListResult { @@ -2603,8 +2603,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2750,8 +2750,8 @@ pub struct PipelineRunListResult { pub next_link: Option, } impl azure_core::Continuable for PipelineRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineRunListResult { @@ -3444,8 +3444,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -3551,8 +3551,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -3840,8 +3840,8 @@ pub struct RegistryListResult { pub next_link: Option, } impl azure_core::Continuable for RegistryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistryListResult { @@ -4379,8 +4379,8 @@ pub struct ReplicationListResult { pub next_link: Option, } impl azure_core::Continuable for ReplicationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationListResult { @@ -4815,8 +4815,8 @@ pub struct RunListResult { pub next_link: Option, } impl azure_core::Continuable for RunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunListResult { @@ -5099,8 +5099,8 @@ pub struct ScopeMapListResult { pub next_link: Option, } impl azure_core::Continuable for ScopeMapListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScopeMapListResult { @@ -6039,8 +6039,8 @@ pub struct TaskListResult { pub next_link: Option, } impl azure_core::Continuable for TaskListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskListResult { @@ -6285,8 +6285,8 @@ pub struct TaskRunListResult { pub next_link: Option, } impl azure_core::Continuable for TaskRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskRunListResult { @@ -6921,8 +6921,8 @@ pub struct TokenListResult { pub next_link: Option, } impl azure_core::Continuable for TokenListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TokenListResult { @@ -7434,8 +7434,8 @@ pub struct WebhookListResult { pub next_link: Option, } impl azure_core::Continuable for WebhookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebhookListResult { diff --git a/services/mgmt/containerregistry/src/package_2021_08_preview/operations.rs b/services/mgmt/containerregistry/src/package_2021_08_preview/operations.rs index ac212f1b56..7473c88a68 100644 --- a/services/mgmt/containerregistry/src/package_2021_08_preview/operations.rs +++ b/services/mgmt/containerregistry/src/package_2021_08_preview/operations.rs @@ -246,9 +246,9 @@ pub mod connected_registries { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -267,6 +267,9 @@ pub mod connected_registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -659,9 +662,9 @@ pub mod export_pipelines { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -680,6 +683,9 @@ pub mod export_pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1219,9 +1225,9 @@ pub mod registries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1240,6 +1246,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1295,9 +1304,9 @@ pub mod registries { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1316,6 +1325,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1655,9 +1667,9 @@ pub mod registries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1676,6 +1688,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2067,9 +2082,9 @@ pub mod import_pipelines { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2088,6 +2103,9 @@ pub mod import_pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2326,9 +2344,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2347,6 +2365,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2470,9 +2491,9 @@ pub mod pipeline_runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2491,6 +2512,9 @@ pub mod pipeline_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2786,9 +2810,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2807,6 +2831,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3104,9 +3131,9 @@ pub mod replications { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3125,6 +3152,9 @@ pub mod replications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3509,9 +3539,9 @@ pub mod scope_maps { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3530,6 +3560,9 @@ pub mod scope_maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3914,9 +3947,9 @@ pub mod tokens { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3935,6 +3968,9 @@ pub mod tokens { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4364,9 +4400,9 @@ pub mod webhooks { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4385,6 +4421,9 @@ pub mod webhooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4736,9 +4775,9 @@ pub mod webhooks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/webhooks/{}/listEvents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name , & this . webhook_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4757,6 +4796,9 @@ pub mod webhooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5205,9 +5247,9 @@ pub mod agent_pools { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5226,6 +5268,9 @@ pub mod agent_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5424,9 +5469,9 @@ pub mod runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5445,6 +5490,9 @@ pub mod runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6123,9 +6171,9 @@ pub mod task_runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6144,6 +6192,9 @@ pub mod task_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6299,9 +6350,9 @@ pub mod tasks { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6320,6 +6371,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerregistry/src/package_2021_09/models.rs b/services/mgmt/containerregistry/src/package_2021_09/models.rs index f12a8212e0..ec88379e12 100644 --- a/services/mgmt/containerregistry/src/package_2021_09/models.rs +++ b/services/mgmt/containerregistry/src/package_2021_09/models.rs @@ -44,8 +44,8 @@ pub struct AgentPoolListResult { pub next_link: Option, } impl azure_core::Continuable for AgentPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgentPoolListResult { @@ -1064,7 +1064,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1167,8 +1167,8 @@ pub struct EventListResult { pub next_link: Option, } impl azure_core::Continuable for EventListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventListResult { @@ -1773,8 +1773,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2252,8 +2252,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -2359,8 +2359,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -2637,8 +2637,8 @@ pub struct RegistryListResult { pub next_link: Option, } impl azure_core::Continuable for RegistryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistryListResult { @@ -3170,8 +3170,8 @@ pub struct ReplicationListResult { pub next_link: Option, } impl azure_core::Continuable for ReplicationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationListResult { @@ -3606,8 +3606,8 @@ pub struct RunListResult { pub next_link: Option, } impl azure_core::Continuable for RunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunListResult { @@ -4627,8 +4627,8 @@ pub struct TaskListResult { pub next_link: Option, } impl azure_core::Continuable for TaskListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskListResult { @@ -4873,8 +4873,8 @@ pub struct TaskRunListResult { pub next_link: Option, } impl azure_core::Continuable for TaskRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskRunListResult { @@ -5503,8 +5503,8 @@ pub struct WebhookListResult { pub next_link: Option, } impl azure_core::Continuable for WebhookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebhookListResult { diff --git a/services/mgmt/containerregistry/src/package_2021_09/operations.rs b/services/mgmt/containerregistry/src/package_2021_09/operations.rs index 7554565702..a6c308fdf5 100644 --- a/services/mgmt/containerregistry/src/package_2021_09/operations.rs +++ b/services/mgmt/containerregistry/src/package_2021_09/operations.rs @@ -428,9 +428,9 @@ pub mod registries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -449,6 +449,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -504,9 +507,9 @@ pub mod registries { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -525,6 +528,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -864,9 +870,9 @@ pub mod registries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -885,6 +891,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1200,9 +1209,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1221,6 +1230,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1338,9 +1350,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1359,6 +1371,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1656,9 +1671,9 @@ pub mod replications { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1677,6 +1692,9 @@ pub mod replications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2106,9 +2124,9 @@ pub mod webhooks { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2127,6 +2145,9 @@ pub mod webhooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2478,9 +2499,9 @@ pub mod webhooks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/webhooks/{}/listEvents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name , & this . webhook_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2499,6 +2520,9 @@ pub mod webhooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2947,9 +2971,9 @@ pub mod agent_pools { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2968,6 +2992,9 @@ pub mod agent_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3166,9 +3193,9 @@ pub mod runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3187,6 +3214,9 @@ pub mod runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3865,9 +3895,9 @@ pub mod task_runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3886,6 +3916,9 @@ pub mod task_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4041,9 +4074,9 @@ pub mod tasks { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4062,6 +4095,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerregistry/src/package_2021_12_preview/models.rs b/services/mgmt/containerregistry/src/package_2021_12_preview/models.rs index 1f9147b11a..247e008c7b 100644 --- a/services/mgmt/containerregistry/src/package_2021_12_preview/models.rs +++ b/services/mgmt/containerregistry/src/package_2021_12_preview/models.rs @@ -111,8 +111,8 @@ pub struct AgentPoolListResult { pub next_link: Option, } impl azure_core::Continuable for AgentPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgentPoolListResult { @@ -836,8 +836,8 @@ pub struct ConnectedRegistryListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectedRegistryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectedRegistryListResult { @@ -1384,7 +1384,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1487,8 +1487,8 @@ pub struct EventListResult { pub next_link: Option, } impl azure_core::Continuable for EventListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventListResult { @@ -1575,8 +1575,8 @@ pub struct ExportPipelineListResult { pub next_link: Option, } impl azure_core::Continuable for ExportPipelineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExportPipelineListResult { @@ -2131,8 +2131,8 @@ pub struct ImportPipelineListResult { pub next_link: Option, } impl azure_core::Continuable for ImportPipelineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImportPipelineListResult { @@ -2603,8 +2603,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2750,8 +2750,8 @@ pub struct PipelineRunListResult { pub next_link: Option, } impl azure_core::Continuable for PipelineRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineRunListResult { @@ -3444,8 +3444,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -3551,8 +3551,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -3840,8 +3840,8 @@ pub struct RegistryListResult { pub next_link: Option, } impl azure_core::Continuable for RegistryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistryListResult { @@ -4379,8 +4379,8 @@ pub struct ReplicationListResult { pub next_link: Option, } impl azure_core::Continuable for ReplicationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationListResult { @@ -4815,8 +4815,8 @@ pub struct RunListResult { pub next_link: Option, } impl azure_core::Continuable for RunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunListResult { @@ -5099,8 +5099,8 @@ pub struct ScopeMapListResult { pub next_link: Option, } impl azure_core::Continuable for ScopeMapListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScopeMapListResult { @@ -6039,8 +6039,8 @@ pub struct TaskListResult { pub next_link: Option, } impl azure_core::Continuable for TaskListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskListResult { @@ -6285,8 +6285,8 @@ pub struct TaskRunListResult { pub next_link: Option, } impl azure_core::Continuable for TaskRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskRunListResult { @@ -6921,8 +6921,8 @@ pub struct TokenListResult { pub next_link: Option, } impl azure_core::Continuable for TokenListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TokenListResult { @@ -7434,8 +7434,8 @@ pub struct WebhookListResult { pub next_link: Option, } impl azure_core::Continuable for WebhookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebhookListResult { diff --git a/services/mgmt/containerregistry/src/package_2021_12_preview/operations.rs b/services/mgmt/containerregistry/src/package_2021_12_preview/operations.rs index ea4868f0e6..749b821bdf 100644 --- a/services/mgmt/containerregistry/src/package_2021_12_preview/operations.rs +++ b/services/mgmt/containerregistry/src/package_2021_12_preview/operations.rs @@ -246,9 +246,9 @@ pub mod connected_registries { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -267,6 +267,9 @@ pub mod connected_registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -659,9 +662,9 @@ pub mod export_pipelines { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -680,6 +683,9 @@ pub mod export_pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1234,9 +1240,9 @@ pub mod registries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1255,6 +1261,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1310,9 +1319,9 @@ pub mod registries { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1331,6 +1340,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1670,9 +1682,9 @@ pub mod registries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1691,6 +1703,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2129,9 +2144,9 @@ pub mod import_pipelines { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2150,6 +2165,9 @@ pub mod import_pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2388,9 +2406,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2409,6 +2427,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2532,9 +2553,9 @@ pub mod pipeline_runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2553,6 +2574,9 @@ pub mod pipeline_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2848,9 +2872,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2869,6 +2893,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3166,9 +3193,9 @@ pub mod replications { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3187,6 +3214,9 @@ pub mod replications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3571,9 +3601,9 @@ pub mod scope_maps { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3592,6 +3622,9 @@ pub mod scope_maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3976,9 +4009,9 @@ pub mod tokens { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3997,6 +4030,9 @@ pub mod tokens { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4426,9 +4462,9 @@ pub mod webhooks { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4447,6 +4483,9 @@ pub mod webhooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4798,9 +4837,9 @@ pub mod webhooks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/webhooks/{}/listEvents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name , & this . webhook_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4819,6 +4858,9 @@ pub mod webhooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5267,9 +5309,9 @@ pub mod agent_pools { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5288,6 +5330,9 @@ pub mod agent_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5486,9 +5531,9 @@ pub mod runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5507,6 +5552,9 @@ pub mod runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6185,9 +6233,9 @@ pub mod task_runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6206,6 +6254,9 @@ pub mod task_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6361,9 +6412,9 @@ pub mod tasks { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6382,6 +6433,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerregistry/src/package_2022_02_preview/models.rs b/services/mgmt/containerregistry/src/package_2022_02_preview/models.rs index a216efb031..66131b502f 100644 --- a/services/mgmt/containerregistry/src/package_2022_02_preview/models.rs +++ b/services/mgmt/containerregistry/src/package_2022_02_preview/models.rs @@ -111,8 +111,8 @@ pub struct AgentPoolListResult { pub next_link: Option, } impl azure_core::Continuable for AgentPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgentPoolListResult { @@ -895,8 +895,8 @@ pub struct ConnectedRegistryListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectedRegistryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectedRegistryListResult { @@ -1443,7 +1443,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1546,8 +1546,8 @@ pub struct EventListResult { pub next_link: Option, } impl azure_core::Continuable for EventListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventListResult { @@ -1634,8 +1634,8 @@ pub struct ExportPipelineListResult { pub next_link: Option, } impl azure_core::Continuable for ExportPipelineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExportPipelineListResult { @@ -2190,8 +2190,8 @@ pub struct ImportPipelineListResult { pub next_link: Option, } impl azure_core::Continuable for ImportPipelineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImportPipelineListResult { @@ -2658,8 +2658,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2820,8 +2820,8 @@ pub struct PipelineRunListResult { pub next_link: Option, } impl azure_core::Continuable for PipelineRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineRunListResult { @@ -3520,8 +3520,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -3627,8 +3627,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -3916,8 +3916,8 @@ pub struct RegistryListResult { pub next_link: Option, } impl azure_core::Continuable for RegistryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistryListResult { @@ -4455,8 +4455,8 @@ pub struct ReplicationListResult { pub next_link: Option, } impl azure_core::Continuable for ReplicationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationListResult { @@ -4891,8 +4891,8 @@ pub struct RunListResult { pub next_link: Option, } impl azure_core::Continuable for RunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunListResult { @@ -5175,8 +5175,8 @@ pub struct ScopeMapListResult { pub next_link: Option, } impl azure_core::Continuable for ScopeMapListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScopeMapListResult { @@ -6191,8 +6191,8 @@ pub struct TaskListResult { pub next_link: Option, } impl azure_core::Continuable for TaskListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskListResult { @@ -6437,8 +6437,8 @@ pub struct TaskRunListResult { pub next_link: Option, } impl azure_core::Continuable for TaskRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskRunListResult { @@ -7073,8 +7073,8 @@ pub struct TokenListResult { pub next_link: Option, } impl azure_core::Continuable for TokenListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TokenListResult { @@ -7529,8 +7529,8 @@ pub struct WebhookListResult { pub next_link: Option, } impl azure_core::Continuable for WebhookListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebhookListResult { diff --git a/services/mgmt/containerregistry/src/package_2022_02_preview/operations.rs b/services/mgmt/containerregistry/src/package_2022_02_preview/operations.rs index a00371e507..9ad21c61d6 100644 --- a/services/mgmt/containerregistry/src/package_2022_02_preview/operations.rs +++ b/services/mgmt/containerregistry/src/package_2022_02_preview/operations.rs @@ -246,9 +246,9 @@ pub mod connected_registries { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -267,6 +267,9 @@ pub mod connected_registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -659,9 +662,9 @@ pub mod export_pipelines { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -680,6 +683,9 @@ pub mod export_pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1234,9 +1240,9 @@ pub mod registries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1255,6 +1261,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1310,9 +1319,9 @@ pub mod registries { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1331,6 +1340,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1670,9 +1682,9 @@ pub mod registries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1691,6 +1703,9 @@ pub mod registries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2129,9 +2144,9 @@ pub mod import_pipelines { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2150,6 +2165,9 @@ pub mod import_pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2388,9 +2406,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2409,6 +2427,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2532,9 +2553,9 @@ pub mod pipeline_runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2553,6 +2574,9 @@ pub mod pipeline_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2848,9 +2872,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2869,6 +2893,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3166,9 +3193,9 @@ pub mod replications { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3187,6 +3214,9 @@ pub mod replications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3571,9 +3601,9 @@ pub mod scope_maps { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3592,6 +3622,9 @@ pub mod scope_maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3976,9 +4009,9 @@ pub mod tokens { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3997,6 +4030,9 @@ pub mod tokens { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4426,9 +4462,9 @@ pub mod webhooks { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4447,6 +4483,9 @@ pub mod webhooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4798,9 +4837,9 @@ pub mod webhooks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerRegistry/registries/{}/webhooks/{}/listEvents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . registry_name , & this . webhook_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4819,6 +4858,9 @@ pub mod webhooks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5267,9 +5309,9 @@ pub mod agent_pools { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5288,6 +5330,9 @@ pub mod agent_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5486,9 +5531,9 @@ pub mod runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5507,6 +5552,9 @@ pub mod runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6185,9 +6233,9 @@ pub mod task_runs { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6206,6 +6254,9 @@ pub mod task_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6361,9 +6412,9 @@ pub mod tasks { &this.registry_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6382,6 +6433,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerservice/src/package_preview_2022_02/models.rs b/services/mgmt/containerservice/src/package_preview_2022_02/models.rs index 77dfca821d..e72aa239cc 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_02/models.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_02/models.rs @@ -78,8 +78,8 @@ pub struct AgentPoolListResult { pub next_link: Option, } impl azure_core::Continuable for AgentPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgentPoolListResult { @@ -248,7 +248,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1460,8 +1460,8 @@ pub struct MaintenanceConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for MaintenanceConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MaintenanceConfigurationListResult { @@ -1882,8 +1882,8 @@ pub struct ManagedClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterListResult { @@ -2633,8 +2633,8 @@ pub struct ManagedClusterSnapshotListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterSnapshotListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterSnapshotListResult { @@ -3103,7 +3103,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3176,8 +3176,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -3677,8 +3677,8 @@ pub struct SnapshotListResult { pub next_link: Option, } impl azure_core::Continuable for SnapshotListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotListResult { diff --git a/services/mgmt/containerservice/src/package_preview_2022_02/operations.rs b/services/mgmt/containerservice/src/package_preview_2022_02/operations.rs index a3a2a0cae8..6356c325dd 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_02/operations.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_02/operations.rs @@ -525,9 +525,9 @@ pub mod managed_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -546,6 +546,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -601,9 +604,9 @@ pub mod managed_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -622,6 +625,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1542,9 +1548,9 @@ pub mod managed_clusters { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerService/managedClusters/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1563,6 +1569,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1684,9 +1693,9 @@ pub mod maintenance_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerService/managedClusters/{}/maintenanceConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1705,6 +1714,9 @@ pub mod maintenance_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2022,9 +2034,9 @@ pub mod agent_pools { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2043,6 +2055,9 @@ pub mod agent_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2901,9 +2916,9 @@ pub mod snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2922,6 +2937,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2977,9 +2995,9 @@ pub mod snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2998,6 +3016,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3358,9 +3379,9 @@ pub mod managed_cluster_snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3379,6 +3400,9 @@ pub mod managed_cluster_snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3434,9 +3458,9 @@ pub mod managed_cluster_snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3455,6 +3479,9 @@ pub mod managed_cluster_snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerservice/src/package_preview_2022_03/models.rs b/services/mgmt/containerservice/src/package_preview_2022_03/models.rs index 7aac7a06a9..204b22e97e 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_03/models.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_03/models.rs @@ -78,8 +78,8 @@ pub struct AgentPoolListResult { pub next_link: Option, } impl azure_core::Continuable for AgentPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgentPoolListResult { @@ -248,7 +248,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1460,8 +1460,8 @@ pub struct MaintenanceConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for MaintenanceConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MaintenanceConfigurationListResult { @@ -1915,8 +1915,8 @@ pub struct ManagedClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterListResult { @@ -2687,8 +2687,8 @@ pub struct ManagedClusterSnapshotListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterSnapshotListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterSnapshotListResult { @@ -3214,7 +3214,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3287,8 +3287,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -3776,8 +3776,8 @@ pub struct SnapshotListResult { pub next_link: Option, } impl azure_core::Continuable for SnapshotListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotListResult { diff --git a/services/mgmt/containerservice/src/package_preview_2022_03/operations.rs b/services/mgmt/containerservice/src/package_preview_2022_03/operations.rs index cb96599b47..9df3853c50 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_03/operations.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_03/operations.rs @@ -540,9 +540,9 @@ pub mod managed_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -561,6 +561,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -616,9 +619,9 @@ pub mod managed_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -637,6 +640,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1616,9 +1622,9 @@ pub mod managed_clusters { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerService/managedClusters/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1637,6 +1643,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1758,9 +1767,9 @@ pub mod maintenance_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerService/managedClusters/{}/maintenanceConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1779,6 +1788,9 @@ pub mod maintenance_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2097,9 +2109,9 @@ pub mod agent_pools { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2118,6 +2130,9 @@ pub mod agent_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2986,9 +3001,9 @@ pub mod snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3007,6 +3022,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3062,9 +3080,9 @@ pub mod snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3083,6 +3101,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3443,9 +3464,9 @@ pub mod managed_cluster_snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3464,6 +3485,9 @@ pub mod managed_cluster_snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3519,9 +3543,9 @@ pub mod managed_cluster_snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3540,6 +3564,9 @@ pub mod managed_cluster_snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerservice/src/package_preview_2022_04/models.rs b/services/mgmt/containerservice/src/package_preview_2022_04/models.rs index dcacad440e..2422069d93 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_04/models.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_04/models.rs @@ -78,8 +78,8 @@ pub struct AgentPoolListResult { pub next_link: Option, } impl azure_core::Continuable for AgentPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgentPoolListResult { @@ -248,7 +248,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1463,8 +1463,8 @@ pub struct MaintenanceConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for MaintenanceConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MaintenanceConfigurationListResult { @@ -1927,8 +1927,8 @@ pub struct ManagedClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterListResult { @@ -2702,8 +2702,8 @@ pub struct ManagedClusterSnapshotListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterSnapshotListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterSnapshotListResult { @@ -3271,7 +3271,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3344,8 +3344,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -3833,8 +3833,8 @@ pub struct SnapshotListResult { pub next_link: Option, } impl azure_core::Continuable for SnapshotListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotListResult { @@ -4136,8 +4136,8 @@ pub struct TrustedAccessRoleBindingListResult { pub next_link: Option, } impl azure_core::Continuable for TrustedAccessRoleBindingListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TrustedAccessRoleBindingListResult { @@ -4221,8 +4221,8 @@ pub struct TrustedAccessRoleListResult { pub next_link: Option, } impl azure_core::Continuable for TrustedAccessRoleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TrustedAccessRoleListResult { diff --git a/services/mgmt/containerservice/src/package_preview_2022_04/operations.rs b/services/mgmt/containerservice/src/package_preview_2022_04/operations.rs index 4d8a559ab4..127a3fea9a 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_04/operations.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_04/operations.rs @@ -546,9 +546,9 @@ pub mod managed_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -567,6 +567,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -622,9 +625,9 @@ pub mod managed_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -643,6 +646,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1622,9 +1628,9 @@ pub mod managed_clusters { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerService/managedClusters/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1643,6 +1649,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1764,9 +1773,9 @@ pub mod maintenance_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerService/managedClusters/{}/maintenanceConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1785,6 +1794,9 @@ pub mod maintenance_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2103,9 +2115,9 @@ pub mod agent_pools { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2124,6 +2136,9 @@ pub mod agent_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2992,9 +3007,9 @@ pub mod snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3013,6 +3028,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3068,9 +3086,9 @@ pub mod snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3089,6 +3107,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3449,9 +3470,9 @@ pub mod managed_cluster_snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3470,6 +3491,9 @@ pub mod managed_cluster_snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3525,9 +3549,9 @@ pub mod managed_cluster_snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3546,6 +3570,9 @@ pub mod managed_cluster_snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3837,9 +3864,9 @@ pub mod trusted_access_roles { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3858,6 +3885,9 @@ pub mod trusted_access_roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3979,9 +4009,9 @@ pub mod trusted_access_role_bindings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerService/managedClusters/{}/trustedAccessRoleBindings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4000,6 +4030,9 @@ pub mod trusted_access_role_bindings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerservice/src/package_preview_2022_05/models.rs b/services/mgmt/containerservice/src/package_preview_2022_05/models.rs index f0f43a0703..ac17adf7f9 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_05/models.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_05/models.rs @@ -78,8 +78,8 @@ pub struct AgentPoolListResult { pub next_link: Option, } impl azure_core::Continuable for AgentPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgentPoolListResult { @@ -299,7 +299,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1514,8 +1514,8 @@ pub struct MaintenanceConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for MaintenanceConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MaintenanceConfigurationListResult { @@ -1978,8 +1978,8 @@ pub struct ManagedClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterListResult { @@ -2768,8 +2768,8 @@ pub struct ManagedClusterSnapshotListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterSnapshotListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterSnapshotListResult { @@ -3375,7 +3375,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3448,8 +3448,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -3937,8 +3937,8 @@ pub struct SnapshotListResult { pub next_link: Option, } impl azure_core::Continuable for SnapshotListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotListResult { @@ -4240,8 +4240,8 @@ pub struct TrustedAccessRoleBindingListResult { pub next_link: Option, } impl azure_core::Continuable for TrustedAccessRoleBindingListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TrustedAccessRoleBindingListResult { @@ -4325,8 +4325,8 @@ pub struct TrustedAccessRoleListResult { pub next_link: Option, } impl azure_core::Continuable for TrustedAccessRoleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TrustedAccessRoleListResult { diff --git a/services/mgmt/containerservice/src/package_preview_2022_05/operations.rs b/services/mgmt/containerservice/src/package_preview_2022_05/operations.rs index cf0a3d4ae6..7ca41c1fc9 100644 --- a/services/mgmt/containerservice/src/package_preview_2022_05/operations.rs +++ b/services/mgmt/containerservice/src/package_preview_2022_05/operations.rs @@ -546,9 +546,9 @@ pub mod managed_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -567,6 +567,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -622,9 +625,9 @@ pub mod managed_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -643,6 +646,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1622,9 +1628,9 @@ pub mod managed_clusters { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerService/managedClusters/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1643,6 +1649,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1764,9 +1773,9 @@ pub mod maintenance_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerService/managedClusters/{}/maintenanceConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1785,6 +1794,9 @@ pub mod maintenance_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2103,9 +2115,9 @@ pub mod agent_pools { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2124,6 +2136,9 @@ pub mod agent_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2992,9 +3007,9 @@ pub mod snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3013,6 +3028,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3068,9 +3086,9 @@ pub mod snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3089,6 +3107,9 @@ pub mod snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3449,9 +3470,9 @@ pub mod managed_cluster_snapshots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3470,6 +3491,9 @@ pub mod managed_cluster_snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3525,9 +3549,9 @@ pub mod managed_cluster_snapshots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3546,6 +3570,9 @@ pub mod managed_cluster_snapshots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3837,9 +3864,9 @@ pub mod trusted_access_roles { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3858,6 +3885,9 @@ pub mod trusted_access_roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3979,9 +4009,9 @@ pub mod trusted_access_role_bindings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ContainerService/managedClusters/{}/trustedAccessRoleBindings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4000,6 +4030,9 @@ pub mod trusted_access_role_bindings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/containerservice/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/containerservice/src/profile_hybrid_2020_09_01/models.rs index d22381d12c..b93d8e3d3b 100644 --- a/services/mgmt/containerservice/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/containerservice/src/profile_hybrid_2020_09_01/models.rs @@ -78,8 +78,8 @@ pub struct AgentPoolListResult { pub next_link: Option, } impl azure_core::Continuable for AgentPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AgentPoolListResult { @@ -232,7 +232,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -376,8 +376,8 @@ pub struct ContainerServiceListResult { pub next_link: Option, } impl azure_core::Continuable for ContainerServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerServiceListResult { @@ -1898,8 +1898,8 @@ pub struct ManagedClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterListResult { @@ -2579,7 +2579,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/containerservice/src/profile_hybrid_2020_09_01/operations.rs b/services/mgmt/containerservice/src/profile_hybrid_2020_09_01/operations.rs index 60a74d9f71..c1eb84be7e 100644 --- a/services/mgmt/containerservice/src/profile_hybrid_2020_09_01/operations.rs +++ b/services/mgmt/containerservice/src/profile_hybrid_2020_09_01/operations.rs @@ -401,9 +401,9 @@ pub mod managed_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -422,6 +422,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -477,9 +480,9 @@ pub mod managed_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -498,6 +501,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1396,9 +1402,9 @@ pub mod agent_pools { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1417,6 +1423,9 @@ pub mod agent_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2326,9 +2335,9 @@ pub mod container_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2347,6 +2356,9 @@ pub mod container_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2578,9 +2590,9 @@ pub mod container_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2599,6 +2611,9 @@ pub mod container_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cosmosdb/src/package_2021_10/models.rs b/services/mgmt/cosmosdb/src/package_2021_10/models.rs index b984245872..bb1b2ae23d 100644 --- a/services/mgmt/cosmosdb/src/package_2021_10/models.rs +++ b/services/mgmt/cosmosdb/src/package_2021_10/models.rs @@ -518,7 +518,7 @@ pub struct CassandraKeyspaceListResult { pub value: Vec, } impl azure_core::Continuable for CassandraKeyspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -633,7 +633,7 @@ pub struct CassandraTableListResult { pub value: Vec, } impl azure_core::Continuable for CassandraTableListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -686,7 +686,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2004,7 +2004,7 @@ pub struct DatabaseAccountsListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2039,7 +2039,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2172,7 +2172,7 @@ pub struct GremlinDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for GremlinDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2257,7 +2257,7 @@ pub struct GremlinGraphListResult { pub value: Vec, } impl azure_core::Continuable for GremlinGraphListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2528,7 +2528,7 @@ pub struct ListClusters { pub value: Vec, } impl azure_core::Continuable for ListClusters { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2545,7 +2545,7 @@ pub struct ListDataCenters { pub value: Vec, } impl azure_core::Continuable for ListDataCenters { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2603,7 +2603,7 @@ pub struct LocationListResult { pub value: Vec, } impl azure_core::Continuable for LocationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3009,7 +3009,7 @@ pub struct MetricDefinitionsListResult { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3026,7 +3026,7 @@ pub struct MetricListResult { pub value: Vec, } impl azure_core::Continuable for MetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3142,7 +3142,7 @@ pub struct MongoDbCollectionListResult { pub value: Vec, } impl azure_core::Continuable for MongoDbCollectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3241,7 +3241,7 @@ pub struct MongoDbDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for MongoDbDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3357,7 +3357,7 @@ pub struct NotebookWorkspaceListResult { pub value: Vec, } impl azure_core::Continuable for NotebookWorkspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3431,8 +3431,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -3520,7 +3520,7 @@ pub struct PartitionMetricListResult { pub value: Vec, } impl azure_core::Continuable for PartitionMetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3554,7 +3554,7 @@ pub struct PartitionUsagesResult { pub value: Vec, } impl azure_core::Continuable for PartitionUsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3599,7 +3599,7 @@ pub struct PercentileMetricListResult { pub value: Vec, } impl azure_core::Continuable for PercentileMetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3712,7 +3712,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3776,7 +3776,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3955,7 +3955,7 @@ pub struct RestorableDatabaseAccountsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDatabaseAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4053,7 +4053,7 @@ pub struct RestorableMongodbCollectionsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbCollectionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4130,7 +4130,7 @@ pub struct RestorableMongodbDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4147,7 +4147,7 @@ pub struct RestorableMongodbResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4250,7 +4250,7 @@ pub struct RestorableSqlContainersListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlContainersListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4361,7 +4361,7 @@ pub struct RestorableSqlDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4378,7 +4378,7 @@ pub struct RestorableSqlResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4585,7 +4585,7 @@ pub struct SqlContainerListResult { pub value: Vec, } impl azure_core::Continuable for SqlContainerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4722,7 +4722,7 @@ pub struct SqlDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for SqlDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4776,7 +4776,7 @@ pub struct SqlRoleAssignmentListResult { pub value: Vec, } impl azure_core::Continuable for SqlRoleAssignmentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4837,7 +4837,7 @@ pub struct SqlRoleDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for SqlRoleDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4939,7 +4939,7 @@ pub struct SqlStoredProcedureListResult { pub value: Vec, } impl azure_core::Continuable for SqlStoredProcedureListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5025,7 +5025,7 @@ pub struct SqlTriggerListResult { pub value: Vec, } impl azure_core::Continuable for SqlTriggerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5205,7 +5205,7 @@ pub struct SqlUserDefinedFunctionListResult { pub value: Vec, } impl azure_core::Continuable for SqlUserDefinedFunctionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5293,7 +5293,7 @@ pub struct TableListResult { pub value: Vec, } impl azure_core::Continuable for TableListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5512,7 +5512,7 @@ pub struct UsagesResult { pub value: Vec, } impl azure_core::Continuable for UsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/cosmosdb/src/package_2021_10/operations.rs b/services/mgmt/cosmosdb/src/package_2021_10/operations.rs index 69d4d8b579..0b22a2558a 100644 --- a/services/mgmt/cosmosdb/src/package_2021_10/operations.rs +++ b/services/mgmt/cosmosdb/src/package_2021_10/operations.rs @@ -1383,9 +1383,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DocumentDB/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1404,6 +1404,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cosmosdb/src/package_preview_2021_04/models.rs b/services/mgmt/cosmosdb/src/package_preview_2021_04/models.rs index 172a0fef0c..85147ae769 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2021_04/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2021_04/models.rs @@ -400,7 +400,7 @@ pub struct CassandraKeyspaceListResult { pub value: Vec, } impl azure_core::Continuable for CassandraKeyspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -515,7 +515,7 @@ pub struct CassandraTableListResult { pub value: Vec, } impl azure_core::Continuable for CassandraTableListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -568,7 +568,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1715,7 +1715,7 @@ pub struct DatabaseAccountsListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1763,7 +1763,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1896,7 +1896,7 @@ pub struct GremlinDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for GremlinDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1981,7 +1981,7 @@ pub struct GremlinGraphListResult { pub value: Vec, } impl azure_core::Continuable for GremlinGraphListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2252,7 +2252,7 @@ pub struct ListBackups { pub value: Vec, } impl azure_core::Continuable for ListBackups { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2269,7 +2269,7 @@ pub struct ListClusters { pub value: Vec, } impl azure_core::Continuable for ListClusters { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2286,7 +2286,7 @@ pub struct ListDataCenters { pub value: Vec, } impl azure_core::Continuable for ListDataCenters { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2344,7 +2344,7 @@ pub struct LocationListResult { pub value: Vec, } impl azure_core::Continuable for LocationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2574,7 +2574,7 @@ pub struct MetricDefinitionsListResult { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2591,7 +2591,7 @@ pub struct MetricListResult { pub value: Vec, } impl azure_core::Continuable for MetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2707,7 +2707,7 @@ pub struct MongoDbCollectionListResult { pub value: Vec, } impl azure_core::Continuable for MongoDbCollectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2806,7 +2806,7 @@ pub struct MongoDbDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for MongoDbDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2922,7 +2922,7 @@ pub struct NotebookWorkspaceListResult { pub value: Vec, } impl azure_core::Continuable for NotebookWorkspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2996,8 +2996,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -3085,7 +3085,7 @@ pub struct PartitionMetricListResult { pub value: Vec, } impl azure_core::Continuable for PartitionMetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3119,7 +3119,7 @@ pub struct PartitionUsagesResult { pub value: Vec, } impl azure_core::Continuable for PartitionUsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3164,7 +3164,7 @@ pub struct PercentileMetricListResult { pub value: Vec, } impl azure_core::Continuable for PercentileMetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3277,7 +3277,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3341,7 +3341,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3537,7 +3537,7 @@ pub struct RestorableDatabaseAccountsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDatabaseAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3635,7 +3635,7 @@ pub struct RestorableMongodbCollectionsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbCollectionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3712,7 +3712,7 @@ pub struct RestorableMongodbDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3729,7 +3729,7 @@ pub struct RestorableMongodbResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3832,7 +3832,7 @@ pub struct RestorableSqlContainersListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlContainersListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3943,7 +3943,7 @@ pub struct RestorableSqlDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3960,7 +3960,7 @@ pub struct RestorableSqlResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4184,7 +4184,7 @@ pub struct SqlContainerListResult { pub value: Vec, } impl azure_core::Continuable for SqlContainerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4321,7 +4321,7 @@ pub struct SqlDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for SqlDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4375,7 +4375,7 @@ pub struct SqlRoleAssignmentListResult { pub value: Vec, } impl azure_core::Continuable for SqlRoleAssignmentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4436,7 +4436,7 @@ pub struct SqlRoleDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for SqlRoleDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4538,7 +4538,7 @@ pub struct SqlStoredProcedureListResult { pub value: Vec, } impl azure_core::Continuable for SqlStoredProcedureListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4624,7 +4624,7 @@ pub struct SqlTriggerListResult { pub value: Vec, } impl azure_core::Continuable for SqlTriggerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4804,7 +4804,7 @@ pub struct SqlUserDefinedFunctionListResult { pub value: Vec, } impl azure_core::Continuable for SqlUserDefinedFunctionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4892,7 +4892,7 @@ pub struct TableListResult { pub value: Vec, } impl azure_core::Continuable for TableListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5111,7 +5111,7 @@ pub struct UsagesResult { pub value: Vec, } impl azure_core::Continuable for UsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/cosmosdb/src/package_preview_2021_04/operations.rs b/services/mgmt/cosmosdb/src/package_preview_2021_04/operations.rs index 1b65ba2052..431e4f9de3 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2021_04/operations.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2021_04/operations.rs @@ -1380,9 +1380,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DocumentDB/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1401,6 +1401,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cosmosdb/src/package_preview_2021_10/models.rs b/services/mgmt/cosmosdb/src/package_preview_2021_10/models.rs index 24b6d58206..6ecf70b411 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2021_10/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2021_10/models.rs @@ -593,7 +593,7 @@ pub struct CassandraKeyspaceListResult { pub value: Vec, } impl azure_core::Continuable for CassandraKeyspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -708,7 +708,7 @@ pub struct CassandraTableListResult { pub value: Vec, } impl azure_core::Continuable for CassandraTableListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -807,7 +807,7 @@ pub struct CassandraViewListResult { pub value: Vec, } impl azure_core::Continuable for CassandraViewListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -917,7 +917,7 @@ pub struct ClientEncryptionKeysListResult { pub value: Vec, } impl azure_core::Continuable for ClientEncryptionKeysListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -934,7 +934,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1754,8 +1754,8 @@ pub struct DataTransferJobFeedResults { pub next_link: Option, } impl azure_core::Continuable for DataTransferJobFeedResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataTransferJobFeedResults { @@ -2471,7 +2471,7 @@ pub struct DatabaseAccountsListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2528,7 +2528,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2719,7 +2719,7 @@ pub struct GraphResourcesListResult { pub value: Vec, } impl azure_core::Continuable for GraphResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2793,7 +2793,7 @@ pub struct GremlinDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for GremlinDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2878,7 +2878,7 @@ pub struct GremlinGraphListResult { pub value: Vec, } impl azure_core::Continuable for GremlinGraphListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3167,7 +3167,7 @@ pub struct ListBackups { pub value: Vec, } impl azure_core::Continuable for ListBackups { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3184,7 +3184,7 @@ pub struct ListClusters { pub value: Vec, } impl azure_core::Continuable for ListClusters { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3201,7 +3201,7 @@ pub struct ListDataCenters { pub value: Vec, } impl azure_core::Continuable for ListDataCenters { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3259,7 +3259,7 @@ pub struct LocationListResult { pub value: Vec, } impl azure_core::Continuable for LocationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3708,7 +3708,7 @@ pub struct MetricDefinitionsListResult { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3725,7 +3725,7 @@ pub struct MetricListResult { pub value: Vec, } impl azure_core::Continuable for MetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3841,7 +3841,7 @@ pub struct MongoDbCollectionListResult { pub value: Vec, } impl azure_core::Continuable for MongoDbCollectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3940,7 +3940,7 @@ pub struct MongoDbDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for MongoDbDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4036,7 +4036,7 @@ pub struct MongoRoleDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for MongoRoleDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4112,7 +4112,7 @@ pub struct MongoUserDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for MongoUserDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4202,7 +4202,7 @@ pub struct NotebookWorkspaceListResult { pub value: Vec, } impl azure_core::Continuable for NotebookWorkspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4276,8 +4276,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -4365,7 +4365,7 @@ pub struct PartitionMetricListResult { pub value: Vec, } impl azure_core::Continuable for PartitionMetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4399,7 +4399,7 @@ pub struct PartitionUsagesResult { pub value: Vec, } impl azure_core::Continuable for PartitionUsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4444,7 +4444,7 @@ pub struct PercentileMetricListResult { pub value: Vec, } impl azure_core::Continuable for PercentileMetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4557,7 +4557,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4621,7 +4621,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4851,7 +4851,7 @@ pub struct RestorableDatabaseAccountsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDatabaseAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4949,7 +4949,7 @@ pub struct RestorableMongodbCollectionsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbCollectionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5026,7 +5026,7 @@ pub struct RestorableMongodbDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5043,7 +5043,7 @@ pub struct RestorableMongodbResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5146,7 +5146,7 @@ pub struct RestorableSqlContainersListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlContainersListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5257,7 +5257,7 @@ pub struct RestorableSqlDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5274,7 +5274,7 @@ pub struct RestorableSqlResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5462,7 +5462,7 @@ pub struct ServiceResourceListResult { pub value: Vec, } impl azure_core::Continuable for ServiceResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5716,7 +5716,7 @@ pub struct SqlContainerListResult { pub value: Vec, } impl azure_core::Continuable for SqlContainerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5853,7 +5853,7 @@ pub struct SqlDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for SqlDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5954,7 +5954,7 @@ pub struct SqlRoleAssignmentListResult { pub value: Vec, } impl azure_core::Continuable for SqlRoleAssignmentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6015,7 +6015,7 @@ pub struct SqlRoleDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for SqlRoleDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6117,7 +6117,7 @@ pub struct SqlStoredProcedureListResult { pub value: Vec, } impl azure_core::Continuable for SqlStoredProcedureListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6203,7 +6203,7 @@ pub struct SqlTriggerListResult { pub value: Vec, } impl azure_core::Continuable for SqlTriggerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6383,7 +6383,7 @@ pub struct SqlUserDefinedFunctionListResult { pub value: Vec, } impl azure_core::Continuable for SqlUserDefinedFunctionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6471,7 +6471,7 @@ pub struct TableListResult { pub value: Vec, } impl azure_core::Continuable for TableListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6690,7 +6690,7 @@ pub struct UsagesResult { pub value: Vec, } impl azure_core::Continuable for UsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/cosmosdb/src/package_preview_2021_10/operations.rs b/services/mgmt/cosmosdb/src/package_preview_2021_10/operations.rs index 787587b59e..ee47f3dd84 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2021_10/operations.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2021_10/operations.rs @@ -1392,9 +1392,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DocumentDB/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1413,6 +1413,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14080,9 +14083,9 @@ pub mod data_transfer_jobs { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14101,6 +14104,9 @@ pub mod data_transfer_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cosmosdb/src/package_preview_2021_11/models.rs b/services/mgmt/cosmosdb/src/package_preview_2021_11/models.rs index 1c6c4daa68..950eb96dcf 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2021_11/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2021_11/models.rs @@ -593,7 +593,7 @@ pub struct CassandraKeyspaceListResult { pub value: Vec, } impl azure_core::Continuable for CassandraKeyspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -708,7 +708,7 @@ pub struct CassandraTableListResult { pub value: Vec, } impl azure_core::Continuable for CassandraTableListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -807,7 +807,7 @@ pub struct CassandraViewListResult { pub value: Vec, } impl azure_core::Continuable for CassandraViewListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -917,7 +917,7 @@ pub struct ClientEncryptionKeysListResult { pub value: Vec, } impl azure_core::Continuable for ClientEncryptionKeysListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -934,7 +934,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1776,8 +1776,8 @@ pub struct DataTransferJobFeedResults { pub next_link: Option, } impl azure_core::Continuable for DataTransferJobFeedResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataTransferJobFeedResults { @@ -2503,7 +2503,7 @@ pub struct DatabaseAccountsListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2560,7 +2560,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2752,7 +2752,7 @@ pub struct GraphResourcesListResult { pub value: Vec, } impl azure_core::Continuable for GraphResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2826,7 +2826,7 @@ pub struct GremlinDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for GremlinDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2926,7 +2926,7 @@ pub struct GremlinGraphListResult { pub value: Vec, } impl azure_core::Continuable for GremlinGraphListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3218,7 +3218,7 @@ pub struct ListBackups { pub value: Vec, } impl azure_core::Continuable for ListBackups { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3235,7 +3235,7 @@ pub struct ListClusters { pub value: Vec, } impl azure_core::Continuable for ListClusters { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3252,7 +3252,7 @@ pub struct ListDataCenters { pub value: Vec, } impl azure_core::Continuable for ListDataCenters { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3310,7 +3310,7 @@ pub struct LocationListResult { pub value: Vec, } impl azure_core::Continuable for LocationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3759,7 +3759,7 @@ pub struct MetricDefinitionsListResult { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3776,7 +3776,7 @@ pub struct MetricListResult { pub value: Vec, } impl azure_core::Continuable for MetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3892,7 +3892,7 @@ pub struct MongoDbCollectionListResult { pub value: Vec, } impl azure_core::Continuable for MongoDbCollectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3991,7 +3991,7 @@ pub struct MongoDbDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for MongoDbDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4087,7 +4087,7 @@ pub struct MongoRoleDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for MongoRoleDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4163,7 +4163,7 @@ pub struct MongoUserDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for MongoUserDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4253,7 +4253,7 @@ pub struct NotebookWorkspaceListResult { pub value: Vec, } impl azure_core::Continuable for NotebookWorkspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4327,8 +4327,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -4416,7 +4416,7 @@ pub struct PartitionMetricListResult { pub value: Vec, } impl azure_core::Continuable for PartitionMetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4450,7 +4450,7 @@ pub struct PartitionUsagesResult { pub value: Vec, } impl azure_core::Continuable for PartitionUsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4495,7 +4495,7 @@ pub struct PercentileMetricListResult { pub value: Vec, } impl azure_core::Continuable for PercentileMetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4608,7 +4608,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4672,7 +4672,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4902,7 +4902,7 @@ pub struct RestorableDatabaseAccountsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDatabaseAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4979,7 +4979,7 @@ pub struct RestorableGremlinDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableGremlinDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5056,7 +5056,7 @@ pub struct RestorableGremlinGraphsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableGremlinGraphsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5073,7 +5073,7 @@ pub struct RestorableGremlinResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableGremlinResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5171,7 +5171,7 @@ pub struct RestorableMongodbCollectionsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbCollectionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5248,7 +5248,7 @@ pub struct RestorableMongodbDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5265,7 +5265,7 @@ pub struct RestorableMongodbResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5368,7 +5368,7 @@ pub struct RestorableSqlContainersListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlContainersListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5479,7 +5479,7 @@ pub struct RestorableSqlDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5496,7 +5496,7 @@ pub struct RestorableSqlResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5573,7 +5573,7 @@ pub struct RestorableTableResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableTableResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5590,7 +5590,7 @@ pub struct RestorableTablesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableTablesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5784,7 +5784,7 @@ pub struct ServiceResourceListResult { pub value: Vec, } impl azure_core::Continuable for ServiceResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6038,7 +6038,7 @@ pub struct SqlContainerListResult { pub value: Vec, } impl azure_core::Continuable for SqlContainerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6175,7 +6175,7 @@ pub struct SqlDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for SqlDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6276,7 +6276,7 @@ pub struct SqlRoleAssignmentListResult { pub value: Vec, } impl azure_core::Continuable for SqlRoleAssignmentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6337,7 +6337,7 @@ pub struct SqlRoleDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for SqlRoleDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6439,7 +6439,7 @@ pub struct SqlStoredProcedureListResult { pub value: Vec, } impl azure_core::Continuable for SqlStoredProcedureListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6525,7 +6525,7 @@ pub struct SqlTriggerListResult { pub value: Vec, } impl azure_core::Continuable for SqlTriggerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6705,7 +6705,7 @@ pub struct SqlUserDefinedFunctionListResult { pub value: Vec, } impl azure_core::Continuable for SqlUserDefinedFunctionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6793,7 +6793,7 @@ pub struct TableListResult { pub value: Vec, } impl azure_core::Continuable for TableListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7013,7 +7013,7 @@ pub struct UsagesResult { pub value: Vec, } impl azure_core::Continuable for UsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/cosmosdb/src/package_preview_2021_11/operations.rs b/services/mgmt/cosmosdb/src/package_preview_2021_11/operations.rs index 7359ec396b..7b0ad8482c 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2021_11/operations.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2021_11/operations.rs @@ -1407,9 +1407,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DocumentDB/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1428,6 +1428,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11510,9 +11513,9 @@ pub mod data_transfer_jobs { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11531,6 +11534,9 @@ pub mod data_transfer_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cosmosdb/src/package_preview_2022_02/models.rs b/services/mgmt/cosmosdb/src/package_preview_2022_02/models.rs index 66337819b8..40d659b3be 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2022_02/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2022_02/models.rs @@ -596,7 +596,7 @@ pub struct CassandraKeyspaceListResult { pub value: Vec, } impl azure_core::Continuable for CassandraKeyspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -711,7 +711,7 @@ pub struct CassandraTableListResult { pub value: Vec, } impl azure_core::Continuable for CassandraTableListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -810,7 +810,7 @@ pub struct CassandraViewListResult { pub value: Vec, } impl azure_core::Continuable for CassandraViewListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -945,7 +945,7 @@ pub struct ClientEncryptionKeysListResult { pub value: Vec, } impl azure_core::Continuable for ClientEncryptionKeysListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -980,7 +980,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1877,8 +1877,8 @@ pub struct DataTransferJobFeedResults { pub next_link: Option, } impl azure_core::Continuable for DataTransferJobFeedResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataTransferJobFeedResults { @@ -2608,7 +2608,7 @@ pub struct DatabaseAccountsListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2665,7 +2665,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2857,7 +2857,7 @@ pub struct GraphResourcesListResult { pub value: Vec, } impl azure_core::Continuable for GraphResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2931,7 +2931,7 @@ pub struct GremlinDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for GremlinDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3031,7 +3031,7 @@ pub struct GremlinGraphListResult { pub value: Vec, } impl azure_core::Continuable for GremlinGraphListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3323,7 +3323,7 @@ pub struct ListBackups { pub value: Vec, } impl azure_core::Continuable for ListBackups { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3340,7 +3340,7 @@ pub struct ListClusters { pub value: Vec, } impl azure_core::Continuable for ListClusters { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3357,7 +3357,7 @@ pub struct ListDataCenters { pub value: Vec, } impl azure_core::Continuable for ListDataCenters { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3415,7 +3415,7 @@ pub struct LocationListResult { pub value: Vec, } impl azure_core::Continuable for LocationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3876,7 +3876,7 @@ pub struct MetricDefinitionsListResult { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3893,7 +3893,7 @@ pub struct MetricListResult { pub value: Vec, } impl azure_core::Continuable for MetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4009,7 +4009,7 @@ pub struct MongoDbCollectionListResult { pub value: Vec, } impl azure_core::Continuable for MongoDbCollectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4108,7 +4108,7 @@ pub struct MongoDbDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for MongoDbDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4204,7 +4204,7 @@ pub struct MongoRoleDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for MongoRoleDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4280,7 +4280,7 @@ pub struct MongoUserDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for MongoUserDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4370,7 +4370,7 @@ pub struct NotebookWorkspaceListResult { pub value: Vec, } impl azure_core::Continuable for NotebookWorkspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4444,8 +4444,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -4533,7 +4533,7 @@ pub struct PartitionMetricListResult { pub value: Vec, } impl azure_core::Continuable for PartitionMetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4567,7 +4567,7 @@ pub struct PartitionUsagesResult { pub value: Vec, } impl azure_core::Continuable for PartitionUsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4612,7 +4612,7 @@ pub struct PercentileMetricListResult { pub value: Vec, } impl azure_core::Continuable for PercentileMetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4800,7 +4800,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4864,7 +4864,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5195,7 +5195,7 @@ pub struct RestorableDatabaseAccountsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDatabaseAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5272,7 +5272,7 @@ pub struct RestorableGremlinDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableGremlinDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5349,7 +5349,7 @@ pub struct RestorableGremlinGraphsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableGremlinGraphsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5366,7 +5366,7 @@ pub struct RestorableGremlinResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableGremlinResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5464,7 +5464,7 @@ pub struct RestorableMongodbCollectionsListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbCollectionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5541,7 +5541,7 @@ pub struct RestorableMongodbDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5558,7 +5558,7 @@ pub struct RestorableMongodbResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableMongodbResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5661,7 +5661,7 @@ pub struct RestorableSqlContainersListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlContainersListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5772,7 +5772,7 @@ pub struct RestorableSqlDatabasesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlDatabasesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5789,7 +5789,7 @@ pub struct RestorableSqlResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableSqlResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5866,7 +5866,7 @@ pub struct RestorableTableResourcesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableTableResourcesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5883,7 +5883,7 @@ pub struct RestorableTablesListResult { pub value: Vec, } impl azure_core::Continuable for RestorableTablesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6116,7 +6116,7 @@ pub struct ServiceResourceListResult { pub value: Vec, } impl azure_core::Continuable for ServiceResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6370,7 +6370,7 @@ pub struct SqlContainerListResult { pub value: Vec, } impl azure_core::Continuable for SqlContainerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6511,7 +6511,7 @@ pub struct SqlDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for SqlDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6612,7 +6612,7 @@ pub struct SqlRoleAssignmentListResult { pub value: Vec, } impl azure_core::Continuable for SqlRoleAssignmentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6673,7 +6673,7 @@ pub struct SqlRoleDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for SqlRoleDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6775,7 +6775,7 @@ pub struct SqlStoredProcedureListResult { pub value: Vec, } impl azure_core::Continuable for SqlStoredProcedureListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6861,7 +6861,7 @@ pub struct SqlTriggerListResult { pub value: Vec, } impl azure_core::Continuable for SqlTriggerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7041,7 +7041,7 @@ pub struct SqlUserDefinedFunctionListResult { pub value: Vec, } impl azure_core::Continuable for SqlUserDefinedFunctionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7129,7 +7129,7 @@ pub struct TableListResult { pub value: Vec, } impl azure_core::Continuable for TableListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7349,7 +7349,7 @@ pub struct UsagesResult { pub value: Vec, } impl azure_core::Continuable for UsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/cosmosdb/src/package_preview_2022_02/operations.rs b/services/mgmt/cosmosdb/src/package_preview_2022_02/operations.rs index fec1a01459..0f295540e8 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2022_02/operations.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2022_02/operations.rs @@ -1407,9 +1407,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DocumentDB/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1428,6 +1428,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12149,9 +12152,9 @@ pub mod data_transfer_jobs { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12170,6 +12173,9 @@ pub mod data_transfer_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/costmanagement/src/package_preview_2019_04/models.rs b/services/mgmt/costmanagement/src/package_preview_2019_04/models.rs index 82198ab153..5f764138ef 100644 --- a/services/mgmt/costmanagement/src/package_preview_2019_04/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2019_04/models.rs @@ -167,8 +167,8 @@ pub struct BudgetsListResult { pub next_link: Option, } impl azure_core::Continuable for BudgetsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BudgetsListResult { @@ -238,7 +238,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -425,8 +425,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -977,8 +977,8 @@ pub struct ViewListResult { pub next_link: Option, } impl azure_core::Continuable for ViewListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ViewListResult { diff --git a/services/mgmt/costmanagement/src/package_preview_2019_04/operations.rs b/services/mgmt/costmanagement/src/package_preview_2019_04/operations.rs index 39df1fa115..c72b7ffcd0 100644 --- a/services/mgmt/costmanagement/src/package_preview_2019_04/operations.rs +++ b/services/mgmt/costmanagement/src/package_preview_2019_04/operations.rs @@ -162,9 +162,9 @@ pub mod views { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.CostManagement/views", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -183,6 +183,9 @@ pub mod views { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -236,9 +239,9 @@ pub mod views { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -257,6 +260,9 @@ pub mod views { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -640,9 +646,9 @@ pub mod budgets { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -661,6 +667,9 @@ pub mod budgets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -917,9 +926,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.CostManagement/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -938,6 +947,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/costmanagement/src/package_preview_2020_03/models.rs b/services/mgmt/costmanagement/src/package_preview_2020_03/models.rs index 24c9a78f3a..84da401821 100644 --- a/services/mgmt/costmanagement/src/package_preview_2020_03/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2020_03/models.rs @@ -662,8 +662,8 @@ pub struct CostAllocationRuleList { pub next_link: Option, } impl azure_core::Continuable for CostAllocationRuleList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CostAllocationRuleList { @@ -753,7 +753,7 @@ pub struct DimensionsListResult { pub value: Vec, } impl azure_core::Continuable for DimensionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -796,7 +796,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1088,8 +1088,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2156,8 +2156,8 @@ pub struct ViewListResult { pub next_link: Option, } impl azure_core::Continuable for ViewListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ViewListResult { diff --git a/services/mgmt/costmanagement/src/package_preview_2020_03/operations.rs b/services/mgmt/costmanagement/src/package_preview_2020_03/operations.rs index 3aa2eefc5b..647467a74a 100644 --- a/services/mgmt/costmanagement/src/package_preview_2020_03/operations.rs +++ b/services/mgmt/costmanagement/src/package_preview_2020_03/operations.rs @@ -171,9 +171,9 @@ pub mod views { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.CostManagement/views", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -192,6 +192,9 @@ pub mod views { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -245,9 +248,9 @@ pub mod views { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -266,6 +269,9 @@ pub mod views { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1354,9 +1360,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.CostManagement/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1375,6 +1381,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1478,9 +1487,9 @@ pub mod cost_allocation_rules { &this.billing_account_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1499,6 +1508,9 @@ pub mod cost_allocation_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/costmanagement/src/package_preview_2020_12/models.rs b/services/mgmt/costmanagement/src/package_preview_2020_12/models.rs index 1622f338c7..3edac5ea37 100644 --- a/services/mgmt/costmanagement/src/package_preview_2020_12/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2020_12/models.rs @@ -604,7 +604,7 @@ pub struct DimensionsListResult { pub value: Vec, } impl azure_core::Continuable for DimensionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -662,7 +662,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1626,8 +1626,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2640,8 +2640,8 @@ pub struct ViewListResult { pub next_link: Option, } impl azure_core::Continuable for ViewListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ViewListResult { diff --git a/services/mgmt/costmanagement/src/package_preview_2020_12/operations.rs b/services/mgmt/costmanagement/src/package_preview_2020_12/operations.rs index 77ff065ff8..e63ff93f51 100644 --- a/services/mgmt/costmanagement/src/package_preview_2020_12/operations.rs +++ b/services/mgmt/costmanagement/src/package_preview_2020_12/operations.rs @@ -757,9 +757,9 @@ pub mod views { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.CostManagement/views", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -778,6 +778,9 @@ pub mod views { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -831,9 +834,9 @@ pub mod views { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -852,6 +855,9 @@ pub mod views { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1940,9 +1946,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.CostManagement/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1961,6 +1967,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/costmanagement/src/package_preview_2022_02/models.rs b/services/mgmt/costmanagement/src/package_preview_2022_02/models.rs index b305f9b04f..8b766d4a3c 100644 --- a/services/mgmt/costmanagement/src/package_preview_2022_02/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2022_02/models.rs @@ -57,7 +57,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -122,8 +122,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/costmanagement/src/package_preview_2022_02/operations.rs b/services/mgmt/costmanagement/src/package_preview_2022_02/operations.rs index f10d25f8df..311b765fed 100644 --- a/services/mgmt/costmanagement/src/package_preview_2022_02/operations.rs +++ b/services/mgmt/costmanagement/src/package_preview_2022_02/operations.rs @@ -239,9 +239,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.CostManagement/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -260,6 +260,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/costmanagement/src/package_preview_2022_04/models.rs b/services/mgmt/costmanagement/src/package_preview_2022_04/models.rs index 1d1b908d5a..b735da993b 100644 --- a/services/mgmt/costmanagement/src/package_preview_2022_04/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2022_04/models.rs @@ -752,7 +752,7 @@ pub struct DimensionsListResult { pub value: Vec, } impl azure_core::Continuable for DimensionsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -796,7 +796,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1696,8 +1696,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2931,8 +2931,8 @@ pub struct ScheduledActionListResult { pub next_link: Option, } impl azure_core::Continuable for ScheduledActionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScheduledActionListResult { @@ -3070,8 +3070,8 @@ pub struct ViewListResult { pub next_link: Option, } impl azure_core::Continuable for ViewListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ViewListResult { diff --git a/services/mgmt/costmanagement/src/package_preview_2022_04/operations.rs b/services/mgmt/costmanagement/src/package_preview_2022_04/operations.rs index e3c93e589a..c3842811b3 100644 --- a/services/mgmt/costmanagement/src/package_preview_2022_04/operations.rs +++ b/services/mgmt/costmanagement/src/package_preview_2022_04/operations.rs @@ -225,9 +225,9 @@ pub mod scheduled_actions { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -246,6 +246,9 @@ pub mod scheduled_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -307,9 +310,9 @@ pub mod scheduled_actions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -328,6 +331,9 @@ pub mod scheduled_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -949,9 +955,9 @@ pub mod views { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.CostManagement/views", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -970,6 +976,9 @@ pub mod views { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1023,9 +1032,9 @@ pub mod views { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1044,6 +1053,9 @@ pub mod views { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1829,7 +1841,7 @@ pub mod dimensions { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, @@ -2304,9 +2316,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.CostManagement/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2325,6 +2337,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/cpim/src/package_2019_01_01_preview/models.rs b/services/mgmt/cpim/src/package_2019_01_01_preview/models.rs index f3c9ad5864..2e3d9f121d 100644 --- a/services/mgmt/cpim/src/package_2019_01_01_preview/models.rs +++ b/services/mgmt/cpim/src/package_2019_01_01_preview/models.rs @@ -144,7 +144,7 @@ pub struct B2cTenantResourceList { pub value: Vec, } impl azure_core::Continuable for B2cTenantResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -236,7 +236,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -407,7 +407,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/cpim/src/package_2020_05_01_preview/models.rs b/services/mgmt/cpim/src/package_2020_05_01_preview/models.rs index 31c5391ce8..1ea44f8f94 100644 --- a/services/mgmt/cpim/src/package_2020_05_01_preview/models.rs +++ b/services/mgmt/cpim/src/package_2020_05_01_preview/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -95,7 +95,7 @@ pub struct GuestUsagesResourceList { pub value: Vec, } impl azure_core::Continuable for GuestUsagesResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -175,7 +175,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/cpim/src/package_2021_04_01/models.rs b/services/mgmt/cpim/src/package_2021_04_01/models.rs index bad85d79ea..9e749823ae 100644 --- a/services/mgmt/cpim/src/package_2021_04_01/models.rs +++ b/services/mgmt/cpim/src/package_2021_04_01/models.rs @@ -15,7 +15,7 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -204,7 +204,7 @@ pub struct B2cTenantResourceList { pub value: Vec, } impl azure_core::Continuable for B2cTenantResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -327,7 +327,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -465,7 +465,7 @@ pub struct GuestUsagesResourceList { pub value: Vec, } impl azure_core::Continuable for GuestUsagesResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/customerinsights/src/package_2017_01/models.rs b/services/mgmt/customerinsights/src/package_2017_01/models.rs index 55d54aeafd..4231078a4f 100644 --- a/services/mgmt/customerinsights/src/package_2017_01/models.rs +++ b/services/mgmt/customerinsights/src/package_2017_01/models.rs @@ -62,8 +62,8 @@ pub struct AuthorizationPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationPolicyListResult { @@ -175,8 +175,8 @@ pub struct ConnectorListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectorListResult { @@ -412,8 +412,8 @@ pub struct ConnectorMappingListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectorMappingListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectorMappingListResult { @@ -861,8 +861,8 @@ pub struct HubListResult { pub next_link: Option, } impl azure_core::Continuable for HubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HubListResult { @@ -923,8 +923,8 @@ pub struct InteractionListResult { pub next_link: Option, } impl azure_core::Continuable for InteractionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InteractionListResult { @@ -1154,8 +1154,8 @@ pub struct KpiListResult { pub next_link: Option, } impl azure_core::Continuable for KpiListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KpiListResult { @@ -1289,8 +1289,8 @@ pub struct LinkListResult { pub next_link: Option, } impl azure_core::Continuable for LinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkListResult { @@ -1389,8 +1389,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1487,8 +1487,8 @@ pub struct ProfileListResult { pub next_link: Option, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileListResult { @@ -1830,8 +1830,8 @@ pub struct RelationshipLinkListResult { pub next_link: Option, } impl azure_core::Continuable for RelationshipLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationshipLinkListResult { @@ -1864,8 +1864,8 @@ pub struct RelationshipListResult { pub next_link: Option, } impl azure_core::Continuable for RelationshipListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationshipListResult { @@ -2107,8 +2107,8 @@ pub struct RoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentListResult { @@ -2141,8 +2141,8 @@ pub struct RoleListResult { pub next_link: Option, } impl azure_core::Continuable for RoleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleListResult { @@ -2348,8 +2348,8 @@ pub struct ViewListResult { pub next_link: Option, } impl azure_core::Continuable for ViewListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ViewListResult { @@ -2427,8 +2427,8 @@ pub struct WidgetTypeListResult { pub next_link: Option, } impl azure_core::Continuable for WidgetTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WidgetTypeListResult { diff --git a/services/mgmt/customerinsights/src/package_2017_01/operations.rs b/services/mgmt/customerinsights/src/package_2017_01/operations.rs index 4ff23176d9..457c45d4d7 100644 --- a/services/mgmt/customerinsights/src/package_2017_01/operations.rs +++ b/services/mgmt/customerinsights/src/package_2017_01/operations.rs @@ -148,9 +148,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -169,6 +169,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -528,9 +531,9 @@ pub mod hubs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -549,6 +552,9 @@ pub mod hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -602,9 +608,9 @@ pub mod hubs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -623,6 +629,9 @@ pub mod hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -959,9 +968,9 @@ pub mod profiles { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -980,6 +989,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1285,9 +1297,9 @@ pub mod interactions { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1306,6 +1318,9 @@ pub mod interactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1652,9 +1667,9 @@ pub mod relationships { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1673,6 +1688,9 @@ pub mod relationships { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1968,9 +1986,9 @@ pub mod relationship_links { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1989,6 +2007,9 @@ pub mod relationship_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2246,9 +2267,9 @@ pub mod authorization_policies { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2267,6 +2288,9 @@ pub mod authorization_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2660,9 +2684,9 @@ pub mod connectors { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2681,6 +2705,9 @@ pub mod connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2994,9 +3021,9 @@ pub mod connector_mappings { &this.connector_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3015,6 +3042,9 @@ pub mod connector_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3376,9 +3406,9 @@ pub mod kpi { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3397,6 +3427,9 @@ pub mod kpi { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3488,9 +3521,9 @@ pub mod widget_types { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3509,6 +3542,9 @@ pub mod widget_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3693,9 +3729,9 @@ pub mod views { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3714,6 +3750,9 @@ pub mod views { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4176,9 +4215,9 @@ pub mod links { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4197,6 +4236,9 @@ pub mod links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4273,9 +4315,9 @@ pub mod roles { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4294,6 +4336,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4417,9 +4462,9 @@ pub mod role_assignments { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4438,6 +4483,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/customerinsights/src/package_2017_04/models.rs b/services/mgmt/customerinsights/src/package_2017_04/models.rs index 401d816e8f..a67a878ff4 100644 --- a/services/mgmt/customerinsights/src/package_2017_04/models.rs +++ b/services/mgmt/customerinsights/src/package_2017_04/models.rs @@ -62,8 +62,8 @@ pub struct AuthorizationPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationPolicyListResult { @@ -190,8 +190,8 @@ pub struct ConnectorListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectorListResult { @@ -427,8 +427,8 @@ pub struct ConnectorMappingListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectorMappingListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectorMappingListResult { @@ -876,8 +876,8 @@ pub struct HubListResult { pub next_link: Option, } impl azure_core::Continuable for HubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HubListResult { @@ -938,8 +938,8 @@ pub struct InteractionListResult { pub next_link: Option, } impl azure_core::Continuable for InteractionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InteractionListResult { @@ -1169,8 +1169,8 @@ pub struct KpiListResult { pub next_link: Option, } impl azure_core::Continuable for KpiListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KpiListResult { @@ -1330,8 +1330,8 @@ pub struct LinkListResult { pub next_link: Option, } impl azure_core::Continuable for LinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkListResult { @@ -1430,8 +1430,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1670,8 +1670,8 @@ pub struct PredictionListResult { pub next_link: Option, } impl azure_core::Continuable for PredictionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PredictionListResult { @@ -1868,8 +1868,8 @@ pub struct ProfileListResult { pub next_link: Option, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileListResult { @@ -2211,8 +2211,8 @@ pub struct RelationshipLinkListResult { pub next_link: Option, } impl azure_core::Continuable for RelationshipLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationshipLinkListResult { @@ -2245,8 +2245,8 @@ pub struct RelationshipListResult { pub next_link: Option, } impl azure_core::Continuable for RelationshipListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationshipListResult { @@ -2488,8 +2488,8 @@ pub struct RoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentListResult { @@ -2522,8 +2522,8 @@ pub struct RoleListResult { pub next_link: Option, } impl azure_core::Continuable for RoleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleListResult { @@ -2725,8 +2725,8 @@ pub struct ViewListResult { pub next_link: Option, } impl azure_core::Continuable for ViewListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ViewListResult { @@ -2804,8 +2804,8 @@ pub struct WidgetTypeListResult { pub next_link: Option, } impl azure_core::Continuable for WidgetTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WidgetTypeListResult { diff --git a/services/mgmt/customerinsights/src/package_2017_04/operations.rs b/services/mgmt/customerinsights/src/package_2017_04/operations.rs index 023150cf4b..562725312d 100644 --- a/services/mgmt/customerinsights/src/package_2017_04/operations.rs +++ b/services/mgmt/customerinsights/src/package_2017_04/operations.rs @@ -151,9 +151,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -172,6 +172,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -531,9 +534,9 @@ pub mod hubs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -552,6 +555,9 @@ pub mod hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -605,9 +611,9 @@ pub mod hubs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -626,6 +632,9 @@ pub mod hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -962,9 +971,9 @@ pub mod profiles { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -983,6 +992,9 @@ pub mod profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1288,9 +1300,9 @@ pub mod interactions { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1309,6 +1321,9 @@ pub mod interactions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1655,9 +1670,9 @@ pub mod relationships { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1676,6 +1691,9 @@ pub mod relationships { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1971,9 +1989,9 @@ pub mod relationship_links { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1992,6 +2010,9 @@ pub mod relationship_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2249,9 +2270,9 @@ pub mod authorization_policies { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2270,6 +2291,9 @@ pub mod authorization_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2663,9 +2687,9 @@ pub mod connectors { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2684,6 +2708,9 @@ pub mod connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2997,9 +3024,9 @@ pub mod connector_mappings { &this.connector_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3018,6 +3045,9 @@ pub mod connector_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3379,9 +3409,9 @@ pub mod kpi { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3400,6 +3430,9 @@ pub mod kpi { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3491,9 +3524,9 @@ pub mod widget_types { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3512,6 +3545,9 @@ pub mod widget_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3696,9 +3732,9 @@ pub mod views { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3717,6 +3753,9 @@ pub mod views { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4179,9 +4218,9 @@ pub mod links { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4200,6 +4239,9 @@ pub mod links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4276,9 +4318,9 @@ pub mod roles { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4297,6 +4339,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4420,9 +4465,9 @@ pub mod role_assignments { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4441,6 +4486,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5236,9 +5284,9 @@ pub mod predictions { &this.hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5257,6 +5305,9 @@ pub mod predictions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/customerlockbox/src/package_2018_02_28_preview/models.rs b/services/mgmt/customerlockbox/src/package_2018_02_28_preview/models.rs index 0accac7f88..cb3630c2c3 100644 --- a/services/mgmt/customerlockbox/src/package_2018_02_28_preview/models.rs +++ b/services/mgmt/customerlockbox/src/package_2018_02_28_preview/models.rs @@ -118,7 +118,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -314,8 +314,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -334,8 +334,8 @@ pub struct RequestListResult { pub next_link: Option, } impl azure_core::Continuable for RequestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RequestListResult { diff --git a/services/mgmt/customerlockbox/src/package_2018_02_28_preview/operations.rs b/services/mgmt/customerlockbox/src/package_2018_02_28_preview/operations.rs index 8e278f9776..331d199fae 100644 --- a/services/mgmt/customerlockbox/src/package_2018_02_28_preview/operations.rs +++ b/services/mgmt/customerlockbox/src/package_2018_02_28_preview/operations.rs @@ -112,9 +112,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -133,6 +133,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -484,9 +487,9 @@ pub mod requests { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -498,6 +501,9 @@ pub mod requests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/customproviders/src/package_2018_09_01_preview/models.rs b/services/mgmt/customproviders/src/package_2018_09_01_preview/models.rs index 7b63faa27f..e9c325c139 100644 --- a/services/mgmt/customproviders/src/package_2018_09_01_preview/models.rs +++ b/services/mgmt/customproviders/src/package_2018_09_01_preview/models.rs @@ -100,8 +100,8 @@ pub struct AssociationsList { pub next_link: Option, } impl azure_core::Continuable for AssociationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssociationsList { @@ -403,7 +403,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -423,8 +423,8 @@ pub struct ListByCustomRpManifest { pub next_link: Option, } impl azure_core::Continuable for ListByCustomRpManifest { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListByCustomRpManifest { @@ -511,8 +511,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/customproviders/src/package_2018_09_01_preview/operations.rs b/services/mgmt/customproviders/src/package_2018_09_01_preview/operations.rs index ec2eddef6c..a97416ce3a 100644 --- a/services/mgmt/customproviders/src/package_2018_09_01_preview/operations.rs +++ b/services/mgmt/customproviders/src/package_2018_09_01_preview/operations.rs @@ -109,9 +109,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -490,9 +493,9 @@ pub mod custom_resource_provider { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -511,6 +514,9 @@ pub mod custom_resource_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -564,9 +570,9 @@ pub mod custom_resource_provider { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -585,6 +591,9 @@ pub mod custom_resource_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -843,9 +852,9 @@ pub mod associations { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -864,6 +873,9 @@ pub mod associations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dashboard/src/package_2021_09_01_preview/models.rs b/services/mgmt/dashboard/src/package_2021_09_01_preview/models.rs index 570272889e..c2b7e35973 100644 --- a/services/mgmt/dashboard/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/dashboard/src/package_2021_09_01_preview/models.rs @@ -161,7 +161,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -252,8 +252,8 @@ pub struct ManagedGrafanaListResponse { pub next_link: Option, } impl azure_core::Continuable for ManagedGrafanaListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedGrafanaListResponse { @@ -387,8 +387,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/dashboard/src/package_2021_09_01_preview/operations.rs b/services/mgmt/dashboard/src/package_2021_09_01_preview/operations.rs index e786ae71b7..e3730f4603 100644 --- a/services/mgmt/dashboard/src/package_2021_09_01_preview/operations.rs +++ b/services/mgmt/dashboard/src/package_2021_09_01_preview/operations.rs @@ -105,9 +105,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Dashboard/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -126,6 +126,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -264,9 +267,9 @@ pub mod grafana { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -285,6 +288,9 @@ pub mod grafana { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -340,9 +346,9 @@ pub mod grafana { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -361,6 +367,9 @@ pub mod grafana { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/data/src/package_2017_03_01_preview/models.rs b/services/mgmt/data/src/package_2017_03_01_preview/models.rs index 42666c4bea..2bc64dadc7 100644 --- a/services/mgmt/data/src/package_2017_03_01_preview/models.rs +++ b/services/mgmt/data/src/package_2017_03_01_preview/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -229,8 +229,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -415,8 +415,8 @@ pub struct SqlServerListResult { pub next_link: Option, } impl azure_core::Continuable for SqlServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlServerListResult { @@ -476,8 +476,8 @@ pub struct SqlServerRegistrationListResult { pub next_link: Option, } impl azure_core::Continuable for SqlServerRegistrationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlServerRegistrationListResult { diff --git a/services/mgmt/data/src/package_2017_03_01_preview/operations.rs b/services/mgmt/data/src/package_2017_03_01_preview/operations.rs index d25fc09ab8..a23cbd24d1 100644 --- a/services/mgmt/data/src/package_2017_03_01_preview/operations.rs +++ b/services/mgmt/data/src/package_2017_03_01_preview/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AzureData/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -484,9 +487,9 @@ pub mod sql_server_registrations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -505,6 +508,9 @@ pub mod sql_server_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -558,9 +564,9 @@ pub mod sql_server_registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -579,6 +585,9 @@ pub mod sql_server_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -891,9 +900,9 @@ pub mod sql_servers { &this.sql_server_registration_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -912,6 +921,9 @@ pub mod sql_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/data/src/package_preview_2019_07/models.rs b/services/mgmt/data/src/package_preview_2019_07/models.rs index 42666c4bea..2bc64dadc7 100644 --- a/services/mgmt/data/src/package_preview_2019_07/models.rs +++ b/services/mgmt/data/src/package_preview_2019_07/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -229,8 +229,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -415,8 +415,8 @@ pub struct SqlServerListResult { pub next_link: Option, } impl azure_core::Continuable for SqlServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlServerListResult { @@ -476,8 +476,8 @@ pub struct SqlServerRegistrationListResult { pub next_link: Option, } impl azure_core::Continuable for SqlServerRegistrationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlServerRegistrationListResult { diff --git a/services/mgmt/data/src/package_preview_2019_07/operations.rs b/services/mgmt/data/src/package_preview_2019_07/operations.rs index d25fc09ab8..a23cbd24d1 100644 --- a/services/mgmt/data/src/package_preview_2019_07/operations.rs +++ b/services/mgmt/data/src/package_preview_2019_07/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AzureData/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -484,9 +487,9 @@ pub mod sql_server_registrations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -505,6 +508,9 @@ pub mod sql_server_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -558,9 +564,9 @@ pub mod sql_server_registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -579,6 +585,9 @@ pub mod sql_server_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -891,9 +900,9 @@ pub mod sql_servers { &this.sql_server_registration_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -912,6 +921,9 @@ pub mod sql_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/databox/src/package_2021_03/models.rs b/services/mgmt/databox/src/package_2021_03/models.rs index f9d2c7194a..19dadcf302 100644 --- a/services/mgmt/databox/src/package_2021_03/models.rs +++ b/services/mgmt/databox/src/package_2021_03/models.rs @@ -97,7 +97,7 @@ pub struct ApiError { pub error: ErrorDetail, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -183,8 +183,8 @@ pub struct AvailableSkusResult { pub next_link: Option, } impl azure_core::Continuable for AvailableSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableSkusResult { @@ -1334,8 +1334,8 @@ pub struct JobResourceList { pub next_link: Option, } impl azure_core::Continuable for JobResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobResourceList { @@ -1657,8 +1657,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -2515,7 +2515,7 @@ pub struct UnencryptedCredentialsList { pub next_link: Option, } impl azure_core::Continuable for UnencryptedCredentialsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/databox/src/package_2021_03/operations.rs b/services/mgmt/databox/src/package_2021_03/operations.rs index 9a95e14695..15779bb976 100644 --- a/services/mgmt/databox/src/package_2021_03/operations.rs +++ b/services/mgmt/databox/src/package_2021_03/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataBox/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -312,9 +315,9 @@ pub mod jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -333,6 +336,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -396,9 +402,9 @@ pub mod jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -417,6 +423,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1037,9 +1046,9 @@ pub mod service { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1058,6 +1067,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/databox/src/package_2021_05/models.rs b/services/mgmt/databox/src/package_2021_05/models.rs index a74f23aac9..50a61cf461 100644 --- a/services/mgmt/databox/src/package_2021_05/models.rs +++ b/services/mgmt/databox/src/package_2021_05/models.rs @@ -97,7 +97,7 @@ pub struct ApiError { pub error: ErrorDetail, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -183,8 +183,8 @@ pub struct AvailableSkusResult { pub next_link: Option, } impl azure_core::Continuable for AvailableSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableSkusResult { @@ -1334,8 +1334,8 @@ pub struct JobResourceList { pub next_link: Option, } impl azure_core::Continuable for JobResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobResourceList { @@ -1660,8 +1660,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -2518,7 +2518,7 @@ pub struct UnencryptedCredentialsList { pub next_link: Option, } impl azure_core::Continuable for UnencryptedCredentialsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/databox/src/package_2021_05/operations.rs b/services/mgmt/databox/src/package_2021_05/operations.rs index eb17a9c00a..de199910d9 100644 --- a/services/mgmt/databox/src/package_2021_05/operations.rs +++ b/services/mgmt/databox/src/package_2021_05/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataBox/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -312,9 +315,9 @@ pub mod jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -333,6 +336,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -396,9 +402,9 @@ pub mod jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -417,6 +423,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1037,9 +1046,9 @@ pub mod service { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1058,6 +1067,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/databox/src/package_2021_08_preview/models.rs b/services/mgmt/databox/src/package_2021_08_preview/models.rs index 123e4ee79a..a5f6c22ac9 100644 --- a/services/mgmt/databox/src/package_2021_08_preview/models.rs +++ b/services/mgmt/databox/src/package_2021_08_preview/models.rs @@ -97,7 +97,7 @@ pub struct ApiError { pub error: ErrorDetail, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -183,8 +183,8 @@ pub struct AvailableSkusResult { pub next_link: Option, } impl azure_core::Continuable for AvailableSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableSkusResult { @@ -2029,8 +2029,8 @@ pub struct JobResourceList { pub next_link: Option, } impl azure_core::Continuable for JobResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobResourceList { @@ -2470,8 +2470,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -3372,7 +3372,7 @@ pub struct UnencryptedCredentialsList { pub next_link: Option, } impl azure_core::Continuable for UnencryptedCredentialsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/databox/src/package_2021_08_preview/operations.rs b/services/mgmt/databox/src/package_2021_08_preview/operations.rs index af7ead87ed..a9de842511 100644 --- a/services/mgmt/databox/src/package_2021_08_preview/operations.rs +++ b/services/mgmt/databox/src/package_2021_08_preview/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataBox/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -327,9 +330,9 @@ pub mod jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -348,6 +351,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -461,9 +467,9 @@ pub mod jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -482,6 +488,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1102,9 +1111,9 @@ pub mod service { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1123,6 +1132,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/databox/src/package_2021_12/models.rs b/services/mgmt/databox/src/package_2021_12/models.rs index be8f15335e..719238dad8 100644 --- a/services/mgmt/databox/src/package_2021_12/models.rs +++ b/services/mgmt/databox/src/package_2021_12/models.rs @@ -97,7 +97,7 @@ pub struct ApiError { pub error: ErrorDetail, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -183,8 +183,8 @@ pub struct AvailableSkusResult { pub next_link: Option, } impl azure_core::Continuable for AvailableSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableSkusResult { @@ -2263,8 +2263,8 @@ pub struct JobResourceList { pub next_link: Option, } impl azure_core::Continuable for JobResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobResourceList { @@ -2709,8 +2709,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -3614,7 +3614,7 @@ pub struct UnencryptedCredentialsList { pub next_link: Option, } impl azure_core::Continuable for UnencryptedCredentialsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/databox/src/package_2021_12/operations.rs b/services/mgmt/databox/src/package_2021_12/operations.rs index 28f43d6519..924782d681 100644 --- a/services/mgmt/databox/src/package_2021_12/operations.rs +++ b/services/mgmt/databox/src/package_2021_12/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataBox/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -327,9 +330,9 @@ pub mod jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -348,6 +351,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -461,9 +467,9 @@ pub mod jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -482,6 +488,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1102,9 +1111,9 @@ pub mod service { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1123,6 +1132,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/databox/src/package_2022_02/models.rs b/services/mgmt/databox/src/package_2022_02/models.rs index 812db43bcc..de170910af 100644 --- a/services/mgmt/databox/src/package_2022_02/models.rs +++ b/services/mgmt/databox/src/package_2022_02/models.rs @@ -97,7 +97,7 @@ pub struct ApiError { pub error: ErrorDetail, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -183,8 +183,8 @@ pub struct AvailableSkusResult { pub next_link: Option, } impl azure_core::Continuable for AvailableSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableSkusResult { @@ -2302,8 +2302,8 @@ pub struct JobResourceList { pub next_link: Option, } impl azure_core::Continuable for JobResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobResourceList { @@ -2748,8 +2748,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -3653,7 +3653,7 @@ pub struct UnencryptedCredentialsList { pub next_link: Option, } impl azure_core::Continuable for UnencryptedCredentialsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/databox/src/package_2022_02/operations.rs b/services/mgmt/databox/src/package_2022_02/operations.rs index 41af389b55..6c27f189b3 100644 --- a/services/mgmt/databox/src/package_2022_02/operations.rs +++ b/services/mgmt/databox/src/package_2022_02/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataBox/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -327,9 +330,9 @@ pub mod jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -348,6 +351,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -461,9 +467,9 @@ pub mod jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -482,6 +488,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1102,9 +1111,9 @@ pub mod service { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1123,6 +1132,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/databoxedge/src/package_2020_12_01/models.rs b/services/mgmt/databoxedge/src/package_2020_12_01/models.rs index 725b537f03..f9cc026b64 100644 --- a/services/mgmt/databoxedge/src/package_2020_12_01/models.rs +++ b/services/mgmt/databoxedge/src/package_2020_12_01/models.rs @@ -93,8 +93,8 @@ pub struct AddonList { pub next_link: Option, } impl azure_core::Continuable for AddonList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddonList { @@ -185,8 +185,8 @@ pub struct AlertList { pub next_link: Option, } impl azure_core::Continuable for AlertList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertList { @@ -656,8 +656,8 @@ pub struct BandwidthSchedulesList { pub next_link: Option, } impl azure_core::Continuable for BandwidthSchedulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BandwidthSchedulesList { @@ -857,7 +857,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -979,8 +979,8 @@ pub struct ContainerList { pub next_link: Option, } impl azure_core::Continuable for ContainerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerList { @@ -1389,8 +1389,8 @@ pub struct DataBoxEdgeDeviceList { pub next_link: Option, } impl azure_core::Continuable for DataBoxEdgeDeviceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataBoxEdgeDeviceList { @@ -1895,8 +1895,8 @@ pub struct DataBoxEdgeSkuList { pub next_link: Option, } impl azure_core::Continuable for DataBoxEdgeSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataBoxEdgeSkuList { @@ -3696,8 +3696,8 @@ pub struct MonitoringMetricConfigurationList { pub next_link: Option, } impl azure_core::Continuable for MonitoringMetricConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringMetricConfigurationList { @@ -4175,8 +4175,8 @@ pub struct NodeList { pub next_link: Option, } impl azure_core::Continuable for NodeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeList { @@ -4327,8 +4327,8 @@ pub struct OperationsList { pub next_link: Option, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -4361,8 +4361,8 @@ pub struct OrderList { pub next_link: Option, } impl azure_core::Continuable for OrderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrderList { @@ -4918,8 +4918,8 @@ pub struct RoleList { pub next_link: Option, } impl azure_core::Continuable for RoleList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleList { @@ -5082,8 +5082,8 @@ pub struct ShareList { pub next_link: Option, } impl azure_core::Continuable for ShareList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareList { @@ -5605,8 +5605,8 @@ pub struct StorageAccountCredentialList { pub next_link: Option, } impl azure_core::Continuable for StorageAccountCredentialList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountCredentialList { @@ -5747,8 +5747,8 @@ pub struct StorageAccountList { pub next_link: Option, } impl azure_core::Continuable for StorageAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountList { @@ -6120,8 +6120,8 @@ pub struct TriggerList { pub next_link: Option, } impl azure_core::Continuable for TriggerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerList { @@ -6547,8 +6547,8 @@ pub struct UserList { pub next_link: Option, } impl azure_core::Continuable for UserList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserList { diff --git a/services/mgmt/databoxedge/src/package_2020_12_01/operations.rs b/services/mgmt/databoxedge/src/package_2020_12_01/operations.rs index 44fcb7b964..4816addbda 100644 --- a/services/mgmt/databoxedge/src/package_2020_12_01/operations.rs +++ b/services/mgmt/databoxedge/src/package_2020_12_01/operations.rs @@ -153,9 +153,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataBoxEdge/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -174,6 +174,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -240,9 +243,9 @@ pub mod available_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -261,6 +264,9 @@ pub mod available_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -540,9 +546,9 @@ pub mod devices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -561,6 +567,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -624,9 +633,9 @@ pub mod devices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -645,6 +654,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1460,9 +1472,9 @@ pub mod alerts { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1481,6 +1493,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1652,9 +1667,9 @@ pub mod bandwidth_schedules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/bandwidthSchedules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1673,6 +1688,9 @@ pub mod bandwidth_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1978,9 +1996,9 @@ pub mod nodes { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1999,6 +2017,9 @@ pub mod nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2203,9 +2224,9 @@ pub mod orders { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2224,6 +2245,9 @@ pub mod orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2562,9 +2586,9 @@ pub mod roles { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2583,6 +2607,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2890,9 +2917,9 @@ pub mod addons { &this.role_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2911,6 +2938,9 @@ pub mod addons { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3191,9 +3221,9 @@ pub mod monitoring_config { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/roles/{}/monitoringConfig" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name , & this . role_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3212,6 +3242,9 @@ pub mod monitoring_config { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3507,9 +3540,9 @@ pub mod shares { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3528,6 +3561,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3877,9 +3913,9 @@ pub mod storage_account_credentials { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/storageAccountCredentials" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3898,6 +3934,9 @@ pub mod storage_account_credentials { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4177,9 +4216,9 @@ pub mod storage_accounts { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4198,6 +4237,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4496,9 +4538,9 @@ pub mod containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/storageAccounts/{}/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name , & this . storage_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4517,6 +4559,9 @@ pub mod containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4851,9 +4896,9 @@ pub mod triggers { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4872,6 +4917,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5178,9 +5226,9 @@ pub mod users { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5199,6 +5247,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/databoxedge/src/package_2021_02_01/models.rs b/services/mgmt/databoxedge/src/package_2021_02_01/models.rs index 5404ba6958..c124edf6ce 100644 --- a/services/mgmt/databoxedge/src/package_2021_02_01/models.rs +++ b/services/mgmt/databoxedge/src/package_2021_02_01/models.rs @@ -93,8 +93,8 @@ pub struct AddonList { pub next_link: Option, } impl azure_core::Continuable for AddonList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddonList { @@ -185,8 +185,8 @@ pub struct AlertList { pub next_link: Option, } impl azure_core::Continuable for AlertList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertList { @@ -656,8 +656,8 @@ pub struct BandwidthSchedulesList { pub next_link: Option, } impl azure_core::Continuable for BandwidthSchedulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BandwidthSchedulesList { @@ -857,7 +857,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -979,8 +979,8 @@ pub struct ContainerList { pub next_link: Option, } impl azure_core::Continuable for ContainerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerList { @@ -1393,8 +1393,8 @@ pub struct DataBoxEdgeDeviceList { pub next_link: Option, } impl azure_core::Continuable for DataBoxEdgeDeviceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataBoxEdgeDeviceList { @@ -1916,8 +1916,8 @@ pub struct DataBoxEdgeSkuList { pub next_link: Option, } impl azure_core::Continuable for DataBoxEdgeSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataBoxEdgeSkuList { @@ -3800,8 +3800,8 @@ pub struct MonitoringMetricConfigurationList { pub next_link: Option, } impl azure_core::Continuable for MonitoringMetricConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringMetricConfigurationList { @@ -4282,8 +4282,8 @@ pub struct NodeList { pub next_link: Option, } impl azure_core::Continuable for NodeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeList { @@ -4434,8 +4434,8 @@ pub struct OperationsList { pub next_link: Option, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -4471,8 +4471,8 @@ pub struct OrderList { pub next_link: Option, } impl azure_core::Continuable for OrderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrderList { @@ -5185,8 +5185,8 @@ pub struct RoleList { pub next_link: Option, } impl azure_core::Continuable for RoleList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleList { @@ -5349,8 +5349,8 @@ pub struct ShareList { pub next_link: Option, } impl azure_core::Continuable for ShareList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareList { @@ -5883,8 +5883,8 @@ pub struct StorageAccountCredentialList { pub next_link: Option, } impl azure_core::Continuable for StorageAccountCredentialList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountCredentialList { @@ -6025,8 +6025,8 @@ pub struct StorageAccountList { pub next_link: Option, } impl azure_core::Continuable for StorageAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountList { @@ -6416,8 +6416,8 @@ pub struct TriggerList { pub next_link: Option, } impl azure_core::Continuable for TriggerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerList { @@ -7179,8 +7179,8 @@ pub struct UserList { pub next_link: Option, } impl azure_core::Continuable for UserList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserList { diff --git a/services/mgmt/databoxedge/src/package_2021_02_01/operations.rs b/services/mgmt/databoxedge/src/package_2021_02_01/operations.rs index 483c2c6c0b..cce00f0c86 100644 --- a/services/mgmt/databoxedge/src/package_2021_02_01/operations.rs +++ b/services/mgmt/databoxedge/src/package_2021_02_01/operations.rs @@ -159,9 +159,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataBoxEdge/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -180,6 +180,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -246,9 +249,9 @@ pub mod available_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -267,6 +270,9 @@ pub mod available_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -546,9 +552,9 @@ pub mod devices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -567,6 +573,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -630,9 +639,9 @@ pub mod devices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -651,6 +660,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1465,9 +1477,9 @@ pub mod alerts { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1486,6 +1498,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1657,9 +1672,9 @@ pub mod bandwidth_schedules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/bandwidthSchedules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1678,6 +1693,9 @@ pub mod bandwidth_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2237,9 +2255,9 @@ pub mod nodes { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2258,6 +2276,9 @@ pub mod nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2462,9 +2483,9 @@ pub mod orders { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2483,6 +2504,9 @@ pub mod orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2821,9 +2845,9 @@ pub mod roles { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2842,6 +2866,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3149,9 +3176,9 @@ pub mod addons { &this.role_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3170,6 +3197,9 @@ pub mod addons { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3450,9 +3480,9 @@ pub mod monitoring_config { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/roles/{}/monitoringConfig" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name , & this . role_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3471,6 +3501,9 @@ pub mod monitoring_config { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3766,9 +3799,9 @@ pub mod shares { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3787,6 +3820,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4136,9 +4172,9 @@ pub mod storage_account_credentials { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/storageAccountCredentials" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4157,6 +4193,9 @@ pub mod storage_account_credentials { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4436,9 +4475,9 @@ pub mod storage_accounts { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4457,6 +4496,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4755,9 +4797,9 @@ pub mod containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/storageAccounts/{}/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name , & this . storage_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4776,6 +4818,9 @@ pub mod containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5110,9 +5155,9 @@ pub mod triggers { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5131,6 +5176,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5509,9 +5557,9 @@ pub mod users { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5530,6 +5578,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/databoxedge/src/package_2021_02_01_preview/models.rs b/services/mgmt/databoxedge/src/package_2021_02_01_preview/models.rs index d97d4ece5c..d41fc18239 100644 --- a/services/mgmt/databoxedge/src/package_2021_02_01_preview/models.rs +++ b/services/mgmt/databoxedge/src/package_2021_02_01_preview/models.rs @@ -93,8 +93,8 @@ pub struct AddonList { pub next_link: Option, } impl azure_core::Continuable for AddonList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddonList { @@ -185,8 +185,8 @@ pub struct AlertList { pub next_link: Option, } impl azure_core::Continuable for AlertList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertList { @@ -656,8 +656,8 @@ pub struct BandwidthSchedulesList { pub next_link: Option, } impl azure_core::Continuable for BandwidthSchedulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BandwidthSchedulesList { @@ -857,7 +857,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -979,8 +979,8 @@ pub struct ContainerList { pub next_link: Option, } impl azure_core::Continuable for ContainerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerList { @@ -1393,8 +1393,8 @@ pub struct DataBoxEdgeDeviceList { pub next_link: Option, } impl azure_core::Continuable for DataBoxEdgeDeviceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataBoxEdgeDeviceList { @@ -1910,8 +1910,8 @@ pub struct DataBoxEdgeSkuList { pub next_link: Option, } impl azure_core::Continuable for DataBoxEdgeSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataBoxEdgeSkuList { @@ -3690,8 +3690,8 @@ pub struct MonitoringMetricConfigurationList { pub next_link: Option, } impl azure_core::Continuable for MonitoringMetricConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringMetricConfigurationList { @@ -4172,8 +4172,8 @@ pub struct NodeList { pub next_link: Option, } impl azure_core::Continuable for NodeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeList { @@ -4324,8 +4324,8 @@ pub struct OperationsList { pub next_link: Option, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -4361,8 +4361,8 @@ pub struct OrderList { pub next_link: Option, } impl azure_core::Continuable for OrderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrderList { @@ -4918,8 +4918,8 @@ pub struct RoleList { pub next_link: Option, } impl azure_core::Continuable for RoleList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleList { @@ -5082,8 +5082,8 @@ pub struct ShareList { pub next_link: Option, } impl azure_core::Continuable for ShareList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareList { @@ -5616,8 +5616,8 @@ pub struct StorageAccountCredentialList { pub next_link: Option, } impl azure_core::Continuable for StorageAccountCredentialList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountCredentialList { @@ -5758,8 +5758,8 @@ pub struct StorageAccountList { pub next_link: Option, } impl azure_core::Continuable for StorageAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountList { @@ -6131,8 +6131,8 @@ pub struct TriggerList { pub next_link: Option, } impl azure_core::Continuable for TriggerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerList { @@ -6827,8 +6827,8 @@ pub struct UserList { pub next_link: Option, } impl azure_core::Continuable for UserList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserList { diff --git a/services/mgmt/databoxedge/src/package_2021_02_01_preview/operations.rs b/services/mgmt/databoxedge/src/package_2021_02_01_preview/operations.rs index 7299552de4..66d0c2bf8e 100644 --- a/services/mgmt/databoxedge/src/package_2021_02_01_preview/operations.rs +++ b/services/mgmt/databoxedge/src/package_2021_02_01_preview/operations.rs @@ -153,9 +153,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataBoxEdge/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -174,6 +174,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -240,9 +243,9 @@ pub mod available_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -261,6 +264,9 @@ pub mod available_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -540,9 +546,9 @@ pub mod devices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -561,6 +567,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -624,9 +633,9 @@ pub mod devices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -645,6 +654,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1460,9 +1472,9 @@ pub mod alerts { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1481,6 +1493,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1652,9 +1667,9 @@ pub mod bandwidth_schedules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/bandwidthSchedules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1673,6 +1688,9 @@ pub mod bandwidth_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1978,9 +1996,9 @@ pub mod nodes { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1999,6 +2017,9 @@ pub mod nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2203,9 +2224,9 @@ pub mod orders { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2224,6 +2245,9 @@ pub mod orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2562,9 +2586,9 @@ pub mod roles { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2583,6 +2607,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2890,9 +2917,9 @@ pub mod addons { &this.role_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2911,6 +2938,9 @@ pub mod addons { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3191,9 +3221,9 @@ pub mod monitoring_config { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/roles/{}/monitoringConfig" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name , & this . role_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3212,6 +3242,9 @@ pub mod monitoring_config { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3507,9 +3540,9 @@ pub mod shares { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3528,6 +3561,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3877,9 +3913,9 @@ pub mod storage_account_credentials { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/storageAccountCredentials" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3898,6 +3934,9 @@ pub mod storage_account_credentials { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4177,9 +4216,9 @@ pub mod storage_accounts { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4198,6 +4237,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4496,9 +4538,9 @@ pub mod containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/storageAccounts/{}/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name , & this . storage_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4517,6 +4559,9 @@ pub mod containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4851,9 +4896,9 @@ pub mod triggers { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4872,6 +4917,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5178,9 +5226,9 @@ pub mod users { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5199,6 +5247,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/databoxedge/src/package_2021_06_01/models.rs b/services/mgmt/databoxedge/src/package_2021_06_01/models.rs index c0fdf43483..35a447e1e8 100644 --- a/services/mgmt/databoxedge/src/package_2021_06_01/models.rs +++ b/services/mgmt/databoxedge/src/package_2021_06_01/models.rs @@ -93,8 +93,8 @@ pub struct AddonList { pub next_link: Option, } impl azure_core::Continuable for AddonList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddonList { @@ -185,8 +185,8 @@ pub struct AlertList { pub next_link: Option, } impl azure_core::Continuable for AlertList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertList { @@ -656,8 +656,8 @@ pub struct BandwidthSchedulesList { pub next_link: Option, } impl azure_core::Continuable for BandwidthSchedulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BandwidthSchedulesList { @@ -857,7 +857,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -979,8 +979,8 @@ pub struct ContainerList { pub next_link: Option, } impl azure_core::Continuable for ContainerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerList { @@ -1450,8 +1450,8 @@ pub struct DataBoxEdgeDeviceList { pub next_link: Option, } impl azure_core::Continuable for DataBoxEdgeDeviceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataBoxEdgeDeviceList { @@ -1973,8 +1973,8 @@ pub struct DataBoxEdgeSkuList { pub next_link: Option, } impl azure_core::Continuable for DataBoxEdgeSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataBoxEdgeSkuList { @@ -3857,8 +3857,8 @@ pub struct MonitoringMetricConfigurationList { pub next_link: Option, } impl azure_core::Continuable for MonitoringMetricConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringMetricConfigurationList { @@ -4339,8 +4339,8 @@ pub struct NodeList { pub next_link: Option, } impl azure_core::Continuable for NodeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeList { @@ -4491,8 +4491,8 @@ pub struct OperationsList { pub next_link: Option, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -4528,8 +4528,8 @@ pub struct OrderList { pub next_link: Option, } impl azure_core::Continuable for OrderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrderList { @@ -5242,8 +5242,8 @@ pub struct RoleList { pub next_link: Option, } impl azure_core::Continuable for RoleList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleList { @@ -5406,8 +5406,8 @@ pub struct ShareList { pub next_link: Option, } impl azure_core::Continuable for ShareList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareList { @@ -5940,8 +5940,8 @@ pub struct StorageAccountCredentialList { pub next_link: Option, } impl azure_core::Continuable for StorageAccountCredentialList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountCredentialList { @@ -6082,8 +6082,8 @@ pub struct StorageAccountList { pub next_link: Option, } impl azure_core::Continuable for StorageAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountList { @@ -6473,8 +6473,8 @@ pub struct TriggerList { pub next_link: Option, } impl azure_core::Continuable for TriggerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerList { @@ -7236,8 +7236,8 @@ pub struct UserList { pub next_link: Option, } impl azure_core::Continuable for UserList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserList { diff --git a/services/mgmt/databoxedge/src/package_2021_06_01/operations.rs b/services/mgmt/databoxedge/src/package_2021_06_01/operations.rs index ff43178dd1..8a660b895a 100644 --- a/services/mgmt/databoxedge/src/package_2021_06_01/operations.rs +++ b/services/mgmt/databoxedge/src/package_2021_06_01/operations.rs @@ -159,9 +159,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataBoxEdge/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -180,6 +180,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -246,9 +249,9 @@ pub mod available_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -267,6 +270,9 @@ pub mod available_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -546,9 +552,9 @@ pub mod devices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -567,6 +573,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -630,9 +639,9 @@ pub mod devices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -651,6 +660,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1465,9 +1477,9 @@ pub mod alerts { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1486,6 +1498,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1657,9 +1672,9 @@ pub mod bandwidth_schedules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/bandwidthSchedules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1678,6 +1693,9 @@ pub mod bandwidth_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2245,9 +2263,9 @@ pub mod nodes { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2266,6 +2284,9 @@ pub mod nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2470,9 +2491,9 @@ pub mod orders { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2491,6 +2512,9 @@ pub mod orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2829,9 +2853,9 @@ pub mod roles { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2850,6 +2874,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3157,9 +3184,9 @@ pub mod addons { &this.role_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3178,6 +3205,9 @@ pub mod addons { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3458,9 +3488,9 @@ pub mod monitoring_config { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/roles/{}/monitoringConfig" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name , & this . role_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3479,6 +3509,9 @@ pub mod monitoring_config { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3774,9 +3807,9 @@ pub mod shares { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3795,6 +3828,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4144,9 +4180,9 @@ pub mod storage_account_credentials { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/storageAccountCredentials" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4165,6 +4201,9 @@ pub mod storage_account_credentials { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4444,9 +4483,9 @@ pub mod storage_accounts { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4465,6 +4504,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4763,9 +4805,9 @@ pub mod containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/storageAccounts/{}/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name , & this . storage_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4784,6 +4826,9 @@ pub mod containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5118,9 +5163,9 @@ pub mod triggers { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5139,6 +5184,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5517,9 +5565,9 @@ pub mod users { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5538,6 +5586,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/databoxedge/src/package_2021_06_01_preview/models.rs b/services/mgmt/databoxedge/src/package_2021_06_01_preview/models.rs index b8bae1bda2..206862ae64 100644 --- a/services/mgmt/databoxedge/src/package_2021_06_01_preview/models.rs +++ b/services/mgmt/databoxedge/src/package_2021_06_01_preview/models.rs @@ -93,8 +93,8 @@ pub struct AddonList { pub next_link: Option, } impl azure_core::Continuable for AddonList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddonList { @@ -185,8 +185,8 @@ pub struct AlertList { pub next_link: Option, } impl azure_core::Continuable for AlertList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertList { @@ -656,8 +656,8 @@ pub struct BandwidthSchedulesList { pub next_link: Option, } impl azure_core::Continuable for BandwidthSchedulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BandwidthSchedulesList { @@ -857,7 +857,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -979,8 +979,8 @@ pub struct ContainerList { pub next_link: Option, } impl azure_core::Continuable for ContainerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerList { @@ -1450,8 +1450,8 @@ pub struct DataBoxEdgeDeviceList { pub next_link: Option, } impl azure_core::Continuable for DataBoxEdgeDeviceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataBoxEdgeDeviceList { @@ -1973,8 +1973,8 @@ pub struct DataBoxEdgeSkuList { pub next_link: Option, } impl azure_core::Continuable for DataBoxEdgeSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataBoxEdgeSkuList { @@ -3857,8 +3857,8 @@ pub struct MonitoringMetricConfigurationList { pub next_link: Option, } impl azure_core::Continuable for MonitoringMetricConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringMetricConfigurationList { @@ -4339,8 +4339,8 @@ pub struct NodeList { pub next_link: Option, } impl azure_core::Continuable for NodeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeList { @@ -4491,8 +4491,8 @@ pub struct OperationsList { pub next_link: Option, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -4531,8 +4531,8 @@ pub struct OrderList { pub next_link: Option, } impl azure_core::Continuable for OrderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrderList { @@ -5239,8 +5239,8 @@ pub struct RoleList { pub next_link: Option, } impl azure_core::Continuable for RoleList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleList { @@ -5403,8 +5403,8 @@ pub struct ShareList { pub next_link: Option, } impl azure_core::Continuable for ShareList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareList { @@ -5937,8 +5937,8 @@ pub struct StorageAccountCredentialList { pub next_link: Option, } impl azure_core::Continuable for StorageAccountCredentialList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountCredentialList { @@ -6079,8 +6079,8 @@ pub struct StorageAccountList { pub next_link: Option, } impl azure_core::Continuable for StorageAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountList { @@ -6470,8 +6470,8 @@ pub struct TriggerList { pub next_link: Option, } impl azure_core::Continuable for TriggerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerList { @@ -7233,8 +7233,8 @@ pub struct UserList { pub next_link: Option, } impl azure_core::Continuable for UserList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserList { diff --git a/services/mgmt/databoxedge/src/package_2021_06_01_preview/operations.rs b/services/mgmt/databoxedge/src/package_2021_06_01_preview/operations.rs index 96a18275f6..fdb2a0538b 100644 --- a/services/mgmt/databoxedge/src/package_2021_06_01_preview/operations.rs +++ b/services/mgmt/databoxedge/src/package_2021_06_01_preview/operations.rs @@ -159,9 +159,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataBoxEdge/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -180,6 +180,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -246,9 +249,9 @@ pub mod available_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -267,6 +270,9 @@ pub mod available_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -546,9 +552,9 @@ pub mod devices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -567,6 +573,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -630,9 +639,9 @@ pub mod devices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -651,6 +660,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1465,9 +1477,9 @@ pub mod alerts { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1486,6 +1498,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1657,9 +1672,9 @@ pub mod bandwidth_schedules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/bandwidthSchedules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1678,6 +1693,9 @@ pub mod bandwidth_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2245,9 +2263,9 @@ pub mod nodes { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2266,6 +2284,9 @@ pub mod nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2470,9 +2491,9 @@ pub mod orders { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2491,6 +2512,9 @@ pub mod orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2829,9 +2853,9 @@ pub mod roles { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2850,6 +2874,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3157,9 +3184,9 @@ pub mod addons { &this.role_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3178,6 +3205,9 @@ pub mod addons { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3458,9 +3488,9 @@ pub mod monitoring_config { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/roles/{}/monitoringConfig" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name , & this . role_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3479,6 +3509,9 @@ pub mod monitoring_config { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3774,9 +3807,9 @@ pub mod shares { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3795,6 +3828,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4144,9 +4180,9 @@ pub mod storage_account_credentials { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/storageAccountCredentials" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4165,6 +4201,9 @@ pub mod storage_account_credentials { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4444,9 +4483,9 @@ pub mod storage_accounts { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4465,6 +4504,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4763,9 +4805,9 @@ pub mod containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{}/storageAccounts/{}/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . device_name , & this . storage_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4784,6 +4826,9 @@ pub mod containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5118,9 +5163,9 @@ pub mod triggers { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5139,6 +5184,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5517,9 +5565,9 @@ pub mod users { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5538,6 +5586,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/databricks/src/package_2018_04_01/models.rs b/services/mgmt/databricks/src/package_2018_04_01/models.rs index 7069146df5..935c95205e 100644 --- a/services/mgmt/databricks/src/package_2018_04_01/models.rs +++ b/services/mgmt/databricks/src/package_2018_04_01/models.rs @@ -150,7 +150,7 @@ pub struct ErrorResponse { pub error: ErrorInfo, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -224,8 +224,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -417,8 +417,8 @@ pub struct VirtualNetworkPeeringList { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkPeeringList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkPeeringList { @@ -726,8 +726,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { diff --git a/services/mgmt/databricks/src/package_2018_04_01/operations.rs b/services/mgmt/databricks/src/package_2018_04_01/operations.rs index 0605da6e6a..99ce5c50be 100644 --- a/services/mgmt/databricks/src/package_2018_04_01/operations.rs +++ b/services/mgmt/databricks/src/package_2018_04_01/operations.rs @@ -415,9 +415,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -436,6 +436,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -489,9 +492,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -510,6 +513,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -568,9 +574,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Databricks/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -589,6 +595,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -895,9 +904,9 @@ pub mod v_net_peering { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -916,6 +925,9 @@ pub mod v_net_peering { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datadog/src/package_2020_02_preview/models.rs b/services/mgmt/datadog/src/package_2020_02_preview/models.rs index 39e894c8b8..f344a1c92d 100644 --- a/services/mgmt/datadog/src/package_2020_02_preview/models.rs +++ b/services/mgmt/datadog/src/package_2020_02_preview/models.rs @@ -68,8 +68,8 @@ pub struct DatadogAgreementResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for DatadogAgreementResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatadogAgreementResourceListResponse { @@ -112,8 +112,8 @@ pub struct DatadogApiKeyListResponse { pub next_link: Option, } impl azure_core::Continuable for DatadogApiKeyListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatadogApiKeyListResponse { @@ -151,8 +151,8 @@ pub struct DatadogHostListResponse { pub next_link: Option, } impl azure_core::Continuable for DatadogHostListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatadogHostListResponse { @@ -250,8 +250,8 @@ pub struct DatadogMonitorResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for DatadogMonitorResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatadogMonitorResourceListResponse { @@ -368,8 +368,8 @@ pub struct DatadogSingleSignOnResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for DatadogSingleSignOnResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatadogSingleSignOnResourceListResponse { @@ -487,8 +487,8 @@ pub struct LinkedResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for LinkedResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkedResourceListResponse { @@ -682,8 +682,8 @@ pub struct MonitoredResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoredResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoredResourceListResponse { @@ -765,8 +765,8 @@ pub struct MonitoringTagRulesListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoringTagRulesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringTagRulesListResponse { @@ -823,8 +823,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -906,7 +906,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/datadog/src/package_2020_02_preview/operations.rs b/services/mgmt/datadog/src/package_2020_02_preview/operations.rs index 3d428348e1..9eff32f8bd 100644 --- a/services/mgmt/datadog/src/package_2020_02_preview/operations.rs +++ b/services/mgmt/datadog/src/package_2020_02_preview/operations.rs @@ -129,9 +129,9 @@ pub mod marketplace_agreements { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -150,6 +150,9 @@ pub mod marketplace_agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -447,9 +450,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -468,6 +471,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -637,9 +643,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -658,6 +664,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -716,9 +725,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -737,6 +746,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -795,9 +807,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -816,6 +828,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -870,9 +885,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -891,6 +906,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -946,9 +964,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -967,6 +985,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1331,9 +1352,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Datadog/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1352,6 +1373,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1462,9 +1486,9 @@ pub mod tag_rules { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1483,6 +1507,9 @@ pub mod tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1711,9 +1738,9 @@ pub mod single_sign_on_configurations { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1732,6 +1759,9 @@ pub mod single_sign_on_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datadog/src/package_2021_03/models.rs b/services/mgmt/datadog/src/package_2021_03/models.rs index f8881ae0d2..265f0ccf96 100644 --- a/services/mgmt/datadog/src/package_2021_03/models.rs +++ b/services/mgmt/datadog/src/package_2021_03/models.rs @@ -71,8 +71,8 @@ pub struct DatadogAgreementResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for DatadogAgreementResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatadogAgreementResourceListResponse { @@ -115,8 +115,8 @@ pub struct DatadogApiKeyListResponse { pub next_link: Option, } impl azure_core::Continuable for DatadogApiKeyListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatadogApiKeyListResponse { @@ -154,8 +154,8 @@ pub struct DatadogHostListResponse { pub next_link: Option, } impl azure_core::Continuable for DatadogHostListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatadogHostListResponse { @@ -257,8 +257,8 @@ pub struct DatadogMonitorResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for DatadogMonitorResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatadogMonitorResourceListResponse { @@ -378,8 +378,8 @@ pub struct DatadogSingleSignOnResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for DatadogSingleSignOnResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatadogSingleSignOnResourceListResponse { @@ -434,7 +434,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -537,8 +537,8 @@ pub struct LinkedResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for LinkedResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkedResourceListResponse { @@ -732,8 +732,8 @@ pub struct MonitoredResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoredResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoredResourceListResponse { @@ -818,8 +818,8 @@ pub struct MonitoringTagRulesListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoringTagRulesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringTagRulesListResponse { @@ -876,8 +876,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/datadog/src/package_2021_03/operations.rs b/services/mgmt/datadog/src/package_2021_03/operations.rs index a8b7234831..35ef78d6e0 100644 --- a/services/mgmt/datadog/src/package_2021_03/operations.rs +++ b/services/mgmt/datadog/src/package_2021_03/operations.rs @@ -129,9 +129,9 @@ pub mod marketplace_agreements { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -150,6 +150,9 @@ pub mod marketplace_agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -447,9 +450,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -468,6 +471,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -637,9 +643,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -658,6 +664,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -716,9 +725,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -737,6 +746,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -795,9 +807,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -816,6 +828,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -870,9 +885,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -891,6 +906,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -946,9 +964,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -967,6 +985,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1331,9 +1352,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Datadog/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1352,6 +1373,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1462,9 +1486,9 @@ pub mod tag_rules { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1483,6 +1507,9 @@ pub mod tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1711,9 +1738,9 @@ pub mod single_sign_on_configurations { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1732,6 +1759,9 @@ pub mod single_sign_on_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datafactory/src/package_2017_09_preview/models.rs b/services/mgmt/datafactory/src/package_2017_09_preview/models.rs index 4755dc67a9..b361cc89e4 100644 --- a/services/mgmt/datafactory/src/package_2017_09_preview/models.rs +++ b/services/mgmt/datafactory/src/package_2017_09_preview/models.rs @@ -104,8 +104,8 @@ pub struct ActivityRunsListResponse { pub next_link: Option, } impl azure_core::Continuable for ActivityRunsListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActivityRunsListResponse { @@ -193,8 +193,8 @@ pub struct DatasetListResponse { pub next_link: Option, } impl azure_core::Continuable for DatasetListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatasetListResponse { @@ -263,7 +263,7 @@ pub struct ErrorResponse { pub details: Vec, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -356,8 +356,8 @@ pub struct FactoryListResponse { pub next_link: Option, } impl azure_core::Continuable for FactoryListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FactoryListResponse { @@ -553,8 +553,8 @@ pub struct IntegrationRuntimeListResponse { pub next_link: Option, } impl azure_core::Continuable for IntegrationRuntimeListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationRuntimeListResponse { @@ -908,8 +908,8 @@ pub struct LinkedServiceListResponse { pub next_link: Option, } impl azure_core::Continuable for LinkedServiceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkedServiceListResponse { @@ -1237,8 +1237,8 @@ pub struct PipelineListResponse { pub next_link: Option, } impl azure_core::Continuable for PipelineListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineListResponse { @@ -1838,8 +1838,8 @@ pub struct TriggerListResponse { pub next_link: Option, } impl azure_core::Continuable for TriggerListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerListResponse { @@ -1963,8 +1963,8 @@ pub struct TriggerRunListResponse { pub next_link: Option, } impl azure_core::Continuable for TriggerRunListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerRunListResponse { diff --git a/services/mgmt/datafactory/src/package_2017_09_preview/operations.rs b/services/mgmt/datafactory/src/package_2017_09_preview/operations.rs index 65650cfebc..c9ae76fb75 100644 --- a/services/mgmt/datafactory/src/package_2017_09_preview/operations.rs +++ b/services/mgmt/datafactory/src/package_2017_09_preview/operations.rs @@ -283,9 +283,9 @@ pub mod factories { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -304,6 +304,9 @@ pub mod factories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -411,9 +414,9 @@ pub mod factories { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -432,6 +435,9 @@ pub mod factories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -991,9 +997,9 @@ pub mod integration_runtimes { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1012,6 +1018,9 @@ pub mod integration_runtimes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2055,9 +2064,9 @@ pub mod linked_services { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2076,6 +2085,9 @@ pub mod linked_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2373,9 +2385,9 @@ pub mod datasets { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2394,6 +2406,9 @@ pub mod datasets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2707,9 +2722,9 @@ pub mod pipelines { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2728,6 +2743,9 @@ pub mod pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3206,9 +3224,9 @@ pub mod activity_runs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataFactory/factories/{}/pipelineruns/{}/activityruns" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . factory_name , & this . run_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3227,6 +3245,9 @@ pub mod activity_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3415,9 +3436,9 @@ pub mod triggers { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3436,6 +3457,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3774,9 +3798,9 @@ pub mod triggers { &this.trigger_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3795,6 +3819,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datafactory/src/package_2018_06/models.rs b/services/mgmt/datafactory/src/package_2018_06/models.rs index 0315dd72a9..520b717fd3 100644 --- a/services/mgmt/datafactory/src/package_2018_06/models.rs +++ b/services/mgmt/datafactory/src/package_2018_06/models.rs @@ -4473,7 +4473,7 @@ pub struct CloudError { pub error: CloudErrorBody, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6179,8 +6179,8 @@ pub struct DataFlowListResponse { pub next_link: Option, } impl azure_core::Continuable for DataFlowListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataFlowListResponse { @@ -6645,8 +6645,8 @@ pub struct DatasetListResponse { pub next_link: Option, } impl azure_core::Continuable for DatasetListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatasetListResponse { @@ -8644,8 +8644,8 @@ pub struct FactoryListResponse { pub next_link: Option, } impl azure_core::Continuable for FactoryListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FactoryListResponse { @@ -9550,8 +9550,8 @@ pub struct GlobalParameterListResponse { pub next_link: Option, } impl azure_core::Continuable for GlobalParameterListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GlobalParameterListResponse { @@ -12184,8 +12184,8 @@ pub struct IntegrationRuntimeListResponse { pub next_link: Option, } impl azure_core::Continuable for IntegrationRuntimeListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationRuntimeListResponse { @@ -13226,8 +13226,8 @@ pub struct LinkedServiceListResponse { pub next_link: Option, } impl azure_core::Continuable for LinkedServiceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkedServiceListResponse { @@ -13730,8 +13730,8 @@ pub struct ManagedVirtualNetworkListResponse { pub next_link: Option, } impl azure_core::Continuable for ManagedVirtualNetworkListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedVirtualNetworkListResponse { @@ -15299,8 +15299,8 @@ pub struct OperationListResponse { pub next_link: Option, } impl azure_core::Continuable for OperationListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResponse { @@ -16502,8 +16502,8 @@ pub struct PipelineListResponse { pub next_link: Option, } impl azure_core::Continuable for PipelineListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineListResponse { @@ -17077,8 +17077,8 @@ pub struct PrivateEndpointConnectionListResponse { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResponse { @@ -17212,8 +17212,8 @@ pub struct QueryDataFlowDebugSessionsResponse { pub next_link: Option, } impl azure_core::Continuable for QueryDataFlowDebugSessionsResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QueryDataFlowDebugSessionsResponse { @@ -23552,8 +23552,8 @@ pub struct TriggerListResponse { pub next_link: Option, } impl azure_core::Continuable for TriggerListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerListResponse { @@ -25185,8 +25185,8 @@ pub struct ManagedPrivateEndpointListResponse { pub next_link: Option, } impl azure_core::Continuable for ManagedPrivateEndpointListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedPrivateEndpointListResponse { diff --git a/services/mgmt/datafactory/src/package_2018_06/operations.rs b/services/mgmt/datafactory/src/package_2018_06/operations.rs index 3f9d9b7009..e3c571c951 100644 --- a/services/mgmt/datafactory/src/package_2018_06/operations.rs +++ b/services/mgmt/datafactory/src/package_2018_06/operations.rs @@ -161,9 +161,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataFactory/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -182,6 +182,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -359,9 +362,9 @@ pub mod factories { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -380,6 +383,9 @@ pub mod factories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -487,9 +493,9 @@ pub mod factories { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -508,6 +514,9 @@ pub mod factories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1382,9 +1391,9 @@ pub mod integration_runtimes { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1403,6 +1412,9 @@ pub mod integration_runtimes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2760,9 +2772,9 @@ pub mod linked_services { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2781,6 +2793,9 @@ pub mod linked_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3087,9 +3102,9 @@ pub mod datasets { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3108,6 +3123,9 @@ pub mod datasets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3434,9 +3452,9 @@ pub mod pipelines { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3455,6 +3473,9 @@ pub mod pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4246,9 +4267,9 @@ pub mod triggers { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4267,6 +4288,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5267,9 +5291,9 @@ pub mod data_flows { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5288,6 +5312,9 @@ pub mod data_flows { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5484,9 +5511,9 @@ pub mod data_flow_debug_session { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5505,6 +5532,9 @@ pub mod data_flow_debug_session { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5774,9 +5804,9 @@ pub mod managed_virtual_networks { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5795,6 +5825,9 @@ pub mod managed_virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6049,9 +6082,9 @@ pub mod managed_private_endpoints { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataFactory/factories/{}/managedVirtualNetworks/{}/managedPrivateEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . factory_name , & this . managed_virtual_network_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6070,6 +6103,9 @@ pub mod managed_private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6309,9 +6345,9 @@ pub mod private_end_point_connections { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6330,6 +6366,9 @@ pub mod private_end_point_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6739,9 +6778,9 @@ pub mod global_parameters { &this.factory_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6760,6 +6799,9 @@ pub mod global_parameters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datalakeanalytics/src/package_2015_10_preview/models.rs b/services/mgmt/datalakeanalytics/src/package_2015_10_preview/models.rs index db71f879ff..176b957061 100644 --- a/services/mgmt/datalakeanalytics/src/package_2015_10_preview/models.rs +++ b/services/mgmt/datalakeanalytics/src/package_2015_10_preview/models.rs @@ -184,8 +184,8 @@ pub struct ComputePolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ComputePolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComputePolicyListResult { @@ -560,8 +560,8 @@ pub struct DataLakeAnalyticsAccountListResult { pub next_link: Option, } impl azure_core::Continuable for DataLakeAnalyticsAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataLakeAnalyticsAccountListResult { @@ -795,8 +795,8 @@ pub struct DataLakeStoreAccountInformationListResult { pub next_link: Option, } impl azure_core::Continuable for DataLakeStoreAccountInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataLakeStoreAccountInformationListResult { @@ -851,7 +851,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -885,8 +885,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -1218,8 +1218,8 @@ pub struct SasTokenInformationListResult { pub next_link: Option, } impl azure_core::Continuable for SasTokenInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SasTokenInformationListResult { @@ -1252,8 +1252,8 @@ pub struct StorageAccountInformationListResult { pub next_link: Option, } impl azure_core::Continuable for StorageAccountInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountInformationListResult { @@ -1313,8 +1313,8 @@ pub struct StorageContainerListResult { pub next_link: Option, } impl azure_core::Continuable for StorageContainerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageContainerListResult { diff --git a/services/mgmt/datalakeanalytics/src/package_2015_10_preview/operations.rs b/services/mgmt/datalakeanalytics/src/package_2015_10_preview/operations.rs index 70d0c5af5e..2c6fe95495 100644 --- a/services/mgmt/datalakeanalytics/src/package_2015_10_preview/operations.rs +++ b/services/mgmt/datalakeanalytics/src/package_2015_10_preview/operations.rs @@ -427,9 +427,9 @@ pub mod account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -448,6 +448,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -551,9 +554,9 @@ pub mod account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -572,6 +575,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -921,9 +927,9 @@ pub mod account { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataLakeAnalytics/accounts/{}/DataLakeStoreAccounts/" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -942,6 +948,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1195,9 +1204,9 @@ pub mod account { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1216,6 +1225,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1507,9 +1519,9 @@ pub mod account { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataLakeAnalytics/accounts/{}/storageAccounts/{}/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . storage_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1528,6 +1540,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1629,9 +1644,9 @@ pub mod account { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataLakeAnalytics/accounts/{}/storageAccounts/{}/containers/{}/listSasTokens" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . storage_account_name , & this . container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1650,6 +1665,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1790,9 +1808,9 @@ pub mod compute_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1811,6 +1829,9 @@ pub mod compute_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2179,9 +2200,9 @@ pub mod firewall_rules { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2200,6 +2221,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datalakeanalytics/src/package_2016_11/models.rs b/services/mgmt/datalakeanalytics/src/package_2016_11/models.rs index 4dfd246d63..1abcea9c8c 100644 --- a/services/mgmt/datalakeanalytics/src/package_2016_11/models.rs +++ b/services/mgmt/datalakeanalytics/src/package_2016_11/models.rs @@ -199,8 +199,8 @@ pub struct ComputePolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ComputePolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComputePolicyListResult { @@ -578,8 +578,8 @@ pub struct DataLakeAnalyticsAccountListResult { pub next_link: Option, } impl azure_core::Continuable for DataLakeAnalyticsAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataLakeAnalyticsAccountListResult { @@ -807,8 +807,8 @@ pub struct DataLakeStoreAccountInformationListResult { pub next_link: Option, } impl azure_core::Continuable for DataLakeStoreAccountInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataLakeStoreAccountInformationListResult { @@ -875,7 +875,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -909,8 +909,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -1242,8 +1242,8 @@ pub struct SasTokenInformationListResult { pub next_link: Option, } impl azure_core::Continuable for SasTokenInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SasTokenInformationListResult { @@ -1276,8 +1276,8 @@ pub struct StorageAccountInformationListResult { pub next_link: Option, } impl azure_core::Continuable for StorageAccountInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountInformationListResult { @@ -1322,8 +1322,8 @@ pub struct StorageContainerListResult { pub next_link: Option, } impl azure_core::Continuable for StorageContainerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageContainerListResult { diff --git a/services/mgmt/datalakeanalytics/src/package_2016_11/operations.rs b/services/mgmt/datalakeanalytics/src/package_2016_11/operations.rs index a2d543e536..9907b5cb22 100644 --- a/services/mgmt/datalakeanalytics/src/package_2016_11/operations.rs +++ b/services/mgmt/datalakeanalytics/src/package_2016_11/operations.rs @@ -247,9 +247,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -268,6 +268,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -371,9 +374,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -392,6 +395,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -870,9 +876,9 @@ pub mod data_lake_store_accounts { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -891,6 +897,9 @@ pub mod data_lake_store_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1281,9 +1290,9 @@ pub mod storage_accounts { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1302,6 +1311,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1588,9 +1600,9 @@ pub mod storage_accounts { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataLakeAnalytics/accounts/{}/storageAccounts/{}/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . storage_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1609,6 +1621,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1710,9 +1725,9 @@ pub mod storage_accounts { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataLakeAnalytics/accounts/{}/storageAccounts/{}/containers/{}/listSasTokens" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . storage_account_name , & this . container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1731,6 +1746,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1871,9 +1889,9 @@ pub mod compute_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1892,6 +1910,9 @@ pub mod compute_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2260,9 +2281,9 @@ pub mod firewall_rules { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2281,6 +2302,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datalakeanalytics/src/package_preview_2019_11/models.rs b/services/mgmt/datalakeanalytics/src/package_preview_2019_11/models.rs index f9b741a7f2..961c7b0509 100644 --- a/services/mgmt/datalakeanalytics/src/package_preview_2019_11/models.rs +++ b/services/mgmt/datalakeanalytics/src/package_preview_2019_11/models.rs @@ -199,8 +199,8 @@ pub struct ComputePolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ComputePolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComputePolicyListResult { @@ -578,8 +578,8 @@ pub struct DataLakeAnalyticsAccountListResult { pub next_link: Option, } impl azure_core::Continuable for DataLakeAnalyticsAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataLakeAnalyticsAccountListResult { @@ -810,8 +810,8 @@ pub struct DataLakeStoreAccountInformationListResult { pub next_link: Option, } impl azure_core::Continuable for DataLakeStoreAccountInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataLakeStoreAccountInformationListResult { @@ -878,7 +878,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -912,8 +912,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -1245,8 +1245,8 @@ pub struct SasTokenInformationListResult { pub next_link: Option, } impl azure_core::Continuable for SasTokenInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SasTokenInformationListResult { @@ -1279,8 +1279,8 @@ pub struct StorageAccountInformationListResult { pub next_link: Option, } impl azure_core::Continuable for StorageAccountInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountInformationListResult { @@ -1325,8 +1325,8 @@ pub struct StorageContainerListResult { pub next_link: Option, } impl azure_core::Continuable for StorageContainerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageContainerListResult { diff --git a/services/mgmt/datalakeanalytics/src/package_preview_2019_11/operations.rs b/services/mgmt/datalakeanalytics/src/package_preview_2019_11/operations.rs index 86794f5093..5e9def9958 100644 --- a/services/mgmt/datalakeanalytics/src/package_preview_2019_11/operations.rs +++ b/services/mgmt/datalakeanalytics/src/package_preview_2019_11/operations.rs @@ -247,9 +247,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -268,6 +268,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -371,9 +374,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -392,6 +395,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -870,9 +876,9 @@ pub mod data_lake_store_accounts { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -891,6 +897,9 @@ pub mod data_lake_store_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1281,9 +1290,9 @@ pub mod storage_accounts { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1302,6 +1311,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1588,9 +1600,9 @@ pub mod storage_accounts { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataLakeAnalytics/accounts/{}/storageAccounts/{}/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . storage_account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1609,6 +1621,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1710,9 +1725,9 @@ pub mod storage_accounts { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataLakeAnalytics/accounts/{}/storageAccounts/{}/containers/{}/listSasTokens" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . storage_account_name , & this . container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1731,6 +1746,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1871,9 +1889,9 @@ pub mod compute_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1892,6 +1910,9 @@ pub mod compute_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2260,9 +2281,9 @@ pub mod firewall_rules { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2281,6 +2302,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datalakestore/src/package_2015_10_preview/models.rs b/services/mgmt/datalakestore/src/package_2015_10_preview/models.rs index 4b8fd2f9c8..64a18e3f1e 100644 --- a/services/mgmt/datalakestore/src/package_2015_10_preview/models.rs +++ b/services/mgmt/datalakestore/src/package_2015_10_preview/models.rs @@ -72,8 +72,8 @@ pub struct DataLakeStoreAccountListResult { pub count: Option, } impl azure_core::Continuable for DataLakeStoreAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataLakeStoreAccountListResult { @@ -166,8 +166,8 @@ pub struct DataLakeStoreFirewallRuleListResult { pub count: Option, } impl azure_core::Continuable for DataLakeStoreFirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataLakeStoreFirewallRuleListResult { diff --git a/services/mgmt/datalakestore/src/package_2015_10_preview/operations.rs b/services/mgmt/datalakestore/src/package_2015_10_preview/operations.rs index f316b2b4fc..b1e24992fb 100644 --- a/services/mgmt/datalakestore/src/package_2015_10_preview/operations.rs +++ b/services/mgmt/datalakestore/src/package_2015_10_preview/operations.rs @@ -379,9 +379,9 @@ pub mod account { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -400,6 +400,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -841,9 +844,9 @@ pub mod account { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -862,6 +865,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -987,9 +993,9 @@ pub mod account { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1008,6 +1014,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datalakestore/src/package_2016_11/models.rs b/services/mgmt/datalakestore/src/package_2016_11/models.rs index 172e65d90b..bd5046962c 100644 --- a/services/mgmt/datalakestore/src/package_2016_11/models.rs +++ b/services/mgmt/datalakestore/src/package_2016_11/models.rs @@ -358,8 +358,8 @@ pub struct DataLakeStoreAccountListResult { pub next_link: Option, } impl azure_core::Continuable for DataLakeStoreAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataLakeStoreAccountListResult { @@ -614,8 +614,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -844,8 +844,8 @@ pub struct TrustedIdProviderListResult { pub next_link: Option, } impl azure_core::Continuable for TrustedIdProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TrustedIdProviderListResult { @@ -1140,7 +1140,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1189,8 +1189,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { diff --git a/services/mgmt/datalakestore/src/package_2016_11/operations.rs b/services/mgmt/datalakestore/src/package_2016_11/operations.rs index db4e1887b0..f74759a244 100644 --- a/services/mgmt/datalakestore/src/package_2016_11/operations.rs +++ b/services/mgmt/datalakestore/src/package_2016_11/operations.rs @@ -258,9 +258,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -279,6 +279,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -382,9 +385,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -403,6 +406,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -903,9 +909,9 @@ pub mod firewall_rules { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -924,6 +930,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1292,9 +1301,9 @@ pub mod virtual_network_rules { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1313,6 +1322,9 @@ pub mod virtual_network_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1681,9 +1693,9 @@ pub mod trusted_id_providers { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1702,6 +1714,9 @@ pub mod trusted_id_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datamigration/src/package_2018_04_19/models.rs b/services/mgmt/datamigration/src/package_2018_04_19/models.rs index 1ec57b7bcf..ae163ead33 100644 --- a/services/mgmt/datamigration/src/package_2018_04_19/models.rs +++ b/services/mgmt/datamigration/src/package_2018_04_19/models.rs @@ -12,7 +12,7 @@ pub struct ApiError { pub error: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1306,8 +1306,8 @@ pub struct DataMigrationServiceList { pub next_link: Option, } impl azure_core::Continuable for DataMigrationServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataMigrationServiceList { @@ -4547,8 +4547,8 @@ pub struct ProjectList { pub next_link: Option, } impl azure_core::Continuable for ProjectList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProjectList { @@ -4894,8 +4894,8 @@ pub struct QuotaList { pub next_link: Option, } impl azure_core::Continuable for QuotaList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaList { @@ -5193,8 +5193,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -5399,8 +5399,8 @@ pub struct ServiceOperationList { pub next_link: Option, } impl azure_core::Continuable for ServiceOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceOperationList { @@ -5443,8 +5443,8 @@ pub struct ServiceSkuList { pub next_link: Option, } impl azure_core::Continuable for ServiceSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceSkuList { @@ -5785,8 +5785,8 @@ pub struct TaskList { pub next_link: Option, } impl azure_core::Continuable for TaskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskList { diff --git a/services/mgmt/datamigration/src/package_2018_04_19/operations.rs b/services/mgmt/datamigration/src/package_2018_04_19/operations.rs index 6ee23c24b4..60d0a45880 100644 --- a/services/mgmt/datamigration/src/package_2018_04_19/operations.rs +++ b/services/mgmt/datamigration/src/package_2018_04_19/operations.rs @@ -124,9 +124,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -145,6 +145,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -781,9 +784,9 @@ pub mod services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -802,6 +805,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -911,9 +917,9 @@ pub mod services { &this.group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -932,6 +938,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -985,9 +994,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1006,6 +1015,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1241,9 +1253,9 @@ pub mod tasks { &this.project_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1262,6 +1274,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1716,9 +1731,9 @@ pub mod projects { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1737,6 +1752,9 @@ pub mod projects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2046,9 +2064,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2067,6 +2085,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2126,9 +2147,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataMigration/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2147,6 +2168,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datamigration/src/package_2021_06/models.rs b/services/mgmt/datamigration/src/package_2021_06/models.rs index 282d33cc99..3d06bc27ab 100644 --- a/services/mgmt/datamigration/src/package_2021_06/models.rs +++ b/services/mgmt/datamigration/src/package_2021_06/models.rs @@ -15,7 +15,7 @@ pub struct ApiError { pub system_data: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1535,8 +1535,8 @@ pub struct DataMigrationServiceList { pub next_link: Option, } impl azure_core::Continuable for DataMigrationServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataMigrationServiceList { @@ -2225,8 +2225,8 @@ pub struct FileList { pub next_link: Option, } impl azure_core::Continuable for FileList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FileList { @@ -6882,8 +6882,8 @@ pub struct ProjectList { pub next_link: Option, } impl azure_core::Continuable for ProjectList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProjectList { @@ -7252,8 +7252,8 @@ pub struct QuotaList { pub next_link: Option, } impl azure_core::Continuable for QuotaList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaList { @@ -7602,8 +7602,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -7979,8 +7979,8 @@ pub struct ServiceOperationList { pub next_link: Option, } impl azure_core::Continuable for ServiceOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceOperationList { @@ -8023,8 +8023,8 @@ pub struct ServiceSkuList { pub next_link: Option, } impl azure_core::Continuable for ServiceSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceSkuList { @@ -8521,8 +8521,8 @@ pub struct TaskList { pub next_link: Option, } impl azure_core::Continuable for TaskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskList { diff --git a/services/mgmt/datamigration/src/package_2021_06/operations.rs b/services/mgmt/datamigration/src/package_2021_06/operations.rs index 77bb547588..fa2310fb26 100644 --- a/services/mgmt/datamigration/src/package_2021_06/operations.rs +++ b/services/mgmt/datamigration/src/package_2021_06/operations.rs @@ -130,9 +130,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -151,6 +151,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -787,9 +790,9 @@ pub mod services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -808,6 +811,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -917,9 +923,9 @@ pub mod services { &this.group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -938,6 +944,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -991,9 +1000,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1012,6 +1021,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1267,9 +1279,9 @@ pub mod tasks { &this.project_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1288,6 +1300,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1815,9 +1830,9 @@ pub mod service_tasks { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1836,6 +1851,9 @@ pub mod service_tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2288,9 +2306,9 @@ pub mod projects { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2309,6 +2327,9 @@ pub mod projects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2618,9 +2639,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2639,6 +2660,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2698,9 +2722,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataMigration/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2719,6 +2743,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2912,9 +2939,9 @@ pub mod files { &this.project_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2933,6 +2960,9 @@ pub mod files { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datamigration/src/package_preview_2021_10/models.rs b/services/mgmt/datamigration/src/package_preview_2021_10/models.rs index c2036ed7ea..e9f0be9ce5 100644 --- a/services/mgmt/datamigration/src/package_preview_2021_10/models.rs +++ b/services/mgmt/datamigration/src/package_preview_2021_10/models.rs @@ -14,7 +14,7 @@ pub struct ApiError { pub system_data: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1626,8 +1626,8 @@ pub struct DataMigrationServiceList { pub next_link: Option, } impl azure_core::Continuable for DataMigrationServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataMigrationServiceList { @@ -2013,8 +2013,8 @@ pub struct DatabaseMigrationListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseMigrationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseMigrationListResult { @@ -2555,8 +2555,8 @@ pub struct FileList { pub next_link: Option, } impl azure_core::Continuable for FileList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FileList { @@ -7279,8 +7279,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -7536,8 +7536,8 @@ pub struct ProjectList { pub next_link: Option, } impl azure_core::Continuable for ProjectList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProjectList { @@ -8096,8 +8096,8 @@ pub struct QuotaList { pub next_link: Option, } impl azure_core::Continuable for QuotaList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaList { @@ -8464,8 +8464,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -8883,8 +8883,8 @@ pub struct ServiceSkuList { pub next_link: Option, } impl azure_core::Continuable for ServiceSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceSkuList { @@ -9124,8 +9124,8 @@ pub struct SqlMigrationListResult { pub next_link: Option, } impl azure_core::Continuable for SqlMigrationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlMigrationListResult { @@ -9706,8 +9706,8 @@ pub struct TaskList { pub next_link: Option, } impl azure_core::Continuable for TaskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskList { diff --git a/services/mgmt/datamigration/src/package_preview_2021_10/operations.rs b/services/mgmt/datamigration/src/package_preview_2021_10/operations.rs index f9c94c7792..c8be95c525 100644 --- a/services/mgmt/datamigration/src/package_preview_2021_10/operations.rs +++ b/services/mgmt/datamigration/src/package_preview_2021_10/operations.rs @@ -731,9 +731,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataMigration/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -752,6 +752,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1191,9 +1194,9 @@ pub mod sql_migration_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1212,6 +1215,9 @@ pub mod sql_migration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1418,9 +1424,9 @@ pub mod sql_migration_services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataMigration/sqlMigrationServices/{}/listMigrations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . sql_migration_service_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1439,6 +1445,9 @@ pub mod sql_migration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1539,9 +1548,9 @@ pub mod sql_migration_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1560,6 +1569,9 @@ pub mod sql_migration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1626,9 +1638,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1647,6 +1659,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2283,9 +2298,9 @@ pub mod services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2304,6 +2319,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2413,9 +2431,9 @@ pub mod services { &this.group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2434,6 +2452,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2487,9 +2508,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2508,6 +2529,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2763,9 +2787,9 @@ pub mod tasks { &this.project_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2784,6 +2808,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3311,9 +3338,9 @@ pub mod service_tasks { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3332,6 +3359,9 @@ pub mod service_tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3784,9 +3814,9 @@ pub mod projects { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3805,6 +3835,9 @@ pub mod projects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4114,9 +4147,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4135,6 +4168,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4328,9 +4364,9 @@ pub mod files { &this.project_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4349,6 +4385,9 @@ pub mod files { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datamigration/src/package_preview_2022_01/models.rs b/services/mgmt/datamigration/src/package_preview_2022_01/models.rs index 3be432d324..574991d4f7 100644 --- a/services/mgmt/datamigration/src/package_preview_2022_01/models.rs +++ b/services/mgmt/datamigration/src/package_preview_2022_01/models.rs @@ -14,7 +14,7 @@ pub struct ApiError { pub system_data: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1648,8 +1648,8 @@ pub struct DataMigrationServiceList { pub next_link: Option, } impl azure_core::Continuable for DataMigrationServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataMigrationServiceList { @@ -2038,8 +2038,8 @@ pub struct DatabaseMigrationListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseMigrationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseMigrationListResult { @@ -2580,8 +2580,8 @@ pub struct FileList { pub next_link: Option, } impl azure_core::Continuable for FileList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FileList { @@ -7383,8 +7383,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -7652,8 +7652,8 @@ pub struct ProjectList { pub next_link: Option, } impl azure_core::Continuable for ProjectList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProjectList { @@ -8212,8 +8212,8 @@ pub struct QuotaList { pub next_link: Option, } impl azure_core::Continuable for QuotaList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaList { @@ -8580,8 +8580,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -9001,8 +9001,8 @@ pub struct ServiceSkuList { pub next_link: Option, } impl azure_core::Continuable for ServiceSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceSkuList { @@ -9250,8 +9250,8 @@ pub struct SqlMigrationListResult { pub next_link: Option, } impl azure_core::Continuable for SqlMigrationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlMigrationListResult { @@ -9832,8 +9832,8 @@ pub struct TaskList { pub next_link: Option, } impl azure_core::Continuable for TaskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskList { diff --git a/services/mgmt/datamigration/src/package_preview_2022_01/operations.rs b/services/mgmt/datamigration/src/package_preview_2022_01/operations.rs index 6d35f732c1..dafdb7c876 100644 --- a/services/mgmt/datamigration/src/package_preview_2022_01/operations.rs +++ b/services/mgmt/datamigration/src/package_preview_2022_01/operations.rs @@ -731,9 +731,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataMigration/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -752,6 +752,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1191,9 +1194,9 @@ pub mod sql_migration_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1212,6 +1215,9 @@ pub mod sql_migration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1418,9 +1424,9 @@ pub mod sql_migration_services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataMigration/sqlMigrationServices/{}/listMigrations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . sql_migration_service_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1439,6 +1445,9 @@ pub mod sql_migration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1539,9 +1548,9 @@ pub mod sql_migration_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1560,6 +1569,9 @@ pub mod sql_migration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1626,9 +1638,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1647,6 +1659,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2283,9 +2298,9 @@ pub mod services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2304,6 +2319,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2413,9 +2431,9 @@ pub mod services { &this.group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2434,6 +2452,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2487,9 +2508,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2508,6 +2529,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2763,9 +2787,9 @@ pub mod tasks { &this.project_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2784,6 +2808,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3311,9 +3338,9 @@ pub mod service_tasks { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3332,6 +3359,9 @@ pub mod service_tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3784,9 +3814,9 @@ pub mod projects { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3805,6 +3835,9 @@ pub mod projects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4114,9 +4147,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4135,6 +4168,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4328,9 +4364,9 @@ pub mod files { &this.project_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4349,6 +4385,9 @@ pub mod files { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datamigration/src/package_preview_2022_03/models.rs b/services/mgmt/datamigration/src/package_preview_2022_03/models.rs index d3468f5629..a563ee5769 100644 --- a/services/mgmt/datamigration/src/package_preview_2022_03/models.rs +++ b/services/mgmt/datamigration/src/package_preview_2022_03/models.rs @@ -14,7 +14,7 @@ pub struct ApiError { pub system_data: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1685,8 +1685,8 @@ pub struct DataMigrationServiceList { pub next_link: Option, } impl azure_core::Continuable for DataMigrationServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataMigrationServiceList { @@ -2075,8 +2075,8 @@ pub struct DatabaseMigrationListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseMigrationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseMigrationListResult { @@ -2660,8 +2660,8 @@ pub struct FileList { pub next_link: Option, } impl azure_core::Continuable for FileList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FileList { @@ -7475,8 +7475,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -7760,8 +7760,8 @@ pub struct ProjectList { pub next_link: Option, } impl azure_core::Continuable for ProjectList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProjectList { @@ -8320,8 +8320,8 @@ pub struct QuotaList { pub next_link: Option, } impl azure_core::Continuable for QuotaList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaList { @@ -8688,8 +8688,8 @@ pub struct ResourceSkusResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -9109,8 +9109,8 @@ pub struct ServiceSkuList { pub next_link: Option, } impl azure_core::Continuable for ServiceSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceSkuList { @@ -9391,8 +9391,8 @@ pub struct SqlMigrationListResult { pub next_link: Option, } impl azure_core::Continuable for SqlMigrationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlMigrationListResult { @@ -9973,8 +9973,8 @@ pub struct TaskList { pub next_link: Option, } impl azure_core::Continuable for TaskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TaskList { diff --git a/services/mgmt/datamigration/src/package_preview_2022_03/operations.rs b/services/mgmt/datamigration/src/package_preview_2022_03/operations.rs index 462ac14c24..3deeaa684d 100644 --- a/services/mgmt/datamigration/src/package_preview_2022_03/operations.rs +++ b/services/mgmt/datamigration/src/package_preview_2022_03/operations.rs @@ -1041,9 +1041,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataMigration/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1062,6 +1062,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1501,9 +1504,9 @@ pub mod sql_migration_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1522,6 +1525,9 @@ pub mod sql_migration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1728,9 +1734,9 @@ pub mod sql_migration_services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataMigration/sqlMigrationServices/{}/listMigrations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . sql_migration_service_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1749,6 +1755,9 @@ pub mod sql_migration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1849,9 +1858,9 @@ pub mod sql_migration_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1870,6 +1879,9 @@ pub mod sql_migration_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1936,9 +1948,9 @@ pub mod resource_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1957,6 +1969,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2593,9 +2608,9 @@ pub mod services { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2614,6 +2629,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2723,9 +2741,9 @@ pub mod services { &this.group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2744,6 +2762,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2797,9 +2818,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2818,6 +2839,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3073,9 +3097,9 @@ pub mod tasks { &this.project_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3094,6 +3118,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3621,9 +3648,9 @@ pub mod service_tasks { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3642,6 +3669,9 @@ pub mod service_tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4094,9 +4124,9 @@ pub mod projects { &this.service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4115,6 +4145,9 @@ pub mod projects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4424,9 +4457,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4445,6 +4478,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4638,9 +4674,9 @@ pub mod files { &this.project_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4659,6 +4695,9 @@ pub mod files { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dataprotection/src/package_2021_01/models.rs b/services/mgmt/dataprotection/src/package_2021_01/models.rs index a7752bda68..d2ca504ac8 100644 --- a/services/mgmt/dataprotection/src/package_2021_01/models.rs +++ b/services/mgmt/dataprotection/src/package_2021_01/models.rs @@ -383,7 +383,7 @@ pub struct AzureBackupJobResourceList { pub value: Vec, } impl azure_core::Continuable for AzureBackupJobResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -460,7 +460,7 @@ pub struct AzureBackupRecoveryPointResourceList { pub value: Vec, } impl azure_core::Continuable for AzureBackupRecoveryPointResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -806,7 +806,7 @@ pub struct BackupInstanceResourceList { pub value: Vec, } impl azure_core::Continuable for BackupInstanceResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -946,7 +946,7 @@ pub struct BackupVaultResourceList { pub value: Vec, } impl azure_core::Continuable for BackupVaultResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -996,7 +996,7 @@ pub struct BaseBackupPolicyResourceList { pub value: Vec, } impl azure_core::Continuable for BaseBackupPolicyResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1124,8 +1124,8 @@ pub struct ClientDiscoveryResponse { pub value: Vec, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -1165,7 +1165,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/dataprotection/src/package_2021_01/operations.rs b/services/mgmt/dataprotection/src/package_2021_01/operations.rs index f0ea5e1881..3bb3facd4d 100644 --- a/services/mgmt/dataprotection/src/package_2021_01/operations.rs +++ b/services/mgmt/dataprotection/src/package_2021_01/operations.rs @@ -227,9 +227,9 @@ pub mod backup_vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -248,6 +248,9 @@ pub mod backup_vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -303,9 +306,9 @@ pub mod backup_vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -324,6 +327,9 @@ pub mod backup_vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -963,9 +969,9 @@ pub mod data_protection_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataProtection/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -984,6 +990,9 @@ pub mod data_protection_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1110,9 +1119,9 @@ pub mod backup_policies { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1131,6 +1140,9 @@ pub mod backup_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1502,9 +1514,9 @@ pub mod backup_instances { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1523,6 +1535,9 @@ pub mod backup_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2079,9 +2094,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupInstances/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . backup_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2100,6 +2115,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2245,9 +2263,9 @@ pub mod jobs { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2266,6 +2284,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dataprotection/src/package_2021_07/models.rs b/services/mgmt/dataprotection/src/package_2021_07/models.rs index 2efef2e375..659ec41393 100644 --- a/services/mgmt/dataprotection/src/package_2021_07/models.rs +++ b/services/mgmt/dataprotection/src/package_2021_07/models.rs @@ -394,7 +394,7 @@ pub struct AzureBackupJobResourceList { pub value: Vec, } impl azure_core::Continuable for AzureBackupJobResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -471,7 +471,7 @@ pub struct AzureBackupRecoveryPointResourceList { pub value: Vec, } impl azure_core::Continuable for AzureBackupRecoveryPointResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -821,7 +821,7 @@ pub struct BackupInstanceResourceList { pub value: Vec, } impl azure_core::Continuable for BackupInstanceResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1028,7 +1028,7 @@ pub struct BackupVaultResourceList { pub value: Vec, } impl azure_core::Continuable for BackupVaultResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1078,7 +1078,7 @@ pub struct BaseBackupPolicyResourceList { pub value: Vec, } impl azure_core::Continuable for BaseBackupPolicyResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1206,8 +1206,8 @@ pub struct ClientDiscoveryResponse { pub value: Vec, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -1247,7 +1247,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1550,8 +1550,8 @@ pub struct DppBaseResourceList { pub next_link: Option, } impl azure_core::Continuable for DppBaseResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DppBaseResourceList { @@ -2444,7 +2444,7 @@ pub struct ResourceGuardResourceList { pub value: Vec, } impl azure_core::Continuable for ResourceGuardResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/dataprotection/src/package_2021_07/operations.rs b/services/mgmt/dataprotection/src/package_2021_07/operations.rs index 08b08eb561..4794e70e9e 100644 --- a/services/mgmt/dataprotection/src/package_2021_07/operations.rs +++ b/services/mgmt/dataprotection/src/package_2021_07/operations.rs @@ -230,9 +230,9 @@ pub mod backup_vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -251,6 +251,9 @@ pub mod backup_vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -306,9 +309,9 @@ pub mod backup_vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -327,6 +330,9 @@ pub mod backup_vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -971,9 +977,9 @@ pub mod data_protection_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataProtection/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -992,6 +998,9 @@ pub mod data_protection_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1118,9 +1127,9 @@ pub mod backup_policies { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1139,6 +1148,9 @@ pub mod backup_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1510,9 +1522,9 @@ pub mod backup_instances { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1531,6 +1543,9 @@ pub mod backup_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2087,9 +2102,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupInstances/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . backup_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2108,6 +2123,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2253,9 +2271,9 @@ pub mod jobs { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2274,6 +2292,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2866,9 +2887,9 @@ pub mod resource_guards { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2887,6 +2908,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2942,9 +2966,9 @@ pub mod resource_guards { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2963,6 +2987,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3227,9 +3254,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/disableSoftDeleteRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3248,6 +3275,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3299,9 +3329,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/deleteResourceGuardProxyRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3320,6 +3350,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3371,9 +3404,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/getBackupSecurityPINRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3392,6 +3425,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3443,9 +3479,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/deleteProtectedItemRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3464,6 +3500,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3515,9 +3554,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/updateProtectionPolicyRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3536,6 +3575,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3587,9 +3629,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/updateProtectedItemRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3608,6 +3650,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dataprotection/src/package_2022_01/models.rs b/services/mgmt/dataprotection/src/package_2022_01/models.rs index 1c4bd5a47a..ce04502658 100644 --- a/services/mgmt/dataprotection/src/package_2022_01/models.rs +++ b/services/mgmt/dataprotection/src/package_2022_01/models.rs @@ -394,7 +394,7 @@ pub struct AzureBackupJobResourceList { pub value: Vec, } impl azure_core::Continuable for AzureBackupJobResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -471,7 +471,7 @@ pub struct AzureBackupRecoveryPointResourceList { pub value: Vec, } impl azure_core::Continuable for AzureBackupRecoveryPointResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -866,7 +866,7 @@ pub struct BackupInstanceResourceList { pub value: Vec, } impl azure_core::Continuable for BackupInstanceResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1073,7 +1073,7 @@ pub struct BackupVaultResourceList { pub value: Vec, } impl azure_core::Continuable for BackupVaultResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1123,7 +1123,7 @@ pub struct BaseBackupPolicyResourceList { pub value: Vec, } impl azure_core::Continuable for BaseBackupPolicyResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1251,8 +1251,8 @@ pub struct ClientDiscoveryResponse { pub value: Vec, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -1292,7 +1292,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1595,8 +1595,8 @@ pub struct DppBaseResourceList { pub next_link: Option, } impl azure_core::Continuable for DppBaseResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DppBaseResourceList { @@ -2489,7 +2489,7 @@ pub struct ResourceGuardResourceList { pub value: Vec, } impl azure_core::Continuable for ResourceGuardResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/dataprotection/src/package_2022_01/operations.rs b/services/mgmt/dataprotection/src/package_2022_01/operations.rs index ec8f486e3c..eb690a567a 100644 --- a/services/mgmt/dataprotection/src/package_2022_01/operations.rs +++ b/services/mgmt/dataprotection/src/package_2022_01/operations.rs @@ -236,9 +236,9 @@ pub mod backup_vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -257,6 +257,9 @@ pub mod backup_vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -312,9 +315,9 @@ pub mod backup_vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -333,6 +336,9 @@ pub mod backup_vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1125,9 +1131,9 @@ pub mod data_protection_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataProtection/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1146,6 +1152,9 @@ pub mod data_protection_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1272,9 +1281,9 @@ pub mod backup_policies { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1293,6 +1302,9 @@ pub mod backup_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1758,9 +1770,9 @@ pub mod backup_instances { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1779,6 +1791,9 @@ pub mod backup_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2641,9 +2656,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupInstances/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . backup_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2662,6 +2677,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2807,9 +2825,9 @@ pub mod jobs { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2828,6 +2846,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3420,9 +3441,9 @@ pub mod resource_guards { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3441,6 +3462,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3496,9 +3520,9 @@ pub mod resource_guards { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3517,6 +3541,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3781,9 +3808,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/disableSoftDeleteRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3802,6 +3829,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3853,9 +3883,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/deleteResourceGuardProxyRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3874,6 +3904,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3925,9 +3958,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/getBackupSecurityPINRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3946,6 +3979,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3997,9 +4033,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/deleteProtectedItemRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4018,6 +4054,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4069,9 +4108,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/updateProtectionPolicyRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4090,6 +4129,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4141,9 +4183,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/updateProtectedItemRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4162,6 +4204,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dataprotection/src/package_2022_03/models.rs b/services/mgmt/dataprotection/src/package_2022_03/models.rs index 23dd415902..befd0fcb2c 100644 --- a/services/mgmt/dataprotection/src/package_2022_03/models.rs +++ b/services/mgmt/dataprotection/src/package_2022_03/models.rs @@ -394,7 +394,7 @@ pub struct AzureBackupJobResourceList { pub value: Vec, } impl azure_core::Continuable for AzureBackupJobResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -471,7 +471,7 @@ pub struct AzureBackupRecoveryPointResourceList { pub value: Vec, } impl azure_core::Continuable for AzureBackupRecoveryPointResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -866,7 +866,7 @@ pub struct BackupInstanceResourceList { pub value: Vec, } impl azure_core::Continuable for BackupInstanceResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1073,7 +1073,7 @@ pub struct BackupVaultResourceList { pub value: Vec, } impl azure_core::Continuable for BackupVaultResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1123,7 +1123,7 @@ pub struct BaseBackupPolicyResourceList { pub value: Vec, } impl azure_core::Continuable for BaseBackupPolicyResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1251,8 +1251,8 @@ pub struct ClientDiscoveryResponse { pub value: Vec, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -1292,7 +1292,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1595,8 +1595,8 @@ pub struct DppBaseResourceList { pub next_link: Option, } impl azure_core::Continuable for DppBaseResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DppBaseResourceList { @@ -2531,7 +2531,7 @@ pub struct ResourceGuardResourceList { pub value: Vec, } impl azure_core::Continuable for ResourceGuardResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/dataprotection/src/package_2022_03/operations.rs b/services/mgmt/dataprotection/src/package_2022_03/operations.rs index a7b338ab99..a6f7f5c67f 100644 --- a/services/mgmt/dataprotection/src/package_2022_03/operations.rs +++ b/services/mgmt/dataprotection/src/package_2022_03/operations.rs @@ -236,9 +236,9 @@ pub mod backup_vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -257,6 +257,9 @@ pub mod backup_vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -312,9 +315,9 @@ pub mod backup_vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -333,6 +336,9 @@ pub mod backup_vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1125,9 +1131,9 @@ pub mod data_protection_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataProtection/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1146,6 +1152,9 @@ pub mod data_protection_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1272,9 +1281,9 @@ pub mod backup_policies { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1293,6 +1302,9 @@ pub mod backup_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1758,9 +1770,9 @@ pub mod backup_instances { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1779,6 +1791,9 @@ pub mod backup_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2641,9 +2656,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupInstances/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . backup_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2662,6 +2677,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2807,9 +2825,9 @@ pub mod jobs { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2828,6 +2846,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3420,9 +3441,9 @@ pub mod resource_guards { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3441,6 +3462,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3496,9 +3520,9 @@ pub mod resource_guards { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3517,6 +3541,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3781,9 +3808,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/disableSoftDeleteRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3802,6 +3829,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3853,9 +3883,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/deleteResourceGuardProxyRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3874,6 +3904,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3925,9 +3958,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/getBackupSecurityPINRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3946,6 +3979,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3997,9 +4033,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/deleteProtectedItemRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4018,6 +4054,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4069,9 +4108,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/updateProtectionPolicyRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4090,6 +4129,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4141,9 +4183,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/updateProtectedItemRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4162,6 +4204,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dataprotection/src/package_2022_04/models.rs b/services/mgmt/dataprotection/src/package_2022_04/models.rs index 3344c59441..abbf141b8e 100644 --- a/services/mgmt/dataprotection/src/package_2022_04/models.rs +++ b/services/mgmt/dataprotection/src/package_2022_04/models.rs @@ -394,7 +394,7 @@ pub struct AzureBackupJobResourceList { pub value: Vec, } impl azure_core::Continuable for AzureBackupJobResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -471,7 +471,7 @@ pub struct AzureBackupRecoveryPointResourceList { pub value: Vec, } impl azure_core::Continuable for AzureBackupRecoveryPointResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -916,7 +916,7 @@ pub struct BackupInstanceResourceList { pub value: Vec, } impl azure_core::Continuable for BackupInstanceResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1127,7 +1127,7 @@ pub struct BackupVaultResourceList { pub value: Vec, } impl azure_core::Continuable for BackupVaultResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1177,7 +1177,7 @@ pub struct BaseBackupPolicyResourceList { pub value: Vec, } impl azure_core::Continuable for BaseBackupPolicyResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1305,8 +1305,8 @@ pub struct ClientDiscoveryResponse { pub value: Vec, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -1346,7 +1346,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1649,8 +1649,8 @@ pub struct DppBaseResourceList { pub next_link: Option, } impl azure_core::Continuable for DppBaseResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DppBaseResourceList { @@ -2612,7 +2612,7 @@ pub struct ResourceGuardResourceList { pub value: Vec, } impl azure_core::Continuable for ResourceGuardResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/dataprotection/src/package_2022_04/operations.rs b/services/mgmt/dataprotection/src/package_2022_04/operations.rs index 3d5949a3ab..2878e32ca6 100644 --- a/services/mgmt/dataprotection/src/package_2022_04/operations.rs +++ b/services/mgmt/dataprotection/src/package_2022_04/operations.rs @@ -236,9 +236,9 @@ pub mod backup_vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -257,6 +257,9 @@ pub mod backup_vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -312,9 +315,9 @@ pub mod backup_vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -333,6 +336,9 @@ pub mod backup_vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1125,9 +1131,9 @@ pub mod data_protection_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataProtection/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1146,6 +1152,9 @@ pub mod data_protection_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1272,9 +1281,9 @@ pub mod backup_policies { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1293,6 +1302,9 @@ pub mod backup_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1758,9 +1770,9 @@ pub mod backup_instances { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1779,6 +1791,9 @@ pub mod backup_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2641,9 +2656,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/backupVaults/{}/backupInstances/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . backup_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2662,6 +2677,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2807,9 +2825,9 @@ pub mod jobs { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2828,6 +2846,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3420,9 +3441,9 @@ pub mod resource_guards { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3441,6 +3462,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3496,9 +3520,9 @@ pub mod resource_guards { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3517,6 +3541,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3781,9 +3808,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/disableSoftDeleteRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3802,6 +3829,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3853,9 +3883,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/deleteResourceGuardProxyRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3874,6 +3904,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3925,9 +3958,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/getBackupSecurityPINRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3946,6 +3979,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3997,9 +4033,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/deleteProtectedItemRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4018,6 +4054,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4069,9 +4108,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/updateProtectionPolicyRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4090,6 +4129,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4141,9 +4183,9 @@ pub mod resource_guards { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataProtection/resourceGuards/{}/updateProtectedItemRequests" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_guards_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4162,6 +4204,9 @@ pub mod resource_guards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs b/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs index 27d87a9641..870eca7f1e 100644 --- a/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs +++ b/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs @@ -753,8 +753,8 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -1494,8 +1494,8 @@ pub struct ConsumerInvitationList { pub value: Vec, } impl azure_core::Continuable for ConsumerInvitationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerInvitationList { @@ -1637,8 +1637,8 @@ pub struct ConsumerSourceDataSetList { pub value: Vec, } impl azure_core::Continuable for ConsumerSourceDataSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerSourceDataSetList { @@ -1820,8 +1820,8 @@ pub struct DataSetList { pub value: Vec, } impl azure_core::Continuable for DataSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSetList { @@ -1913,8 +1913,8 @@ pub struct DataSetMappingList { pub value: Vec, } impl azure_core::Continuable for DataSetMappingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSetMappingList { @@ -1929,7 +1929,7 @@ pub struct DataShareError { pub error: DataShareErrorInfo, } impl azure_core::Continuable for DataShareError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2074,8 +2074,8 @@ pub struct InvitationList { pub value: Vec, } impl azure_core::Continuable for InvitationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvitationList { @@ -2601,8 +2601,8 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -2839,8 +2839,8 @@ pub struct ProviderShareSubscriptionList { pub value: Vec, } impl azure_core::Continuable for ProviderShareSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderShareSubscriptionList { @@ -3386,8 +3386,8 @@ pub struct ShareList { pub value: Vec, } impl azure_core::Continuable for ShareList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareList { @@ -3534,8 +3534,8 @@ pub struct ShareSubscriptionList { pub value: Vec, } impl azure_core::Continuable for ShareSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSubscriptionList { @@ -3817,8 +3817,8 @@ pub struct ShareSubscriptionSynchronizationList { pub value: Vec, } impl azure_core::Continuable for ShareSubscriptionSynchronizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSubscriptionSynchronizationList { @@ -3915,8 +3915,8 @@ pub struct ShareSynchronizationList { pub value: Vec, } impl azure_core::Continuable for ShareSynchronizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSynchronizationList { @@ -3983,8 +3983,8 @@ pub struct SourceShareSynchronizationSettingList { pub value: Vec, } impl azure_core::Continuable for SourceShareSynchronizationSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceShareSynchronizationSettingList { @@ -4498,8 +4498,8 @@ pub struct SynchronizationDetailsList { pub value: Vec, } impl azure_core::Continuable for SynchronizationDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SynchronizationDetailsList { @@ -4571,8 +4571,8 @@ pub struct SynchronizationSettingList { pub value: Vec, } impl azure_core::Continuable for SynchronizationSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SynchronizationSettingList { @@ -4696,8 +4696,8 @@ pub struct TriggerList { pub value: Vec, } impl azure_core::Continuable for TriggerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerList { diff --git a/services/mgmt/datashare/src/package_2018_11_01_preview/operations.rs b/services/mgmt/datashare/src/package_2018_11_01_preview/operations.rs index cde313340b..1d5ffaddf2 100644 --- a/services/mgmt/datashare/src/package_2018_11_01_preview/operations.rs +++ b/services/mgmt/datashare/src/package_2018_11_01_preview/operations.rs @@ -221,9 +221,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -242,6 +242,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -535,9 +538,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -556,6 +559,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -646,9 +652,9 @@ pub mod consumer_invitations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataShare/listInvitations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -667,6 +673,9 @@ pub mod consumer_invitations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1108,9 +1117,9 @@ pub mod data_sets { &this.share_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1129,6 +1138,9 @@ pub mod data_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1442,9 +1454,9 @@ pub mod data_set_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/dataSetMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1463,6 +1475,9 @@ pub mod data_set_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1807,9 +1822,9 @@ pub mod invitations { &this.share_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1828,6 +1843,9 @@ pub mod invitations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1896,9 +1914,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataShare/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1917,6 +1935,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2098,9 +2119,9 @@ pub mod shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/listSynchronizationDetails" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2119,6 +2140,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2196,9 +2220,9 @@ pub mod shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/listSynchronizations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2217,6 +2241,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2480,9 +2507,9 @@ pub mod shares { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2501,6 +2528,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2800,9 +2830,9 @@ pub mod provider_share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/providerShareSubscriptions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2821,6 +2851,9 @@ pub mod provider_share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3106,9 +3139,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSourceShareSynchronizationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3127,6 +3160,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3199,9 +3235,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSynchronizationDetails" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3220,6 +3256,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3297,9 +3336,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSynchronizations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3318,6 +3357,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3640,9 +3682,9 @@ pub mod share_subscriptions { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3661,6 +3703,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3750,9 +3795,9 @@ pub mod consumer_source_data_sets { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/consumerSourceDataSets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3771,6 +3816,9 @@ pub mod consumer_source_data_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4073,9 +4121,9 @@ pub mod synchronization_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/synchronizationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4094,6 +4142,9 @@ pub mod synchronization_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4397,9 +4448,9 @@ pub mod triggers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/triggers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4418,6 +4469,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datashare/src/package_2019_11_01/models.rs b/services/mgmt/datashare/src/package_2019_11_01/models.rs index fa470fb80b..e7dda32dd9 100644 --- a/services/mgmt/datashare/src/package_2019_11_01/models.rs +++ b/services/mgmt/datashare/src/package_2019_11_01/models.rs @@ -753,8 +753,8 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -1494,8 +1494,8 @@ pub struct ConsumerInvitationList { pub value: Vec, } impl azure_core::Continuable for ConsumerInvitationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerInvitationList { @@ -1637,8 +1637,8 @@ pub struct ConsumerSourceDataSetList { pub value: Vec, } impl azure_core::Continuable for ConsumerSourceDataSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerSourceDataSetList { @@ -1820,8 +1820,8 @@ pub struct DataSetList { pub value: Vec, } impl azure_core::Continuable for DataSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSetList { @@ -1913,8 +1913,8 @@ pub struct DataSetMappingList { pub value: Vec, } impl azure_core::Continuable for DataSetMappingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSetMappingList { @@ -1929,7 +1929,7 @@ pub struct DataShareError { pub error: DataShareErrorInfo, } impl azure_core::Continuable for DataShareError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2142,8 +2142,8 @@ pub struct InvitationList { pub value: Vec, } impl azure_core::Continuable for InvitationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvitationList { @@ -2669,8 +2669,8 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -2907,8 +2907,8 @@ pub struct ProviderShareSubscriptionList { pub value: Vec, } impl azure_core::Continuable for ProviderShareSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderShareSubscriptionList { @@ -3454,8 +3454,8 @@ pub struct ShareList { pub value: Vec, } impl azure_core::Continuable for ShareList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareList { @@ -3602,8 +3602,8 @@ pub struct ShareSubscriptionList { pub value: Vec, } impl azure_core::Continuable for ShareSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSubscriptionList { @@ -3889,8 +3889,8 @@ pub struct ShareSubscriptionSynchronizationList { pub value: Vec, } impl azure_core::Continuable for ShareSubscriptionSynchronizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSubscriptionSynchronizationList { @@ -3987,8 +3987,8 @@ pub struct ShareSynchronizationList { pub value: Vec, } impl azure_core::Continuable for ShareSynchronizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSynchronizationList { @@ -4055,8 +4055,8 @@ pub struct SourceShareSynchronizationSettingList { pub value: Vec, } impl azure_core::Continuable for SourceShareSynchronizationSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceShareSynchronizationSettingList { @@ -4570,8 +4570,8 @@ pub struct SynchronizationDetailsList { pub value: Vec, } impl azure_core::Continuable for SynchronizationDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SynchronizationDetailsList { @@ -4643,8 +4643,8 @@ pub struct SynchronizationSettingList { pub value: Vec, } impl azure_core::Continuable for SynchronizationSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SynchronizationSettingList { @@ -4768,8 +4768,8 @@ pub struct TriggerList { pub value: Vec, } impl azure_core::Continuable for TriggerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerList { diff --git a/services/mgmt/datashare/src/package_2019_11_01/operations.rs b/services/mgmt/datashare/src/package_2019_11_01/operations.rs index 4523522daf..3a812a7c25 100644 --- a/services/mgmt/datashare/src/package_2019_11_01/operations.rs +++ b/services/mgmt/datashare/src/package_2019_11_01/operations.rs @@ -224,9 +224,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -245,6 +245,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -538,9 +541,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -559,6 +562,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -649,9 +655,9 @@ pub mod consumer_invitations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataShare/listInvitations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -670,6 +676,9 @@ pub mod consumer_invitations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1111,9 +1120,9 @@ pub mod data_sets { &this.share_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1132,6 +1141,9 @@ pub mod data_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1445,9 +1457,9 @@ pub mod data_set_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/dataSetMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1466,6 +1478,9 @@ pub mod data_set_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1934,9 +1949,9 @@ pub mod invitations { &this.share_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1955,6 +1970,9 @@ pub mod invitations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2023,9 +2041,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataShare/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2044,6 +2062,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2225,9 +2246,9 @@ pub mod shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/listSynchronizationDetails" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2246,6 +2267,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2323,9 +2347,9 @@ pub mod shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/listSynchronizations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2344,6 +2368,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2607,9 +2634,9 @@ pub mod shares { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2628,6 +2655,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2927,9 +2957,9 @@ pub mod provider_share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/providerShareSubscriptions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2948,6 +2978,9 @@ pub mod provider_share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3233,9 +3266,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSourceShareSynchronizationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3254,6 +3287,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3326,9 +3362,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSynchronizationDetails" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3347,6 +3383,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3424,9 +3463,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSynchronizations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3445,6 +3484,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3767,9 +3809,9 @@ pub mod share_subscriptions { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3788,6 +3830,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3877,9 +3922,9 @@ pub mod consumer_source_data_sets { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/consumerSourceDataSets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3898,6 +3943,9 @@ pub mod consumer_source_data_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4200,9 +4248,9 @@ pub mod synchronization_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/synchronizationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4221,6 +4269,9 @@ pub mod synchronization_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4524,9 +4575,9 @@ pub mod triggers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/triggers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4545,6 +4596,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datashare/src/package_2020_09_01/models.rs b/services/mgmt/datashare/src/package_2020_09_01/models.rs index 736e16d5f6..9bdf88702a 100644 --- a/services/mgmt/datashare/src/package_2020_09_01/models.rs +++ b/services/mgmt/datashare/src/package_2020_09_01/models.rs @@ -753,8 +753,8 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -1494,8 +1494,8 @@ pub struct ConsumerInvitationList { pub value: Vec, } impl azure_core::Continuable for ConsumerInvitationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerInvitationList { @@ -1641,8 +1641,8 @@ pub struct ConsumerSourceDataSetList { pub value: Vec, } impl azure_core::Continuable for ConsumerSourceDataSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerSourceDataSetList { @@ -1830,8 +1830,8 @@ pub struct DataSetList { pub value: Vec, } impl azure_core::Continuable for DataSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSetList { @@ -1925,8 +1925,8 @@ pub struct DataSetMappingList { pub value: Vec, } impl azure_core::Continuable for DataSetMappingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSetMappingList { @@ -1941,7 +1941,7 @@ pub struct DataShareError { pub error: DataShareErrorInfo, } impl azure_core::Continuable for DataShareError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2154,8 +2154,8 @@ pub struct InvitationList { pub value: Vec, } impl azure_core::Continuable for InvitationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvitationList { @@ -2684,8 +2684,8 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -2922,8 +2922,8 @@ pub struct ProviderShareSubscriptionList { pub value: Vec, } impl azure_core::Continuable for ProviderShareSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderShareSubscriptionList { @@ -3475,8 +3475,8 @@ pub struct ShareList { pub value: Vec, } impl azure_core::Continuable for ShareList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareList { @@ -3623,8 +3623,8 @@ pub struct ShareSubscriptionList { pub value: Vec, } impl azure_core::Continuable for ShareSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSubscriptionList { @@ -3914,8 +3914,8 @@ pub struct ShareSubscriptionSynchronizationList { pub value: Vec, } impl azure_core::Continuable for ShareSubscriptionSynchronizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSubscriptionSynchronizationList { @@ -4012,8 +4012,8 @@ pub struct ShareSynchronizationList { pub value: Vec, } impl azure_core::Continuable for ShareSynchronizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSynchronizationList { @@ -4080,8 +4080,8 @@ pub struct SourceShareSynchronizationSettingList { pub value: Vec, } impl azure_core::Continuable for SourceShareSynchronizationSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceShareSynchronizationSettingList { @@ -4755,8 +4755,8 @@ pub struct SynchronizationDetailsList { pub value: Vec, } impl azure_core::Continuable for SynchronizationDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SynchronizationDetailsList { @@ -4828,8 +4828,8 @@ pub struct SynchronizationSettingList { pub value: Vec, } impl azure_core::Continuable for SynchronizationSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SynchronizationSettingList { @@ -5065,8 +5065,8 @@ pub struct TriggerList { pub value: Vec, } impl azure_core::Continuable for TriggerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerList { diff --git a/services/mgmt/datashare/src/package_2020_09_01/operations.rs b/services/mgmt/datashare/src/package_2020_09_01/operations.rs index 141cdb9dd5..e7ecd635fd 100644 --- a/services/mgmt/datashare/src/package_2020_09_01/operations.rs +++ b/services/mgmt/datashare/src/package_2020_09_01/operations.rs @@ -224,9 +224,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -245,6 +245,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -538,9 +541,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -559,6 +562,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -649,9 +655,9 @@ pub mod consumer_invitations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataShare/listInvitations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -670,6 +676,9 @@ pub mod consumer_invitations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1111,9 +1120,9 @@ pub mod data_sets { &this.share_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1132,6 +1141,9 @@ pub mod data_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1445,9 +1457,9 @@ pub mod data_set_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/dataSetMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1466,6 +1478,9 @@ pub mod data_set_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1934,9 +1949,9 @@ pub mod invitations { &this.share_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1955,6 +1970,9 @@ pub mod invitations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2023,9 +2041,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataShare/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2044,6 +2062,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2225,9 +2246,9 @@ pub mod shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/listSynchronizationDetails" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2246,6 +2267,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2323,9 +2347,9 @@ pub mod shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/listSynchronizations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2344,6 +2368,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2607,9 +2634,9 @@ pub mod shares { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2628,6 +2655,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3000,9 +3030,9 @@ pub mod provider_share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/providerShareSubscriptions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3021,6 +3051,9 @@ pub mod provider_share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3306,9 +3339,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSourceShareSynchronizationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3327,6 +3360,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3399,9 +3435,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSynchronizationDetails" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3420,6 +3456,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3497,9 +3536,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSynchronizations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3518,6 +3557,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3840,9 +3882,9 @@ pub mod share_subscriptions { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3861,6 +3903,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3950,9 +3995,9 @@ pub mod consumer_source_data_sets { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/consumerSourceDataSets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3971,6 +4016,9 @@ pub mod consumer_source_data_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4273,9 +4321,9 @@ pub mod synchronization_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/synchronizationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4294,6 +4342,9 @@ pub mod synchronization_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4597,9 +4648,9 @@ pub mod triggers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/triggers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4618,6 +4669,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs b/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs index 069fff2bd1..c348e4e253 100644 --- a/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs @@ -953,8 +953,8 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -1894,8 +1894,8 @@ pub struct ConsumerInvitationList { pub value: Vec, } impl azure_core::Continuable for ConsumerInvitationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerInvitationList { @@ -2041,8 +2041,8 @@ pub struct ConsumerSourceDataSetList { pub value: Vec, } impl azure_core::Continuable for ConsumerSourceDataSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerSourceDataSetList { @@ -2238,8 +2238,8 @@ pub struct DataSetList { pub value: Vec, } impl azure_core::Continuable for DataSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSetList { @@ -2337,8 +2337,8 @@ pub struct DataSetMappingList { pub value: Vec, } impl azure_core::Continuable for DataSetMappingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSetMappingList { @@ -2353,7 +2353,7 @@ pub struct DataShareError { pub error: DataShareErrorInfo, } impl azure_core::Continuable for DataShareError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2498,8 +2498,8 @@ pub struct InvitationList { pub value: Vec, } impl azure_core::Continuable for InvitationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvitationList { @@ -3028,8 +3028,8 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -3266,8 +3266,8 @@ pub struct ProviderShareSubscriptionList { pub value: Vec, } impl azure_core::Continuable for ProviderShareSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderShareSubscriptionList { @@ -3819,8 +3819,8 @@ pub struct ShareList { pub value: Vec, } impl azure_core::Continuable for ShareList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareList { @@ -3967,8 +3967,8 @@ pub struct ShareSubscriptionList { pub value: Vec, } impl azure_core::Continuable for ShareSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSubscriptionList { @@ -4258,8 +4258,8 @@ pub struct ShareSubscriptionSynchronizationList { pub value: Vec, } impl azure_core::Continuable for ShareSubscriptionSynchronizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSubscriptionSynchronizationList { @@ -4356,8 +4356,8 @@ pub struct ShareSynchronizationList { pub value: Vec, } impl azure_core::Continuable for ShareSynchronizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSynchronizationList { @@ -4424,8 +4424,8 @@ pub struct SourceShareSynchronizationSettingList { pub value: Vec, } impl azure_core::Continuable for SourceShareSynchronizationSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceShareSynchronizationSettingList { @@ -5103,8 +5103,8 @@ pub struct SynchronizationDetailsList { pub value: Vec, } impl azure_core::Continuable for SynchronizationDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SynchronizationDetailsList { @@ -5176,8 +5176,8 @@ pub struct SynchronizationSettingList { pub value: Vec, } impl azure_core::Continuable for SynchronizationSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SynchronizationSettingList { @@ -5413,8 +5413,8 @@ pub struct TriggerList { pub value: Vec, } impl azure_core::Continuable for TriggerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerList { diff --git a/services/mgmt/datashare/src/package_2020_10_01_preview/operations.rs b/services/mgmt/datashare/src/package_2020_10_01_preview/operations.rs index ce79446166..1dba143b0b 100644 --- a/services/mgmt/datashare/src/package_2020_10_01_preview/operations.rs +++ b/services/mgmt/datashare/src/package_2020_10_01_preview/operations.rs @@ -221,9 +221,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -242,6 +242,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -535,9 +538,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -556,6 +559,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -646,9 +652,9 @@ pub mod consumer_invitations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataShare/listInvitations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -667,6 +673,9 @@ pub mod consumer_invitations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1108,9 +1117,9 @@ pub mod data_sets { &this.share_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1129,6 +1138,9 @@ pub mod data_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1442,9 +1454,9 @@ pub mod data_set_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/dataSetMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1463,6 +1475,9 @@ pub mod data_set_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1807,9 +1822,9 @@ pub mod invitations { &this.share_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1828,6 +1843,9 @@ pub mod invitations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1896,9 +1914,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataShare/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1917,6 +1935,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2098,9 +2119,9 @@ pub mod shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/listSynchronizationDetails" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2119,6 +2140,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2196,9 +2220,9 @@ pub mod shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/listSynchronizations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2217,6 +2241,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2480,9 +2507,9 @@ pub mod shares { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2501,6 +2528,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2873,9 +2903,9 @@ pub mod provider_share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/providerShareSubscriptions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2894,6 +2924,9 @@ pub mod provider_share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3179,9 +3212,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSourceShareSynchronizationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3200,6 +3233,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3272,9 +3308,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSynchronizationDetails" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3293,6 +3329,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3370,9 +3409,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSynchronizations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3391,6 +3430,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3713,9 +3755,9 @@ pub mod share_subscriptions { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3734,6 +3776,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3823,9 +3868,9 @@ pub mod consumer_source_data_sets { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/consumerSourceDataSets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3844,6 +3889,9 @@ pub mod consumer_source_data_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4146,9 +4194,9 @@ pub mod synchronization_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/synchronizationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4167,6 +4215,9 @@ pub mod synchronization_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4470,9 +4521,9 @@ pub mod triggers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/triggers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4491,6 +4542,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/datashare/src/package_2021_08_01/models.rs b/services/mgmt/datashare/src/package_2021_08_01/models.rs index cb4e752cd3..010c365aea 100644 --- a/services/mgmt/datashare/src/package_2021_08_01/models.rs +++ b/services/mgmt/datashare/src/package_2021_08_01/models.rs @@ -753,8 +753,8 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -1494,8 +1494,8 @@ pub struct ConsumerInvitationList { pub value: Vec, } impl azure_core::Continuable for ConsumerInvitationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerInvitationList { @@ -1641,8 +1641,8 @@ pub struct ConsumerSourceDataSetList { pub value: Vec, } impl azure_core::Continuable for ConsumerSourceDataSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerSourceDataSetList { @@ -1834,8 +1834,8 @@ pub struct DataSetList { pub value: Vec, } impl azure_core::Continuable for DataSetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSetList { @@ -1931,8 +1931,8 @@ pub struct DataSetMappingList { pub value: Vec, } impl azure_core::Continuable for DataSetMappingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSetMappingList { @@ -1947,7 +1947,7 @@ pub struct DataShareError { pub error: DataShareErrorInfo, } impl azure_core::Continuable for DataShareError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2160,8 +2160,8 @@ pub struct InvitationList { pub value: Vec, } impl azure_core::Continuable for InvitationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InvitationList { @@ -2908,8 +2908,8 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -3146,8 +3146,8 @@ pub struct ProviderShareSubscriptionList { pub value: Vec, } impl azure_core::Continuable for ProviderShareSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderShareSubscriptionList { @@ -3699,8 +3699,8 @@ pub struct ShareList { pub value: Vec, } impl azure_core::Continuable for ShareList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareList { @@ -3847,8 +3847,8 @@ pub struct ShareSubscriptionList { pub value: Vec, } impl azure_core::Continuable for ShareSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSubscriptionList { @@ -4138,8 +4138,8 @@ pub struct ShareSubscriptionSynchronizationList { pub value: Vec, } impl azure_core::Continuable for ShareSubscriptionSynchronizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSubscriptionSynchronizationList { @@ -4236,8 +4236,8 @@ pub struct ShareSynchronizationList { pub value: Vec, } impl azure_core::Continuable for ShareSynchronizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ShareSynchronizationList { @@ -4304,8 +4304,8 @@ pub struct SourceShareSynchronizationSettingList { pub value: Vec, } impl azure_core::Continuable for SourceShareSynchronizationSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceShareSynchronizationSettingList { @@ -4981,8 +4981,8 @@ pub struct SynchronizationDetailsList { pub value: Vec, } impl azure_core::Continuable for SynchronizationDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SynchronizationDetailsList { @@ -5054,8 +5054,8 @@ pub struct SynchronizationSettingList { pub value: Vec, } impl azure_core::Continuable for SynchronizationSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SynchronizationSettingList { @@ -5318,8 +5318,8 @@ pub struct TriggerList { pub value: Vec, } impl azure_core::Continuable for TriggerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggerList { diff --git a/services/mgmt/datashare/src/package_2021_08_01/operations.rs b/services/mgmt/datashare/src/package_2021_08_01/operations.rs index d5441e74d6..c661d917b7 100644 --- a/services/mgmt/datashare/src/package_2021_08_01/operations.rs +++ b/services/mgmt/datashare/src/package_2021_08_01/operations.rs @@ -224,9 +224,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -245,6 +245,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -538,9 +541,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -559,6 +562,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -649,9 +655,9 @@ pub mod consumer_invitations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataShare/listInvitations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -670,6 +676,9 @@ pub mod consumer_invitations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1111,9 +1120,9 @@ pub mod data_sets { &this.share_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1132,6 +1141,9 @@ pub mod data_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1445,9 +1457,9 @@ pub mod data_set_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/dataSetMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1466,6 +1478,9 @@ pub mod data_set_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1934,9 +1949,9 @@ pub mod invitations { &this.share_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1955,6 +1970,9 @@ pub mod invitations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2023,9 +2041,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DataShare/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2044,6 +2062,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2225,9 +2246,9 @@ pub mod shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/listSynchronizationDetails" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2246,6 +2267,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2323,9 +2347,9 @@ pub mod shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/listSynchronizations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2344,6 +2368,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2607,9 +2634,9 @@ pub mod shares { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2628,6 +2655,9 @@ pub mod shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3000,9 +3030,9 @@ pub mod provider_share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/providerShareSubscriptions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3021,6 +3051,9 @@ pub mod provider_share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3306,9 +3339,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSourceShareSynchronizationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3327,6 +3360,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3399,9 +3435,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSynchronizationDetails" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3420,6 +3456,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3497,9 +3536,9 @@ pub mod share_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/listSynchronizations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3518,6 +3557,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3840,9 +3882,9 @@ pub mod share_subscriptions { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3861,6 +3903,9 @@ pub mod share_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3950,9 +3995,9 @@ pub mod consumer_source_data_sets { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/consumerSourceDataSets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3971,6 +4016,9 @@ pub mod consumer_source_data_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4273,9 +4321,9 @@ pub mod synchronization_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shares/{}/synchronizationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4294,6 +4342,9 @@ pub mod synchronization_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4597,9 +4648,9 @@ pub mod triggers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DataShare/accounts/{}/shareSubscriptions/{}/triggers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . share_subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4618,6 +4669,9 @@ pub mod triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/desktopvirtualization/src/package_2021_03_09_preview/models.rs b/services/mgmt/desktopvirtualization/src/package_2021_03_09_preview/models.rs index 09ded14600..1a9e1ecf6e 100644 --- a/services/mgmt/desktopvirtualization/src/package_2021_03_09_preview/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_2021_03_09_preview/models.rs @@ -47,8 +47,8 @@ pub struct ApplicationGroupList { pub next_link: Option, } impl azure_core::Continuable for ApplicationGroupList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGroupList { @@ -181,8 +181,8 @@ pub struct ApplicationList { pub next_link: Option, } impl azure_core::Continuable for ApplicationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationList { @@ -477,7 +477,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -608,8 +608,8 @@ pub struct ExpandMsixImageList { pub next_link: Option, } impl azure_core::Continuable for ExpandMsixImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpandMsixImageList { @@ -692,8 +692,8 @@ pub struct HostPoolList { pub next_link: Option, } impl azure_core::Continuable for HostPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostPoolList { @@ -1314,8 +1314,8 @@ pub struct MsixPackageList { pub next_link: Option, } impl azure_core::Continuable for MsixPackageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MsixPackageList { @@ -1816,8 +1816,8 @@ pub struct ScalingPlanList { pub next_link: Option, } impl azure_core::Continuable for ScalingPlanList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScalingPlanList { @@ -2429,8 +2429,8 @@ pub struct SessionHostList { pub next_link: Option, } impl azure_core::Continuable for SessionHostList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SessionHostList { @@ -2693,8 +2693,8 @@ pub struct StartMenuItemList { pub next_link: Option, } impl azure_core::Continuable for StartMenuItemList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StartMenuItemList { @@ -2751,8 +2751,8 @@ pub struct UserSessionList { pub next_link: Option, } impl azure_core::Continuable for UserSessionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserSessionList { @@ -2897,8 +2897,8 @@ pub struct WorkspaceList { pub next_link: Option, } impl azure_core::Continuable for WorkspaceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceList { diff --git a/services/mgmt/desktopvirtualization/src/package_2021_03_09_preview/operations.rs b/services/mgmt/desktopvirtualization/src/package_2021_03_09_preview/operations.rs index 723bef60f3..74de1a6661 100644 --- a/services/mgmt/desktopvirtualization/src/package_2021_03_09_preview/operations.rs +++ b/services/mgmt/desktopvirtualization/src/package_2021_03_09_preview/operations.rs @@ -494,9 +494,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -515,6 +515,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -568,9 +571,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -589,6 +592,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -965,9 +971,9 @@ pub mod scaling_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -986,6 +992,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1039,9 +1048,9 @@ pub mod scaling_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1060,6 +1069,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1117,9 +1129,9 @@ pub mod scaling_plans { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1138,6 +1150,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1508,9 +1523,9 @@ pub mod application_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1529,6 +1544,9 @@ pub mod application_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1590,9 +1608,9 @@ pub mod application_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1611,6 +1629,9 @@ pub mod application_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1684,9 +1705,9 @@ pub mod start_menu_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/applicationGroups/{}/startMenuItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1705,6 +1726,9 @@ pub mod start_menu_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2048,9 +2072,9 @@ pub mod applications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/applicationGroups/{}/applications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2069,6 +2093,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2660,9 +2687,9 @@ pub mod host_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2681,6 +2708,9 @@ pub mod host_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2734,9 +2764,9 @@ pub mod host_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2755,6 +2785,9 @@ pub mod host_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2969,9 +3002,9 @@ pub mod user_sessions { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2990,6 +3023,9 @@ pub mod user_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3150,9 +3186,9 @@ pub mod user_sessions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/hostPools/{}/sessionHosts/{}/userSessions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . host_pool_name , & this . session_host_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3171,6 +3207,9 @@ pub mod user_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3574,9 +3613,9 @@ pub mod session_hosts { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3595,6 +3634,9 @@ pub mod session_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3972,9 +4014,9 @@ pub mod msix_packages { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3993,6 +4035,9 @@ pub mod msix_packages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4072,9 +4117,9 @@ pub mod msix_images { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4093,6 +4138,9 @@ pub mod msix_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/models.rs b/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/models.rs index 778e662da5..ab1b2ff1ba 100644 --- a/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/models.rs @@ -47,8 +47,8 @@ pub struct ApplicationGroupList { pub next_link: Option, } impl azure_core::Continuable for ApplicationGroupList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGroupList { @@ -181,8 +181,8 @@ pub struct ApplicationList { pub next_link: Option, } impl azure_core::Continuable for ApplicationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationList { @@ -477,7 +477,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -608,8 +608,8 @@ pub struct ExpandMsixImageList { pub next_link: Option, } impl azure_core::Continuable for ExpandMsixImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpandMsixImageList { @@ -692,8 +692,8 @@ pub struct HostPoolList { pub next_link: Option, } impl azure_core::Continuable for HostPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostPoolList { @@ -1395,8 +1395,8 @@ pub struct MsixPackageList { pub next_link: Option, } impl azure_core::Continuable for MsixPackageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MsixPackageList { @@ -2113,8 +2113,8 @@ pub struct ScalingPlanList { pub next_link: Option, } impl azure_core::Continuable for ScalingPlanList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScalingPlanList { @@ -2726,8 +2726,8 @@ pub struct SessionHostList { pub next_link: Option, } impl azure_core::Continuable for SessionHostList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SessionHostList { @@ -2990,8 +2990,8 @@ pub struct StartMenuItemList { pub next_link: Option, } impl azure_core::Continuable for StartMenuItemList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StartMenuItemList { @@ -3048,8 +3048,8 @@ pub struct UserSessionList { pub next_link: Option, } impl azure_core::Continuable for UserSessionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserSessionList { @@ -3194,8 +3194,8 @@ pub struct WorkspaceList { pub next_link: Option, } impl azure_core::Continuable for WorkspaceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceList { diff --git a/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/operations.rs b/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/operations.rs index dc69aaf9ca..66f30bddbc 100644 --- a/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/operations.rs +++ b/services/mgmt/desktopvirtualization/src/package_2021_04_01_preview/operations.rs @@ -500,9 +500,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -521,6 +521,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -574,9 +577,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -595,6 +598,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -971,9 +977,9 @@ pub mod scaling_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -992,6 +998,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1045,9 +1054,9 @@ pub mod scaling_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1066,6 +1075,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1123,9 +1135,9 @@ pub mod scaling_plans { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1144,6 +1156,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1514,9 +1529,9 @@ pub mod application_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1535,6 +1550,9 @@ pub mod application_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1596,9 +1614,9 @@ pub mod application_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1617,6 +1635,9 @@ pub mod application_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1690,9 +1711,9 @@ pub mod start_menu_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/applicationGroups/{}/startMenuItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1711,6 +1732,9 @@ pub mod start_menu_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2054,9 +2078,9 @@ pub mod applications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/applicationGroups/{}/applications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2075,6 +2099,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2666,9 +2693,9 @@ pub mod host_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2687,6 +2714,9 @@ pub mod host_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2740,9 +2770,9 @@ pub mod host_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2761,6 +2791,9 @@ pub mod host_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2975,9 +3008,9 @@ pub mod user_sessions { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2996,6 +3029,9 @@ pub mod user_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3156,9 +3192,9 @@ pub mod user_sessions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/hostPools/{}/sessionHosts/{}/userSessions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . host_pool_name , & this . session_host_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3177,6 +3213,9 @@ pub mod user_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3580,9 +3619,9 @@ pub mod session_hosts { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3601,6 +3640,9 @@ pub mod session_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3978,9 +4020,9 @@ pub mod msix_packages { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3999,6 +4041,9 @@ pub mod msix_packages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4078,9 +4123,9 @@ pub mod msix_images { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4099,6 +4144,9 @@ pub mod msix_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/desktopvirtualization/src/package_2021_07/models.rs b/services/mgmt/desktopvirtualization/src/package_2021_07/models.rs index 09ded14600..1a9e1ecf6e 100644 --- a/services/mgmt/desktopvirtualization/src/package_2021_07/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_2021_07/models.rs @@ -47,8 +47,8 @@ pub struct ApplicationGroupList { pub next_link: Option, } impl azure_core::Continuable for ApplicationGroupList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGroupList { @@ -181,8 +181,8 @@ pub struct ApplicationList { pub next_link: Option, } impl azure_core::Continuable for ApplicationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationList { @@ -477,7 +477,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -608,8 +608,8 @@ pub struct ExpandMsixImageList { pub next_link: Option, } impl azure_core::Continuable for ExpandMsixImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpandMsixImageList { @@ -692,8 +692,8 @@ pub struct HostPoolList { pub next_link: Option, } impl azure_core::Continuable for HostPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostPoolList { @@ -1314,8 +1314,8 @@ pub struct MsixPackageList { pub next_link: Option, } impl azure_core::Continuable for MsixPackageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MsixPackageList { @@ -1816,8 +1816,8 @@ pub struct ScalingPlanList { pub next_link: Option, } impl azure_core::Continuable for ScalingPlanList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScalingPlanList { @@ -2429,8 +2429,8 @@ pub struct SessionHostList { pub next_link: Option, } impl azure_core::Continuable for SessionHostList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SessionHostList { @@ -2693,8 +2693,8 @@ pub struct StartMenuItemList { pub next_link: Option, } impl azure_core::Continuable for StartMenuItemList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StartMenuItemList { @@ -2751,8 +2751,8 @@ pub struct UserSessionList { pub next_link: Option, } impl azure_core::Continuable for UserSessionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserSessionList { @@ -2897,8 +2897,8 @@ pub struct WorkspaceList { pub next_link: Option, } impl azure_core::Continuable for WorkspaceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceList { diff --git a/services/mgmt/desktopvirtualization/src/package_2021_07/operations.rs b/services/mgmt/desktopvirtualization/src/package_2021_07/operations.rs index ad0d14c660..a94d8d67b8 100644 --- a/services/mgmt/desktopvirtualization/src/package_2021_07/operations.rs +++ b/services/mgmt/desktopvirtualization/src/package_2021_07/operations.rs @@ -494,9 +494,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -515,6 +515,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -568,9 +571,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -589,6 +592,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -965,9 +971,9 @@ pub mod scaling_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -986,6 +992,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1039,9 +1048,9 @@ pub mod scaling_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1060,6 +1069,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1117,9 +1129,9 @@ pub mod scaling_plans { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1138,6 +1150,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1508,9 +1523,9 @@ pub mod application_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1529,6 +1544,9 @@ pub mod application_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1590,9 +1608,9 @@ pub mod application_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1611,6 +1629,9 @@ pub mod application_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1684,9 +1705,9 @@ pub mod start_menu_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/applicationGroups/{}/startMenuItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1705,6 +1726,9 @@ pub mod start_menu_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2048,9 +2072,9 @@ pub mod applications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/applicationGroups/{}/applications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2069,6 +2093,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2660,9 +2687,9 @@ pub mod host_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2681,6 +2708,9 @@ pub mod host_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2734,9 +2764,9 @@ pub mod host_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2755,6 +2785,9 @@ pub mod host_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2969,9 +3002,9 @@ pub mod user_sessions { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2990,6 +3023,9 @@ pub mod user_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3150,9 +3186,9 @@ pub mod user_sessions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/hostPools/{}/sessionHosts/{}/userSessions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . host_pool_name , & this . session_host_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3171,6 +3207,9 @@ pub mod user_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3574,9 +3613,9 @@ pub mod session_hosts { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3595,6 +3634,9 @@ pub mod session_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3972,9 +4014,9 @@ pub mod msix_packages { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3993,6 +4035,9 @@ pub mod msix_packages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4072,9 +4117,9 @@ pub mod msix_images { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4093,6 +4138,9 @@ pub mod msix_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/desktopvirtualization/src/package_preview_2021_09/models.rs b/services/mgmt/desktopvirtualization/src/package_preview_2021_09/models.rs index df0a900efd..0f780d2e17 100644 --- a/services/mgmt/desktopvirtualization/src/package_preview_2021_09/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_preview_2021_09/models.rs @@ -55,8 +55,8 @@ pub struct ApplicationGroupList { pub next_link: Option, } impl azure_core::Continuable for ApplicationGroupList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGroupList { @@ -189,8 +189,8 @@ pub struct ApplicationList { pub next_link: Option, } impl azure_core::Continuable for ApplicationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationList { @@ -487,7 +487,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -539,8 +539,8 @@ pub struct DesktopList { pub next_link: Option, } impl azure_core::Continuable for DesktopList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DesktopList { @@ -627,8 +627,8 @@ pub struct ExpandMsixImageList { pub next_link: Option, } impl azure_core::Continuable for ExpandMsixImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpandMsixImageList { @@ -715,8 +715,8 @@ pub struct HostPoolList { pub next_link: Option, } impl azure_core::Continuable for HostPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostPoolList { @@ -1422,8 +1422,8 @@ pub struct MsixPackageList { pub next_link: Option, } impl azure_core::Continuable for MsixPackageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MsixPackageList { @@ -1690,8 +1690,8 @@ pub struct PrivateEndpointConnectionListResultWithSystemData { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResultWithSystemData { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResultWithSystemData { @@ -1840,8 +1840,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -2115,8 +2115,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { @@ -2167,8 +2167,8 @@ pub struct ScalingPlanList { pub next_link: Option, } impl azure_core::Continuable for ScalingPlanList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScalingPlanList { @@ -2732,8 +2732,8 @@ pub struct SessionHostList { pub next_link: Option, } impl azure_core::Continuable for SessionHostList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SessionHostList { @@ -2996,8 +2996,8 @@ pub struct StartMenuItemList { pub next_link: Option, } impl azure_core::Continuable for StartMenuItemList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StartMenuItemList { @@ -3070,8 +3070,8 @@ pub struct UserSessionList { pub next_link: Option, } impl azure_core::Continuable for UserSessionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserSessionList { @@ -3219,8 +3219,8 @@ pub struct WorkspaceList { pub next_link: Option, } impl azure_core::Continuable for WorkspaceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceList { diff --git a/services/mgmt/desktopvirtualization/src/package_preview_2021_09/operations.rs b/services/mgmt/desktopvirtualization/src/package_preview_2021_09/operations.rs index f29a889ef2..fa16b4d72a 100644 --- a/services/mgmt/desktopvirtualization/src/package_preview_2021_09/operations.rs +++ b/services/mgmt/desktopvirtualization/src/package_preview_2021_09/operations.rs @@ -142,9 +142,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -163,6 +163,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -526,9 +529,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -547,6 +550,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -600,9 +606,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -621,6 +627,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -997,9 +1006,9 @@ pub mod scaling_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1018,6 +1027,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1071,9 +1083,9 @@ pub mod scaling_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1092,6 +1104,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1149,9 +1164,9 @@ pub mod scaling_plans { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1170,6 +1185,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1540,9 +1558,9 @@ pub mod application_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1561,6 +1579,9 @@ pub mod application_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1622,9 +1643,9 @@ pub mod application_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1643,6 +1664,9 @@ pub mod application_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1716,9 +1740,9 @@ pub mod start_menu_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/applicationGroups/{}/startMenuItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1737,6 +1761,9 @@ pub mod start_menu_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2080,9 +2107,9 @@ pub mod applications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/applicationGroups/{}/applications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2101,6 +2128,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2312,9 +2342,9 @@ pub mod desktops { &this.application_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2333,6 +2363,9 @@ pub mod desktops { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2718,9 +2751,9 @@ pub mod host_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2739,6 +2772,9 @@ pub mod host_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2792,9 +2828,9 @@ pub mod host_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2813,6 +2849,9 @@ pub mod host_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3027,9 +3066,9 @@ pub mod user_sessions { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3048,6 +3087,9 @@ pub mod user_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3208,9 +3250,9 @@ pub mod user_sessions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/hostPools/{}/sessionHosts/{}/userSessions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . host_pool_name , & this . session_host_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3229,6 +3271,9 @@ pub mod user_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3641,9 +3686,9 @@ pub mod session_hosts { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3662,6 +3707,9 @@ pub mod session_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4039,9 +4087,9 @@ pub mod msix_packages { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4060,6 +4108,9 @@ pub mod msix_packages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4139,9 +4190,9 @@ pub mod msix_images { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4160,6 +4211,9 @@ pub mod msix_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4338,9 +4392,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/hostPools/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . host_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4359,6 +4413,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4555,9 +4612,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/workspaces/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4576,6 +4633,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4804,9 +4864,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/hostPools/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . host_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4825,6 +4885,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4876,9 +4939,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/workspaces/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4897,6 +4960,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/desktopvirtualization/src/package_preview_2022_02/models.rs b/services/mgmt/desktopvirtualization/src/package_preview_2022_02/models.rs index 93dfbd643e..052466e955 100644 --- a/services/mgmt/desktopvirtualization/src/package_preview_2022_02/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_preview_2022_02/models.rs @@ -177,8 +177,8 @@ pub struct ApplicationGroupList { pub next_link: Option, } impl azure_core::Continuable for ApplicationGroupList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGroupList { @@ -311,8 +311,8 @@ pub struct ApplicationList { pub next_link: Option, } impl azure_core::Continuable for ApplicationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationList { @@ -609,7 +609,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -661,8 +661,8 @@ pub struct DesktopList { pub next_link: Option, } impl azure_core::Continuable for DesktopList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DesktopList { @@ -749,8 +749,8 @@ pub struct ExpandMsixImageList { pub next_link: Option, } impl azure_core::Continuable for ExpandMsixImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpandMsixImageList { @@ -837,8 +837,8 @@ pub struct HostPoolList { pub next_link: Option, } impl azure_core::Continuable for HostPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostPoolList { @@ -1567,8 +1567,8 @@ pub struct MsixPackageList { pub next_link: Option, } impl azure_core::Continuable for MsixPackageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MsixPackageList { @@ -1893,8 +1893,8 @@ pub struct PrivateEndpointConnectionListResultWithSystemData { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResultWithSystemData { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResultWithSystemData { @@ -2043,8 +2043,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -2318,8 +2318,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { @@ -2370,8 +2370,8 @@ pub struct ScalingPlanList { pub next_link: Option, } impl azure_core::Continuable for ScalingPlanList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScalingPlanList { @@ -2935,8 +2935,8 @@ pub struct SessionHostList { pub next_link: Option, } impl azure_core::Continuable for SessionHostList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SessionHostList { @@ -3205,8 +3205,8 @@ pub struct StartMenuItemList { pub next_link: Option, } impl azure_core::Continuable for StartMenuItemList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StartMenuItemList { @@ -3279,8 +3279,8 @@ pub struct UserSessionList { pub next_link: Option, } impl azure_core::Continuable for UserSessionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserSessionList { @@ -3428,8 +3428,8 @@ pub struct WorkspaceList { pub next_link: Option, } impl azure_core::Continuable for WorkspaceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceList { diff --git a/services/mgmt/desktopvirtualization/src/package_preview_2022_02/operations.rs b/services/mgmt/desktopvirtualization/src/package_preview_2022_02/operations.rs index d0321efad8..1968a34e0c 100644 --- a/services/mgmt/desktopvirtualization/src/package_preview_2022_02/operations.rs +++ b/services/mgmt/desktopvirtualization/src/package_preview_2022_02/operations.rs @@ -142,9 +142,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -163,6 +163,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -526,9 +529,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -547,6 +550,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -600,9 +606,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -621,6 +627,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -997,9 +1006,9 @@ pub mod scaling_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1018,6 +1027,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1071,9 +1083,9 @@ pub mod scaling_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1092,6 +1104,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1149,9 +1164,9 @@ pub mod scaling_plans { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1170,6 +1185,9 @@ pub mod scaling_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1540,9 +1558,9 @@ pub mod application_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1561,6 +1579,9 @@ pub mod application_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1622,9 +1643,9 @@ pub mod application_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1643,6 +1664,9 @@ pub mod application_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1716,9 +1740,9 @@ pub mod start_menu_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/applicationGroups/{}/startMenuItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1737,6 +1761,9 @@ pub mod start_menu_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2080,9 +2107,9 @@ pub mod applications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/applicationGroups/{}/applications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2101,6 +2128,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2312,9 +2342,9 @@ pub mod desktops { &this.application_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2333,6 +2363,9 @@ pub mod desktops { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2718,9 +2751,9 @@ pub mod host_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2739,6 +2772,9 @@ pub mod host_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2792,9 +2828,9 @@ pub mod host_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2813,6 +2849,9 @@ pub mod host_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3027,9 +3066,9 @@ pub mod user_sessions { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3048,6 +3087,9 @@ pub mod user_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3208,9 +3250,9 @@ pub mod user_sessions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/hostPools/{}/sessionHosts/{}/userSessions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . host_pool_name , & this . session_host_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3229,6 +3271,9 @@ pub mod user_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3641,9 +3686,9 @@ pub mod session_hosts { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3662,6 +3707,9 @@ pub mod session_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4039,9 +4087,9 @@ pub mod msix_packages { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4060,6 +4108,9 @@ pub mod msix_packages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4139,9 +4190,9 @@ pub mod msix_images { &this.host_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4160,6 +4211,9 @@ pub mod msix_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4338,9 +4392,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/hostPools/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . host_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4359,6 +4413,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4555,9 +4612,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/workspaces/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4576,6 +4633,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4804,9 +4864,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/hostPools/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . host_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4825,6 +4885,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4876,9 +4939,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DesktopVirtualization/workspaces/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4897,6 +4960,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs b/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs index e2b12010ee..0dc85551d5 100644 --- a/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs +++ b/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs @@ -150,8 +150,8 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -380,7 +380,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -590,8 +590,8 @@ pub struct InstanceList { pub value: Vec, } impl azure_core::Continuable for InstanceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstanceList { @@ -827,8 +827,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -872,7 +872,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -990,7 +990,7 @@ pub struct PrivateEndpointConnectionProxyListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionProxyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1132,7 +1132,7 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/deviceupdate/src/package_2020_03_01_preview/operations.rs b/services/mgmt/deviceupdate/src/package_2020_03_01_preview/operations.rs index 9c14836dbc..4bffae1b63 100644 --- a/services/mgmt/deviceupdate/src/package_2020_03_01_preview/operations.rs +++ b/services/mgmt/deviceupdate/src/package_2020_03_01_preview/operations.rs @@ -266,9 +266,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -287,6 +287,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -342,9 +345,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -363,6 +366,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -793,9 +799,9 @@ pub mod instances { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -814,6 +820,9 @@ pub mod instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1940,9 +1949,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DeviceUpdate/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1961,6 +1970,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs b/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs index fdf3b879cb..9e7f1f5c95 100644 --- a/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs +++ b/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs @@ -198,8 +198,8 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -428,7 +428,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -638,8 +638,8 @@ pub struct InstanceList { pub value: Vec, } impl azure_core::Continuable for InstanceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstanceList { @@ -923,8 +923,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -968,7 +968,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1086,7 +1086,7 @@ pub struct PrivateEndpointConnectionProxyListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionProxyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1228,7 +1228,7 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/deviceupdate/src/package_2022_04_01_preview/operations.rs b/services/mgmt/deviceupdate/src/package_2022_04_01_preview/operations.rs index 5959b2d06d..6cefc5a988 100644 --- a/services/mgmt/deviceupdate/src/package_2022_04_01_preview/operations.rs +++ b/services/mgmt/deviceupdate/src/package_2022_04_01_preview/operations.rs @@ -266,9 +266,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -287,6 +287,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -342,9 +345,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -363,6 +366,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -793,9 +799,9 @@ pub mod instances { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -814,6 +820,9 @@ pub mod instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1940,9 +1949,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DeviceUpdate/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1961,6 +1970,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/devops/src/package_2019_07_01_preview/models.rs b/services/mgmt/devops/src/package_2019_07_01_preview/models.rs index 5d98766bcd..82dae8964c 100644 --- a/services/mgmt/devops/src/package_2019_07_01_preview/models.rs +++ b/services/mgmt/devops/src/package_2019_07_01_preview/models.rs @@ -86,7 +86,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -323,8 +323,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -373,8 +373,8 @@ pub struct PipelineListResult { pub next_link: Option, } impl azure_core::Continuable for PipelineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineListResult { @@ -452,8 +452,8 @@ pub struct PipelineTemplateDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for PipelineTemplateDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineTemplateDefinitionListResult { diff --git a/services/mgmt/devops/src/package_2019_07_01_preview/operations.rs b/services/mgmt/devops/src/package_2019_07_01_preview/operations.rs index 0b4352d3d8..acfed0687e 100644 --- a/services/mgmt/devops/src/package_2019_07_01_preview/operations.rs +++ b/services/mgmt/devops/src/package_2019_07_01_preview/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DevOps/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -188,9 +191,9 @@ pub mod pipeline_template_definitions { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -209,6 +212,9 @@ pub mod pipeline_template_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -562,9 +568,9 @@ pub mod pipelines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -583,6 +589,9 @@ pub mod pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -636,9 +645,9 @@ pub mod pipelines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -657,6 +666,9 @@ pub mod pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/devops/src/package_2020_07_13_preview/models.rs b/services/mgmt/devops/src/package_2020_07_13_preview/models.rs index 38e34bbc8d..4b7ee42991 100644 --- a/services/mgmt/devops/src/package_2020_07_13_preview/models.rs +++ b/services/mgmt/devops/src/package_2020_07_13_preview/models.rs @@ -86,7 +86,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -323,8 +323,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -377,8 +377,8 @@ pub struct PipelineListResult { pub next_link: Option, } impl azure_core::Continuable for PipelineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineListResult { @@ -496,8 +496,8 @@ pub struct PipelineTemplateDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for PipelineTemplateDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineTemplateDefinitionListResult { diff --git a/services/mgmt/devops/src/package_2020_07_13_preview/operations.rs b/services/mgmt/devops/src/package_2020_07_13_preview/operations.rs index c0a001a7c2..fadf017f9a 100644 --- a/services/mgmt/devops/src/package_2020_07_13_preview/operations.rs +++ b/services/mgmt/devops/src/package_2020_07_13_preview/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DevOps/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -188,9 +191,9 @@ pub mod pipeline_template_definitions { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -209,6 +212,9 @@ pub mod pipeline_template_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -562,9 +568,9 @@ pub mod pipelines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -583,6 +589,9 @@ pub mod pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -636,9 +645,9 @@ pub mod pipelines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -657,6 +666,9 @@ pub mod pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/devspaces/src/package_2019_04_01/models.rs b/services/mgmt/devspaces/src/package_2019_04_01/models.rs index ffb6dd99cf..5d4f0bebc6 100644 --- a/services/mgmt/devspaces/src/package_2019_04_01/models.rs +++ b/services/mgmt/devspaces/src/package_2019_04_01/models.rs @@ -68,8 +68,8 @@ pub struct ControllerList { pub next_link: Option, } impl azure_core::Continuable for ControllerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ControllerList { @@ -192,7 +192,7 @@ pub struct DevSpacesErrorResponse { pub error: Option, } impl azure_core::Continuable for DevSpacesErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -319,8 +319,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/devspaces/src/package_2019_04_01/operations.rs b/services/mgmt/devspaces/src/package_2019_04_01/operations.rs index 42310e0e2e..334fc69b6f 100644 --- a/services/mgmt/devspaces/src/package_2019_04_01/operations.rs +++ b/services/mgmt/devspaces/src/package_2019_04_01/operations.rs @@ -189,9 +189,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DevSpaces/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -210,6 +210,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -601,9 +604,9 @@ pub mod controllers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -622,6 +625,9 @@ pub mod controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -675,9 +681,9 @@ pub mod controllers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -696,6 +702,9 @@ pub mod controllers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/devtestlabs/src/package_2015_05_preview/models.rs b/services/mgmt/devtestlabs/src/package_2015_05_preview/models.rs index b23f221324..2051bcd51e 100644 --- a/services/mgmt/devtestlabs/src/package_2015_05_preview/models.rs +++ b/services/mgmt/devtestlabs/src/package_2015_05_preview/models.rs @@ -273,7 +273,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1328,8 +1328,8 @@ pub struct ResponseWithContinuationArtifactSource { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationArtifactSource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationArtifactSource { @@ -1348,8 +1348,8 @@ pub struct ResponseWithContinuationArtifact { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationArtifact { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationArtifact { @@ -1368,8 +1368,8 @@ pub struct ResponseWithContinuationCostInsight { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationCostInsight { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationCostInsight { @@ -1388,8 +1388,8 @@ pub struct ResponseWithContinuationCost { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationCost { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationCost { @@ -1408,8 +1408,8 @@ pub struct ResponseWithContinuationCustomImage { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationCustomImage { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationCustomImage { @@ -1428,8 +1428,8 @@ pub struct ResponseWithContinuationFormula { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationFormula { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationFormula { @@ -1448,8 +1448,8 @@ pub struct ResponseWithContinuationGalleryImage { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationGalleryImage { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationGalleryImage { @@ -1468,8 +1468,8 @@ pub struct ResponseWithContinuationLabVhd { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationLabVhd { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationLabVhd { @@ -1488,8 +1488,8 @@ pub struct ResponseWithContinuationLabVirtualMachine { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationLabVirtualMachine { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationLabVirtualMachine { @@ -1508,8 +1508,8 @@ pub struct ResponseWithContinuationLab { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationLab { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationLab { @@ -1528,8 +1528,8 @@ pub struct ResponseWithContinuationPolicy { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationPolicy { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationPolicy { @@ -1548,8 +1548,8 @@ pub struct ResponseWithContinuationSchedule { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationSchedule { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationSchedule { @@ -1568,8 +1568,8 @@ pub struct ResponseWithContinuationVirtualNetwork { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationVirtualNetwork { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationVirtualNetwork { diff --git a/services/mgmt/devtestlabs/src/package_2015_05_preview/operations.rs b/services/mgmt/devtestlabs/src/package_2015_05_preview/operations.rs index bceb5257e8..35a853e127 100644 --- a/services/mgmt/devtestlabs/src/package_2015_05_preview/operations.rs +++ b/services/mgmt/devtestlabs/src/package_2015_05_preview/operations.rs @@ -275,9 +275,9 @@ pub mod lab { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -296,6 +296,9 @@ pub mod lab { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -375,9 +378,9 @@ pub mod lab { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -396,6 +399,9 @@ pub mod lab { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -796,9 +802,9 @@ pub mod lab { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -817,6 +823,9 @@ pub mod lab { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -976,9 +985,9 @@ pub mod artifact_source { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -997,6 +1006,9 @@ pub mod artifact_source { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1370,9 +1382,9 @@ pub mod artifact { &this.artifact_source_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1391,6 +1403,9 @@ pub mod artifact { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1630,9 +1645,9 @@ pub mod cost_insight { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1651,6 +1666,9 @@ pub mod cost_insight { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1895,9 +1913,9 @@ pub mod cost { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1916,6 +1934,9 @@ pub mod cost { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2177,9 +2198,9 @@ pub mod custom_image { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2198,6 +2219,9 @@ pub mod custom_image { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2524,9 +2548,9 @@ pub mod formula { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2545,6 +2569,9 @@ pub mod formula { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2823,9 +2850,9 @@ pub mod gallery_image { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2844,6 +2871,9 @@ pub mod gallery_image { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3102,9 +3132,9 @@ pub mod policy { &this.policy_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3123,6 +3153,9 @@ pub mod policy { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3543,9 +3576,9 @@ pub mod schedule { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3564,6 +3597,9 @@ pub mod schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4067,9 +4103,9 @@ pub mod virtual_machine { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4088,6 +4124,9 @@ pub mod virtual_machine { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4652,9 +4691,9 @@ pub mod virtual_network { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4673,6 +4712,9 @@ pub mod virtual_network { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/devtestlabs/src/package_2016_05/models.rs b/services/mgmt/devtestlabs/src/package_2016_05/models.rs index 9ef9ebd12a..dfe7974d2c 100644 --- a/services/mgmt/devtestlabs/src/package_2016_05/models.rs +++ b/services/mgmt/devtestlabs/src/package_2016_05/models.rs @@ -676,7 +676,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3930,8 +3930,8 @@ pub struct ProviderOperationResult { pub next_link: Option, } impl azure_core::Continuable for ProviderOperationResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderOperationResult { @@ -3974,8 +3974,8 @@ pub struct ResponseWithContinuationArmTemplate { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationArmTemplate { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationArmTemplate { @@ -3994,8 +3994,8 @@ pub struct ResponseWithContinuationArtifactSource { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationArtifactSource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationArtifactSource { @@ -4014,8 +4014,8 @@ pub struct ResponseWithContinuationArtifact { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationArtifact { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationArtifact { @@ -4034,8 +4034,8 @@ pub struct ResponseWithContinuationCustomImage { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationCustomImage { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationCustomImage { @@ -4054,8 +4054,8 @@ pub struct ResponseWithContinuationDisk { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationDisk { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationDisk { @@ -4074,8 +4074,8 @@ pub struct ResponseWithContinuationDtlEnvironment { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationDtlEnvironment { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationDtlEnvironment { @@ -4094,8 +4094,8 @@ pub struct ResponseWithContinuationFormula { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationFormula { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationFormula { @@ -4114,8 +4114,8 @@ pub struct ResponseWithContinuationGalleryImage { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationGalleryImage { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationGalleryImage { @@ -4134,8 +4134,8 @@ pub struct ResponseWithContinuationLabVhd { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationLabVhd { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationLabVhd { @@ -4154,8 +4154,8 @@ pub struct ResponseWithContinuationLabVirtualMachine { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationLabVirtualMachine { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationLabVirtualMachine { @@ -4174,8 +4174,8 @@ pub struct ResponseWithContinuationLab { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationLab { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationLab { @@ -4194,8 +4194,8 @@ pub struct ResponseWithContinuationNotificationChannel { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationNotificationChannel { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationNotificationChannel { @@ -4214,8 +4214,8 @@ pub struct ResponseWithContinuationPolicy { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationPolicy { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationPolicy { @@ -4234,8 +4234,8 @@ pub struct ResponseWithContinuationSchedule { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationSchedule { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationSchedule { @@ -4254,8 +4254,8 @@ pub struct ResponseWithContinuationSecret { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationSecret { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationSecret { @@ -4274,8 +4274,8 @@ pub struct ResponseWithContinuationServiceRunner { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationServiceRunner { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationServiceRunner { @@ -4294,8 +4294,8 @@ pub struct ResponseWithContinuationUser { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationUser { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationUser { @@ -4314,8 +4314,8 @@ pub struct ResponseWithContinuationVirtualNetwork { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationVirtualNetwork { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationVirtualNetwork { diff --git a/services/mgmt/devtestlabs/src/package_2016_05/operations.rs b/services/mgmt/devtestlabs/src/package_2016_05/operations.rs index a541b975ea..0ef0c618a3 100644 --- a/services/mgmt/devtestlabs/src/package_2016_05/operations.rs +++ b/services/mgmt/devtestlabs/src/package_2016_05/operations.rs @@ -167,9 +167,9 @@ pub mod provider_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DevTestLab/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -188,6 +188,9 @@ pub mod provider_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -420,9 +423,9 @@ pub mod labs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -441,6 +444,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -528,9 +534,9 @@ pub mod labs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -549,6 +555,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1071,9 +1080,9 @@ pub mod labs { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1092,6 +1101,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1348,9 +1360,9 @@ pub mod global_schedules { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1369,6 +1381,9 @@ pub mod global_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1456,9 +1471,9 @@ pub mod global_schedules { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1477,6 +1492,9 @@ pub mod global_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1995,9 +2013,9 @@ pub mod artifact_sources { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2016,6 +2034,9 @@ pub mod artifact_sources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2388,9 +2409,9 @@ pub mod arm_templates { &this.artifact_source_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2409,6 +2430,9 @@ pub mod arm_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2618,9 +2642,9 @@ pub mod artifacts { &this.artifact_source_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2639,6 +2663,9 @@ pub mod artifacts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3079,9 +3106,9 @@ pub mod custom_images { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3100,6 +3127,9 @@ pub mod custom_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3444,9 +3474,9 @@ pub mod formulas { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3465,6 +3495,9 @@ pub mod formulas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3760,9 +3793,9 @@ pub mod gallery_images { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3781,6 +3814,9 @@ pub mod gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3975,9 +4011,9 @@ pub mod notification_channels { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3996,6 +4032,9 @@ pub mod notification_channels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4554,9 +4593,9 @@ pub mod policies { &this.policy_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4575,6 +4614,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5028,9 +5070,9 @@ pub mod schedules { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5049,6 +5091,9 @@ pub mod schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5415,9 +5460,9 @@ pub mod schedules { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5436,6 +5481,9 @@ pub mod schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5578,9 +5626,9 @@ pub mod service_runners { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5599,6 +5647,9 @@ pub mod service_runners { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5947,9 +5998,9 @@ pub mod users { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5968,6 +6019,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6415,9 +6469,9 @@ pub mod disks { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6436,6 +6490,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6916,9 +6973,9 @@ pub mod environments { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6937,6 +6994,9 @@ pub mod environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7297,9 +7357,9 @@ pub mod secrets { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7318,6 +7378,9 @@ pub mod secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7794,9 +7857,9 @@ pub mod virtual_machines { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7815,6 +7878,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8640,9 +8706,9 @@ pub mod virtual_machine_schedules { &this.virtual_machine_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8661,6 +8727,9 @@ pub mod virtual_machine_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9135,9 +9204,9 @@ pub mod virtual_networks { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9156,6 +9225,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/devtestlabs/src/package_2018_09/models.rs b/services/mgmt/devtestlabs/src/package_2018_09/models.rs index a2b3223349..9d2caa0299 100644 --- a/services/mgmt/devtestlabs/src/package_2018_09/models.rs +++ b/services/mgmt/devtestlabs/src/package_2018_09/models.rs @@ -108,8 +108,8 @@ pub struct ArmTemplateList { pub next_link: Option, } impl azure_core::Continuable for ArmTemplateList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArmTemplateList { @@ -264,8 +264,8 @@ pub struct ArtifactList { pub next_link: Option, } impl azure_core::Continuable for ArtifactList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArtifactList { @@ -367,8 +367,8 @@ pub struct ArtifactSourceList { pub next_link: Option, } impl azure_core::Continuable for ArtifactSourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArtifactSourceList { @@ -614,7 +614,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -876,8 +876,8 @@ pub struct CustomImageList { pub next_link: Option, } impl azure_core::Continuable for CustomImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomImageList { @@ -1278,8 +1278,8 @@ pub struct DiskList { pub next_link: Option, } impl azure_core::Continuable for DiskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskList { @@ -1418,8 +1418,8 @@ pub struct DtlEnvironmentList { pub next_link: Option, } impl azure_core::Continuable for DtlEnvironmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DtlEnvironmentList { @@ -1666,8 +1666,8 @@ pub struct FormulaList { pub next_link: Option, } impl azure_core::Continuable for FormulaList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FormulaList { @@ -1763,8 +1763,8 @@ pub struct GalleryImageList { pub next_link: Option, } impl azure_core::Continuable for GalleryImageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GalleryImageList { @@ -2332,8 +2332,8 @@ pub struct LabList { pub next_link: Option, } impl azure_core::Continuable for LabList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LabList { @@ -2662,8 +2662,8 @@ pub struct LabVhdList { pub next_link: Option, } impl azure_core::Continuable for LabVhdList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LabVhdList { @@ -2827,8 +2827,8 @@ pub struct LabVirtualMachineList { pub next_link: Option, } impl azure_core::Continuable for LabVirtualMachineList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LabVirtualMachineList { @@ -3146,8 +3146,8 @@ pub struct NotificationChannelList { pub next_link: Option, } impl azure_core::Continuable for NotificationChannelList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationChannelList { @@ -3610,8 +3610,8 @@ pub struct PolicyList { pub next_link: Option, } impl azure_core::Continuable for PolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyList { @@ -3897,8 +3897,8 @@ pub struct ProviderOperationResult { pub next_link: Option, } impl azure_core::Continuable for ProviderOperationResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderOperationResult { @@ -4122,8 +4122,8 @@ pub struct ScheduleList { pub next_link: Option, } impl azure_core::Continuable for ScheduleList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScheduleList { @@ -4264,8 +4264,8 @@ pub struct SecretList { pub next_link: Option, } impl azure_core::Continuable for SecretList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretList { @@ -4337,8 +4337,8 @@ pub struct ServiceFabricList { pub next_link: Option, } impl azure_core::Continuable for ServiceFabricList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceFabricList { @@ -4863,8 +4863,8 @@ pub struct UserList { pub next_link: Option, } impl azure_core::Continuable for UserList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserList { @@ -4963,8 +4963,8 @@ pub struct VirtualNetworkList { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkList { diff --git a/services/mgmt/devtestlabs/src/package_2018_09/operations.rs b/services/mgmt/devtestlabs/src/package_2018_09/operations.rs index 5d6ca77367..bae6c676bd 100644 --- a/services/mgmt/devtestlabs/src/package_2018_09/operations.rs +++ b/services/mgmt/devtestlabs/src/package_2018_09/operations.rs @@ -173,9 +173,9 @@ pub mod provider_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DevTestLab/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -194,6 +194,9 @@ pub mod provider_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -441,9 +444,9 @@ pub mod labs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -462,6 +465,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -549,9 +555,9 @@ pub mod labs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -570,6 +576,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1150,9 +1159,9 @@ pub mod labs { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1171,6 +1180,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1436,9 +1448,9 @@ pub mod global_schedules { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1457,6 +1469,9 @@ pub mod global_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1544,9 +1559,9 @@ pub mod global_schedules { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1565,6 +1580,9 @@ pub mod global_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2083,9 +2101,9 @@ pub mod artifact_sources { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2104,6 +2122,9 @@ pub mod artifact_sources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2476,9 +2497,9 @@ pub mod arm_templates { &this.artifact_source_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2497,6 +2518,9 @@ pub mod arm_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2706,9 +2730,9 @@ pub mod artifacts { &this.artifact_source_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2727,6 +2751,9 @@ pub mod artifacts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3184,9 +3211,9 @@ pub mod custom_images { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3205,6 +3232,9 @@ pub mod custom_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3624,9 +3654,9 @@ pub mod formulas { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3645,6 +3675,9 @@ pub mod formulas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3996,9 +4029,9 @@ pub mod gallery_images { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4017,6 +4050,9 @@ pub mod gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4211,9 +4247,9 @@ pub mod notification_channels { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4232,6 +4268,9 @@ pub mod notification_channels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4790,9 +4829,9 @@ pub mod policies { &this.policy_set_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4811,6 +4850,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5264,9 +5306,9 @@ pub mod schedules { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5285,6 +5327,9 @@ pub mod schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5651,9 +5696,9 @@ pub mod schedules { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5672,6 +5717,9 @@ pub mod schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6065,9 +6113,9 @@ pub mod users { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6086,6 +6134,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6555,9 +6606,9 @@ pub mod disks { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6576,6 +6627,9 @@ pub mod disks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7135,9 +7189,9 @@ pub mod environments { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7156,6 +7210,9 @@ pub mod environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7595,9 +7652,9 @@ pub mod secrets { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7616,6 +7673,9 @@ pub mod secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8103,9 +8163,9 @@ pub mod service_fabrics { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8124,6 +8184,9 @@ pub mod service_fabrics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8753,9 +8816,9 @@ pub mod service_fabric_schedules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DevTestLab/labs/{}/users/{}/servicefabrics/{}/schedules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . lab_name , & this . user_name , & this . service_fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8774,6 +8837,9 @@ pub mod service_fabric_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9424,9 +9490,9 @@ pub mod virtual_machines { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9445,6 +9511,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10606,9 +10675,9 @@ pub mod virtual_machine_schedules { &this.virtual_machine_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10627,6 +10696,9 @@ pub mod virtual_machine_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11101,9 +11173,9 @@ pub mod virtual_networks { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11122,6 +11194,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dfp/src/package_2021_02_01_preview/models.rs b/services/mgmt/dfp/src/package_2021_02_01_preview/models.rs index 14b2eeee52..5da4552179 100644 --- a/services/mgmt/dfp/src/package_2021_02_01_preview/models.rs +++ b/services/mgmt/dfp/src/package_2021_02_01_preview/models.rs @@ -188,8 +188,8 @@ pub struct DfpInstances { pub next_link: Option, } impl azure_core::Continuable for DfpInstances { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DfpInstances { @@ -244,7 +244,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -410,8 +410,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/dfp/src/package_2021_02_01_preview/operations.rs b/services/mgmt/dfp/src/package_2021_02_01_preview/operations.rs index ed5a4b739b..2d7b14d905 100644 --- a/services/mgmt/dfp/src/package_2021_02_01_preview/operations.rs +++ b/services/mgmt/dfp/src/package_2021_02_01_preview/operations.rs @@ -432,9 +432,9 @@ pub mod instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -453,6 +453,9 @@ pub mod instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -506,9 +509,9 @@ pub mod instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -527,6 +530,9 @@ pub mod instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -636,9 +642,9 @@ pub mod list_operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -657,6 +663,9 @@ pub mod list_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/digitaltwins/src/package_2020_03_01_preview/models.rs b/services/mgmt/digitaltwins/src/package_2020_03_01_preview/models.rs index cd7db9af7e..ff2786fead 100644 --- a/services/mgmt/digitaltwins/src/package_2020_03_01_preview/models.rs +++ b/services/mgmt/digitaltwins/src/package_2020_03_01_preview/models.rs @@ -116,8 +116,8 @@ pub struct DigitalTwinsDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for DigitalTwinsDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DigitalTwinsDescriptionListResult { @@ -150,8 +150,8 @@ pub struct DigitalTwinsEndpointResourceListResult { pub value: Vec, } impl azure_core::Continuable for DigitalTwinsEndpointResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DigitalTwinsEndpointResourceListResult { @@ -457,7 +457,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -585,8 +585,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/digitaltwins/src/package_2020_03_01_preview/operations.rs b/services/mgmt/digitaltwins/src/package_2020_03_01_preview/operations.rs index 9b1ae8731c..2f04f3d74f 100644 --- a/services/mgmt/digitaltwins/src/package_2020_03_01_preview/operations.rs +++ b/services/mgmt/digitaltwins/src/package_2020_03_01_preview/operations.rs @@ -430,9 +430,9 @@ pub mod digital_twins { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -451,6 +451,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -506,9 +509,9 @@ pub mod digital_twins { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -527,6 +530,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -702,9 +708,9 @@ pub mod digital_twins_endpoint { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -723,6 +729,9 @@ pub mod digital_twins_endpoint { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -963,9 +972,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DigitalTwins/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -984,6 +993,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/digitaltwins/src/package_2020_10/models.rs b/services/mgmt/digitaltwins/src/package_2020_10/models.rs index 9107e0e90d..13a44a2b78 100644 --- a/services/mgmt/digitaltwins/src/package_2020_10/models.rs +++ b/services/mgmt/digitaltwins/src/package_2020_10/models.rs @@ -113,8 +113,8 @@ pub struct DigitalTwinsDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for DigitalTwinsDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DigitalTwinsDescriptionListResult { @@ -149,8 +149,8 @@ pub struct DigitalTwinsEndpointResourceListResult { pub value: Vec, } impl azure_core::Continuable for DigitalTwinsEndpointResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DigitalTwinsEndpointResourceListResult { @@ -425,7 +425,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -558,8 +558,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/digitaltwins/src/package_2020_10/operations.rs b/services/mgmt/digitaltwins/src/package_2020_10/operations.rs index 47385fb6e0..9abe7cd3ad 100644 --- a/services/mgmt/digitaltwins/src/package_2020_10/operations.rs +++ b/services/mgmt/digitaltwins/src/package_2020_10/operations.rs @@ -428,9 +428,9 @@ pub mod digital_twins { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -449,6 +449,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -504,9 +507,9 @@ pub mod digital_twins { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -525,6 +528,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -700,9 +706,9 @@ pub mod digital_twins_endpoint { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -721,6 +727,9 @@ pub mod digital_twins_endpoint { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -965,9 +974,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DigitalTwins/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -986,6 +995,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/digitaltwins/src/package_2020_12/models.rs b/services/mgmt/digitaltwins/src/package_2020_12/models.rs index 4c20a7c624..ac50e23d7c 100644 --- a/services/mgmt/digitaltwins/src/package_2020_12/models.rs +++ b/services/mgmt/digitaltwins/src/package_2020_12/models.rs @@ -240,8 +240,8 @@ pub struct DigitalTwinsDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for DigitalTwinsDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DigitalTwinsDescriptionListResult { @@ -276,8 +276,8 @@ pub struct DigitalTwinsEndpointResourceListResult { pub value: Vec, } impl azure_core::Continuable for DigitalTwinsEndpointResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DigitalTwinsEndpointResourceListResult { @@ -761,7 +761,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -954,8 +954,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/digitaltwins/src/package_2020_12/operations.rs b/services/mgmt/digitaltwins/src/package_2020_12/operations.rs index 9d8e5c4412..dc623210d7 100644 --- a/services/mgmt/digitaltwins/src/package_2020_12/operations.rs +++ b/services/mgmt/digitaltwins/src/package_2020_12/operations.rs @@ -444,9 +444,9 @@ pub mod digital_twins { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -465,6 +465,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -520,9 +523,9 @@ pub mod digital_twins { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -541,6 +544,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -716,9 +722,9 @@ pub mod digital_twins_endpoint { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -737,6 +743,9 @@ pub mod digital_twins_endpoint { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -981,9 +990,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DigitalTwins/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1002,6 +1011,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/digitaltwins/src/package_2021_06_30_preview/models.rs b/services/mgmt/digitaltwins/src/package_2021_06_30_preview/models.rs index 5733b92467..ee8139b974 100644 --- a/services/mgmt/digitaltwins/src/package_2021_06_30_preview/models.rs +++ b/services/mgmt/digitaltwins/src/package_2021_06_30_preview/models.rs @@ -295,8 +295,8 @@ pub struct DigitalTwinsDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for DigitalTwinsDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DigitalTwinsDescriptionListResult { @@ -331,8 +331,8 @@ pub struct DigitalTwinsEndpointResourceListResult { pub value: Vec, } impl azure_core::Continuable for DigitalTwinsEndpointResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DigitalTwinsEndpointResourceListResult { @@ -821,7 +821,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1021,8 +1021,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1249,8 +1249,8 @@ pub struct TimeSeriesDatabaseConnectionListResult { pub value: Vec, } impl azure_core::Continuable for TimeSeriesDatabaseConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TimeSeriesDatabaseConnectionListResult { diff --git a/services/mgmt/digitaltwins/src/package_2021_06_30_preview/operations.rs b/services/mgmt/digitaltwins/src/package_2021_06_30_preview/operations.rs index 4e14c125e0..2adfadaa82 100644 --- a/services/mgmt/digitaltwins/src/package_2021_06_30_preview/operations.rs +++ b/services/mgmt/digitaltwins/src/package_2021_06_30_preview/operations.rs @@ -447,9 +447,9 @@ pub mod digital_twins { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -468,6 +468,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -523,9 +526,9 @@ pub mod digital_twins { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -544,6 +547,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -719,9 +725,9 @@ pub mod digital_twins_endpoint { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -740,6 +746,9 @@ pub mod digital_twins_endpoint { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -984,9 +993,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DigitalTwins/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1005,6 +1014,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1518,9 +1530,9 @@ pub mod time_series_database_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{}/timeSeriesDatabaseConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1539,6 +1551,9 @@ pub mod time_series_database_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/digitaltwins/src/package_2022_05/models.rs b/services/mgmt/digitaltwins/src/package_2022_05/models.rs index b26eb16ffc..b85a566462 100644 --- a/services/mgmt/digitaltwins/src/package_2022_05/models.rs +++ b/services/mgmt/digitaltwins/src/package_2022_05/models.rs @@ -295,8 +295,8 @@ pub struct DigitalTwinsDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for DigitalTwinsDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DigitalTwinsDescriptionListResult { @@ -331,8 +331,8 @@ pub struct DigitalTwinsEndpointResourceListResult { pub value: Vec, } impl azure_core::Continuable for DigitalTwinsEndpointResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DigitalTwinsEndpointResourceListResult { @@ -823,7 +823,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1023,8 +1023,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1251,8 +1251,8 @@ pub struct TimeSeriesDatabaseConnectionListResult { pub value: Vec, } impl azure_core::Continuable for TimeSeriesDatabaseConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TimeSeriesDatabaseConnectionListResult { diff --git a/services/mgmt/digitaltwins/src/package_2022_05/operations.rs b/services/mgmt/digitaltwins/src/package_2022_05/operations.rs index d9a725bb7d..ff77d09288 100644 --- a/services/mgmt/digitaltwins/src/package_2022_05/operations.rs +++ b/services/mgmt/digitaltwins/src/package_2022_05/operations.rs @@ -447,9 +447,9 @@ pub mod digital_twins { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -468,6 +468,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -523,9 +526,9 @@ pub mod digital_twins { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -544,6 +547,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -719,9 +725,9 @@ pub mod digital_twins_endpoint { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -740,6 +746,9 @@ pub mod digital_twins_endpoint { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -984,9 +993,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DigitalTwins/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1005,6 +1014,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1518,9 +1530,9 @@ pub mod time_series_database_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{}/timeSeriesDatabaseConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1539,6 +1551,9 @@ pub mod time_series_database_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dnc/src/package_2020_08_08_preview/models.rs b/services/mgmt/dnc/src/package_2020_08_08_preview/models.rs index ab1be55ad4..a70cbe7a9d 100644 --- a/services/mgmt/dnc/src/package_2020_08_08_preview/models.rs +++ b/services/mgmt/dnc/src/package_2020_08_08_preview/models.rs @@ -132,8 +132,8 @@ pub struct DelegatedControllers { pub next_link: Option, } impl azure_core::Continuable for DelegatedControllers { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DelegatedControllers { @@ -254,8 +254,8 @@ pub struct DelegatedSubnets { pub next_link: Option, } impl azure_core::Continuable for DelegatedSubnets { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DelegatedSubnets { @@ -310,7 +310,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -455,8 +455,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -685,8 +685,8 @@ pub struct Orchestrators { pub next_link: Option, } impl azure_core::Continuable for Orchestrators { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Orchestrators { diff --git a/services/mgmt/dnc/src/package_2020_08_08_preview/operations.rs b/services/mgmt/dnc/src/package_2020_08_08_preview/operations.rs index 175b956b13..e6022edb2f 100644 --- a/services/mgmt/dnc/src/package_2020_08_08_preview/operations.rs +++ b/services/mgmt/dnc/src/package_2020_08_08_preview/operations.rs @@ -419,9 +419,9 @@ pub mod delegated_network { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -440,6 +440,9 @@ pub mod delegated_network { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -495,9 +498,9 @@ pub mod delegated_network { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -516,6 +519,9 @@ pub mod delegated_network { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -874,9 +880,9 @@ pub mod orchestrator_instance_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -895,6 +901,9 @@ pub mod orchestrator_instance_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -950,9 +959,9 @@ pub mod orchestrator_instance_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -971,6 +980,9 @@ pub mod orchestrator_instance_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1341,9 +1353,9 @@ pub mod delegated_subnet_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1362,6 +1374,9 @@ pub mod delegated_subnet_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1417,9 +1432,9 @@ pub mod delegated_subnet_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1438,6 +1453,9 @@ pub mod delegated_subnet_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1498,9 +1516,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1519,6 +1537,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dnc/src/package_2021_03_15/models.rs b/services/mgmt/dnc/src/package_2021_03_15/models.rs index 48392d23b8..8a9c622cbf 100644 --- a/services/mgmt/dnc/src/package_2021_03_15/models.rs +++ b/services/mgmt/dnc/src/package_2021_03_15/models.rs @@ -132,8 +132,8 @@ pub struct DelegatedControllers { pub next_link: Option, } impl azure_core::Continuable for DelegatedControllers { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DelegatedControllers { @@ -254,8 +254,8 @@ pub struct DelegatedSubnets { pub next_link: Option, } impl azure_core::Continuable for DelegatedSubnets { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DelegatedSubnets { @@ -310,7 +310,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -455,8 +455,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -689,8 +689,8 @@ pub struct Orchestrators { pub next_link: Option, } impl azure_core::Continuable for Orchestrators { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Orchestrators { diff --git a/services/mgmt/dnc/src/package_2021_03_15/operations.rs b/services/mgmt/dnc/src/package_2021_03_15/operations.rs index 9c8ca1f029..72ac1627e4 100644 --- a/services/mgmt/dnc/src/package_2021_03_15/operations.rs +++ b/services/mgmt/dnc/src/package_2021_03_15/operations.rs @@ -419,9 +419,9 @@ pub mod delegated_network { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -440,6 +440,9 @@ pub mod delegated_network { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -495,9 +498,9 @@ pub mod delegated_network { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -516,6 +519,9 @@ pub mod delegated_network { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -885,9 +891,9 @@ pub mod orchestrator_instance_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -906,6 +912,9 @@ pub mod orchestrator_instance_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -961,9 +970,9 @@ pub mod orchestrator_instance_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -982,6 +991,9 @@ pub mod orchestrator_instance_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1352,9 +1364,9 @@ pub mod delegated_subnet_service { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1373,6 +1385,9 @@ pub mod delegated_subnet_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1428,9 +1443,9 @@ pub mod delegated_subnet_service { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1449,6 +1464,9 @@ pub mod delegated_subnet_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1509,9 +1527,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1530,6 +1548,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dns/src/package_2017_09/models.rs b/services/mgmt/dns/src/package_2017_09/models.rs index 2f66ae4d93..ae44c55c19 100644 --- a/services/mgmt/dns/src/package_2017_09/models.rs +++ b/services/mgmt/dns/src/package_2017_09/models.rs @@ -54,7 +54,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -170,8 +170,8 @@ pub struct RecordSetListResult { pub next_link: Option, } impl azure_core::Continuable for RecordSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecordSetListResult { @@ -384,8 +384,8 @@ pub struct ZoneListResult { pub next_link: Option, } impl azure_core::Continuable for ZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ZoneListResult { diff --git a/services/mgmt/dns/src/package_2017_09/operations.rs b/services/mgmt/dns/src/package_2017_09/operations.rs index 3f728d9549..52c5765317 100644 --- a/services/mgmt/dns/src/package_2017_09/operations.rs +++ b/services/mgmt/dns/src/package_2017_09/operations.rs @@ -499,9 +499,9 @@ pub mod record_sets { &this.record_type ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -520,6 +520,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -595,9 +598,9 @@ pub mod record_sets { &this.zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -616,6 +619,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -948,9 +954,9 @@ pub mod zones { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -969,6 +975,9 @@ pub mod zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1030,9 +1039,9 @@ pub mod zones { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1051,6 +1060,9 @@ pub mod zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dns/src/package_2017_10/models.rs b/services/mgmt/dns/src/package_2017_10/models.rs index 34a67c458e..a26ce45af2 100644 --- a/services/mgmt/dns/src/package_2017_10/models.rs +++ b/services/mgmt/dns/src/package_2017_10/models.rs @@ -54,7 +54,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -170,8 +170,8 @@ pub struct RecordSetListResult { pub next_link: Option, } impl azure_core::Continuable for RecordSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecordSetListResult { @@ -384,8 +384,8 @@ pub struct ZoneListResult { pub next_link: Option, } impl azure_core::Continuable for ZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ZoneListResult { diff --git a/services/mgmt/dns/src/package_2017_10/operations.rs b/services/mgmt/dns/src/package_2017_10/operations.rs index 8983a34e19..bee7a0713f 100644 --- a/services/mgmt/dns/src/package_2017_10/operations.rs +++ b/services/mgmt/dns/src/package_2017_10/operations.rs @@ -514,9 +514,9 @@ pub mod record_sets { &this.record_type ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -535,6 +535,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -610,9 +613,9 @@ pub mod record_sets { &this.zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -631,6 +634,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -706,9 +712,9 @@ pub mod record_sets { &this.zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -727,6 +733,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1137,9 +1146,9 @@ pub mod zones { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1158,6 +1167,9 @@ pub mod zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1219,9 +1231,9 @@ pub mod zones { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1240,6 +1252,9 @@ pub mod zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dns/src/package_2018_03_preview/models.rs b/services/mgmt/dns/src/package_2018_03_preview/models.rs index f96752931f..4df29bf211 100644 --- a/services/mgmt/dns/src/package_2018_03_preview/models.rs +++ b/services/mgmt/dns/src/package_2018_03_preview/models.rs @@ -54,7 +54,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -170,8 +170,8 @@ pub struct RecordSetListResult { pub next_link: Option, } impl azure_core::Continuable for RecordSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecordSetListResult { @@ -384,8 +384,8 @@ pub struct ZoneListResult { pub next_link: Option, } impl azure_core::Continuable for ZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ZoneListResult { diff --git a/services/mgmt/dns/src/package_2018_03_preview/operations.rs b/services/mgmt/dns/src/package_2018_03_preview/operations.rs index 8846acc1c8..909c1855b1 100644 --- a/services/mgmt/dns/src/package_2018_03_preview/operations.rs +++ b/services/mgmt/dns/src/package_2018_03_preview/operations.rs @@ -514,9 +514,9 @@ pub mod record_sets { &this.record_type ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -535,6 +535,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -610,9 +613,9 @@ pub mod record_sets { &this.zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -631,6 +634,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -706,9 +712,9 @@ pub mod record_sets { &this.zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -727,6 +733,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1137,9 +1146,9 @@ pub mod zones { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1158,6 +1167,9 @@ pub mod zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1219,9 +1231,9 @@ pub mod zones { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1240,6 +1252,9 @@ pub mod zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dns/src/package_2018_05/models.rs b/services/mgmt/dns/src/package_2018_05/models.rs index e4e805d3a6..953a28f1bc 100644 --- a/services/mgmt/dns/src/package_2018_05/models.rs +++ b/services/mgmt/dns/src/package_2018_05/models.rs @@ -54,7 +54,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -233,8 +233,8 @@ pub struct RecordSetListResult { pub next_link: Option, } impl azure_core::Continuable for RecordSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecordSetListResult { @@ -444,8 +444,8 @@ pub struct ZoneListResult { pub next_link: Option, } impl azure_core::Continuable for ZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ZoneListResult { diff --git a/services/mgmt/dns/src/package_2018_05/operations.rs b/services/mgmt/dns/src/package_2018_05/operations.rs index 5cbf00b0d4..035372a829 100644 --- a/services/mgmt/dns/src/package_2018_05/operations.rs +++ b/services/mgmt/dns/src/package_2018_05/operations.rs @@ -517,9 +517,9 @@ pub mod record_sets { &this.record_type ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -538,6 +538,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -613,9 +616,9 @@ pub mod record_sets { &this.zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -634,6 +637,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -709,9 +715,9 @@ pub mod record_sets { &this.zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -730,6 +736,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1140,9 +1149,9 @@ pub mod zones { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1161,6 +1170,9 @@ pub mod zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1222,9 +1234,9 @@ pub mod zones { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1243,6 +1255,9 @@ pub mod zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dns/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/dns/src/profile_hybrid_2020_09_01/models.rs index 5ef4f8f907..9d6c7391e3 100644 --- a/services/mgmt/dns/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/dns/src/profile_hybrid_2020_09_01/models.rs @@ -36,7 +36,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -152,8 +152,8 @@ pub struct RecordSetListResult { pub next_link: Option, } impl azure_core::Continuable for RecordSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecordSetListResult { @@ -440,8 +440,8 @@ pub struct ZoneListResult { pub next_link: Option, } impl azure_core::Continuable for ZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ZoneListResult { diff --git a/services/mgmt/dns/src/profile_hybrid_2020_09_01/operations.rs b/services/mgmt/dns/src/profile_hybrid_2020_09_01/operations.rs index 8c7f367048..783a525c87 100644 --- a/services/mgmt/dns/src/profile_hybrid_2020_09_01/operations.rs +++ b/services/mgmt/dns/src/profile_hybrid_2020_09_01/operations.rs @@ -499,9 +499,9 @@ pub mod record_sets { &this.record_type ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -520,6 +520,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -595,9 +598,9 @@ pub mod record_sets { &this.zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -616,6 +619,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -952,9 +958,9 @@ pub mod zones { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -973,6 +979,9 @@ pub mod zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1034,9 +1043,9 @@ pub mod zones { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1055,6 +1064,9 @@ pub mod zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs b/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs index 41d8936703..416ac925b7 100644 --- a/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs +++ b/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -78,8 +78,8 @@ pub struct DnsForwardingRulesetListResult { pub next_link: Option, } impl azure_core::Continuable for DnsForwardingRulesetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DnsForwardingRulesetListResult { @@ -153,8 +153,8 @@ pub struct DnsResolverListResult { pub next_link: Option, } impl azure_core::Continuable for DnsResolverListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DnsResolverListResult { @@ -271,8 +271,8 @@ pub struct ForwardingRuleListResult { pub next_link: Option, } impl azure_core::Continuable for ForwardingRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ForwardingRuleListResult { @@ -461,8 +461,8 @@ pub struct InboundEndpointListResult { pub next_link: Option, } impl azure_core::Continuable for InboundEndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InboundEndpointListResult { @@ -599,8 +599,8 @@ pub struct OutboundEndpointListResult { pub next_link: Option, } impl azure_core::Continuable for OutboundEndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEndpointListResult { @@ -736,8 +736,8 @@ pub struct SubResourceListResult { pub next_link: Option, } impl azure_core::Continuable for SubResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubResourceListResult { @@ -806,8 +806,8 @@ pub struct VirtualNetworkDnsForwardingRulesetListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkDnsForwardingRulesetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkDnsForwardingRulesetListResult { @@ -846,8 +846,8 @@ pub struct VirtualNetworkLinkListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkLinkListResult { diff --git a/services/mgmt/dnsresolver/src/package_2020_04_preview/operations.rs b/services/mgmt/dnsresolver/src/package_2020_04_preview/operations.rs index a957b409c2..9e0944186d 100644 --- a/services/mgmt/dnsresolver/src/package_2020_04_preview/operations.rs +++ b/services/mgmt/dnsresolver/src/package_2020_04_preview/operations.rs @@ -483,9 +483,9 @@ pub mod dns_resolvers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -504,6 +504,9 @@ pub mod dns_resolvers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -565,9 +568,9 @@ pub mod dns_resolvers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -586,6 +589,9 @@ pub mod dns_resolvers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -651,9 +657,9 @@ pub mod dns_resolvers { &this.virtual_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -672,6 +678,9 @@ pub mod dns_resolvers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1100,9 +1109,9 @@ pub mod inbound_endpoints { &this.dns_resolver_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1121,6 +1130,9 @@ pub mod inbound_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1548,9 +1560,9 @@ pub mod outbound_endpoints { &this.dns_resolver_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1569,6 +1581,9 @@ pub mod outbound_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1997,9 +2012,9 @@ pub mod dns_forwarding_rulesets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2018,6 +2033,9 @@ pub mod dns_forwarding_rulesets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2079,9 +2097,9 @@ pub mod dns_forwarding_rulesets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2100,6 +2118,9 @@ pub mod dns_forwarding_rulesets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2159,9 +2180,9 @@ pub mod dns_forwarding_rulesets { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/virtualNetworks/{}/listDnsForwardingRulesets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_network_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2180,6 +2201,9 @@ pub mod dns_forwarding_rulesets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2596,9 +2620,9 @@ pub mod forwarding_rules { &this.dns_forwarding_ruleset_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2617,6 +2641,9 @@ pub mod forwarding_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3010,9 +3037,9 @@ pub mod virtual_network_links { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/dnsForwardingRulesets/{}/virtualNetworkLinks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . dns_forwarding_ruleset_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3031,6 +3058,9 @@ pub mod virtual_network_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/domainservices/src/package_2017_01/models.rs b/services/mgmt/domainservices/src/package_2017_01/models.rs index 58e2ced04a..596ef90deb 100644 --- a/services/mgmt/domainservices/src/package_2017_01/models.rs +++ b/services/mgmt/domainservices/src/package_2017_01/models.rs @@ -161,8 +161,8 @@ pub struct DomainServiceListResult { pub next_link: Option, } impl azure_core::Continuable for DomainServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainServiceListResult { @@ -567,8 +567,8 @@ pub struct OperationEntityListResult { pub next_link: Option, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { diff --git a/services/mgmt/domainservices/src/package_2017_01/operations.rs b/services/mgmt/domainservices/src/package_2017_01/operations.rs index 31aefc2129..e16c356a86 100644 --- a/services/mgmt/domainservices/src/package_2017_01/operations.rs +++ b/services/mgmt/domainservices/src/package_2017_01/operations.rs @@ -103,9 +103,9 @@ pub mod domain_service_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AAD/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -124,6 +124,9 @@ pub mod domain_service_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -262,9 +265,9 @@ pub mod domain_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -283,6 +286,9 @@ pub mod domain_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -338,9 +344,9 @@ pub mod domain_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -359,6 +365,9 @@ pub mod domain_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/domainservices/src/package_2017_06/models.rs b/services/mgmt/domainservices/src/package_2017_06/models.rs index 99a1f2390a..944ac9f335 100644 --- a/services/mgmt/domainservices/src/package_2017_06/models.rs +++ b/services/mgmt/domainservices/src/package_2017_06/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -68,7 +68,7 @@ pub struct DefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for DefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -366,8 +366,8 @@ pub struct DomainServiceListResult { pub next_link: Option, } impl azure_core::Continuable for DomainServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainServiceListResult { @@ -854,8 +854,8 @@ pub struct OperationEntityListResult { pub next_link: Option, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -888,8 +888,8 @@ pub struct OuContainerListResult { pub next_link: Option, } impl azure_core::Continuable for OuContainerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OuContainerListResult { diff --git a/services/mgmt/domainservices/src/package_2017_06/operations.rs b/services/mgmt/domainservices/src/package_2017_06/operations.rs index 00b8086cd9..273e7a3d23 100644 --- a/services/mgmt/domainservices/src/package_2017_06/operations.rs +++ b/services/mgmt/domainservices/src/package_2017_06/operations.rs @@ -109,9 +109,9 @@ pub mod domain_service_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AAD/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod domain_service_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -268,9 +271,9 @@ pub mod domain_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -289,6 +292,9 @@ pub mod domain_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -344,9 +350,9 @@ pub mod domain_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -365,6 +371,9 @@ pub mod domain_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -662,9 +671,9 @@ pub mod ou_container_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Aad/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -683,6 +692,9 @@ pub mod ou_container_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -828,9 +840,9 @@ pub mod ou_container { &this.domain_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -849,6 +861,9 @@ pub mod ou_container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/domainservices/src/package_2020_01/models.rs b/services/mgmt/domainservices/src/package_2020_01/models.rs index cdd4e0991a..b15c9aeea5 100644 --- a/services/mgmt/domainservices/src/package_2020_01/models.rs +++ b/services/mgmt/domainservices/src/package_2020_01/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -322,8 +322,8 @@ pub struct DomainServiceListResult { pub next_link: Option, } impl azure_core::Continuable for DomainServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainServiceListResult { @@ -792,8 +792,8 @@ pub struct OperationEntityListResult { pub next_link: Option, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -826,8 +826,8 @@ pub struct OuContainerListResult { pub next_link: Option, } impl azure_core::Continuable for OuContainerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OuContainerListResult { diff --git a/services/mgmt/domainservices/src/package_2020_01/operations.rs b/services/mgmt/domainservices/src/package_2020_01/operations.rs index 9489aa7073..19148d64e5 100644 --- a/services/mgmt/domainservices/src/package_2020_01/operations.rs +++ b/services/mgmt/domainservices/src/package_2020_01/operations.rs @@ -109,9 +109,9 @@ pub mod domain_service_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AAD/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod domain_service_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -268,9 +271,9 @@ pub mod domain_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -289,6 +292,9 @@ pub mod domain_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -344,9 +350,9 @@ pub mod domain_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -365,6 +371,9 @@ pub mod domain_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -662,9 +671,9 @@ pub mod ou_container_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Aad/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -683,6 +692,9 @@ pub mod ou_container_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -828,9 +840,9 @@ pub mod ou_container { &this.domain_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -849,6 +861,9 @@ pub mod ou_container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/domainservices/src/package_2021_03/models.rs b/services/mgmt/domainservices/src/package_2021_03/models.rs index b4fa09a966..51d2a76971 100644 --- a/services/mgmt/domainservices/src/package_2021_03/models.rs +++ b/services/mgmt/domainservices/src/package_2021_03/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -412,8 +412,8 @@ pub struct DomainServiceListResult { pub next_link: Option, } impl azure_core::Continuable for DomainServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainServiceListResult { @@ -882,8 +882,8 @@ pub struct OperationEntityListResult { pub next_link: Option, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -916,8 +916,8 @@ pub struct OuContainerListResult { pub next_link: Option, } impl azure_core::Continuable for OuContainerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OuContainerListResult { diff --git a/services/mgmt/domainservices/src/package_2021_03/operations.rs b/services/mgmt/domainservices/src/package_2021_03/operations.rs index 274f1ab734..a776b2d7fc 100644 --- a/services/mgmt/domainservices/src/package_2021_03/operations.rs +++ b/services/mgmt/domainservices/src/package_2021_03/operations.rs @@ -109,9 +109,9 @@ pub mod domain_service_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AAD/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod domain_service_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -268,9 +271,9 @@ pub mod domain_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -289,6 +292,9 @@ pub mod domain_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -344,9 +350,9 @@ pub mod domain_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -365,6 +371,9 @@ pub mod domain_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -662,9 +671,9 @@ pub mod ou_container_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Aad/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -683,6 +692,9 @@ pub mod ou_container_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -828,9 +840,9 @@ pub mod ou_container { &this.domain_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -849,6 +861,9 @@ pub mod ou_container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/domainservices/src/package_2021_05/models.rs b/services/mgmt/domainservices/src/package_2021_05/models.rs index a4a01137cc..7d3fb24d7d 100644 --- a/services/mgmt/domainservices/src/package_2021_05/models.rs +++ b/services/mgmt/domainservices/src/package_2021_05/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -517,8 +517,8 @@ pub struct DomainServiceListResult { pub next_link: Option, } impl azure_core::Continuable for DomainServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainServiceListResult { @@ -990,8 +990,8 @@ pub struct OperationEntityListResult { pub next_link: Option, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -1024,8 +1024,8 @@ pub struct OuContainerListResult { pub next_link: Option, } impl azure_core::Continuable for OuContainerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OuContainerListResult { diff --git a/services/mgmt/domainservices/src/package_2021_05/operations.rs b/services/mgmt/domainservices/src/package_2021_05/operations.rs index 1f25f9ea12..98c043c5c7 100644 --- a/services/mgmt/domainservices/src/package_2021_05/operations.rs +++ b/services/mgmt/domainservices/src/package_2021_05/operations.rs @@ -109,9 +109,9 @@ pub mod domain_service_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AAD/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod domain_service_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -268,9 +271,9 @@ pub mod domain_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -289,6 +292,9 @@ pub mod domain_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -344,9 +350,9 @@ pub mod domain_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -365,6 +371,9 @@ pub mod domain_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -662,9 +671,9 @@ pub mod ou_container_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Aad/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -683,6 +692,9 @@ pub mod ou_container_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -828,9 +840,9 @@ pub mod ou_container { &this.domain_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -849,6 +861,9 @@ pub mod ou_container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs b/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs index e07d4e73fd..82bc6bb669 100644 --- a/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs @@ -83,11 +83,11 @@ pub struct AppServiceListResponse { pub next_link: String, } impl azure_core::Continuable for AppServiceListResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } @@ -267,11 +267,11 @@ pub struct DynatraceSingleSignOnResourceListResult { pub next_link: String, } impl azure_core::Continuable for DynatraceSingleSignOnResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } @@ -348,7 +348,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -449,8 +449,8 @@ pub struct LinkableEnvironmentListResponse { pub next_link: Option, } impl azure_core::Continuable for LinkableEnvironmentListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkableEnvironmentListResponse { @@ -710,11 +710,11 @@ pub struct MonitorResourceListResult { pub next_link: String, } impl azure_core::Continuable for MonitorResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } @@ -784,11 +784,11 @@ pub struct MonitoredResourceListResponse { pub next_link: String, } impl azure_core::Continuable for MonitoredResourceListResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } @@ -1027,8 +1027,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1504,11 +1504,11 @@ pub struct TagRuleListResult { pub next_link: String, } impl azure_core::Continuable for TagRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } @@ -1676,11 +1676,11 @@ pub struct VmHostsListResponse { pub next_link: String, } impl azure_core::Continuable for VmHostsListResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } diff --git a/services/mgmt/dynatrace/src/package_2021_09_01_preview/operations.rs b/services/mgmt/dynatrace/src/package_2021_09_01_preview/operations.rs index 2fc7c656e4..54380e748c 100644 --- a/services/mgmt/dynatrace/src/package_2021_09_01_preview/operations.rs +++ b/services/mgmt/dynatrace/src/package_2021_09_01_preview/operations.rs @@ -348,9 +348,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -369,6 +369,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -702,9 +705,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -723,6 +726,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -778,9 +784,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -799,6 +805,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -856,9 +865,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -877,6 +886,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -935,9 +947,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -956,6 +968,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1077,9 +1092,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1098,6 +1113,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1158,9 +1176,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Dynatrace.Observability/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1179,6 +1197,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1558,9 +1579,9 @@ pub mod tag_rules { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1579,6 +1600,9 @@ pub mod tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1790,9 +1814,9 @@ pub mod single_sign_on { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Dynatrace.Observability/monitors/{}/singleSignOnConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . monitor_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1811,6 +1835,9 @@ pub mod single_sign_on { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs b/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs index 68292fe0da..3771ae628b 100644 --- a/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs +++ b/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs @@ -71,8 +71,8 @@ pub struct AddressResourceList { pub next_link: Option, } impl azure_core::Continuable for AddressResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddressResourceList { @@ -398,8 +398,8 @@ pub struct Configurations { pub next_link: Option, } impl azure_core::Continuable for Configurations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Configurations { @@ -814,7 +814,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1345,8 +1345,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1640,8 +1640,8 @@ pub struct OrderItemResourceList { pub next_link: Option, } impl azure_core::Continuable for OrderItemResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrderItemResourceList { @@ -1731,8 +1731,8 @@ pub struct OrderResourceList { pub next_link: Option, } impl azure_core::Continuable for OrderResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrderResourceList { @@ -1871,8 +1871,8 @@ pub struct ProductFamilies { pub next_link: Option, } impl azure_core::Continuable for ProductFamilies { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductFamilies { @@ -1891,8 +1891,8 @@ pub struct ProductFamiliesMetadata { pub next_link: Option, } impl azure_core::Continuable for ProductFamiliesMetadata { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductFamiliesMetadata { diff --git a/services/mgmt/edgeorder/src/package_2020_12_preview/operations.rs b/services/mgmt/edgeorder/src/package_2020_12_preview/operations.rs index 452ffcaffc..d2f64e5500 100644 --- a/services/mgmt/edgeorder/src/package_2020_12_preview/operations.rs +++ b/services/mgmt/edgeorder/src/package_2020_12_preview/operations.rs @@ -355,9 +355,9 @@ pub mod list_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.EdgeOrder/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -376,6 +376,9 @@ pub mod list_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -439,9 +442,9 @@ pub mod list_addresses_at_subscription_level { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -460,6 +463,9 @@ pub mod list_addresses_at_subscription_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -530,9 +536,9 @@ pub mod list_product_families { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -551,6 +557,9 @@ pub mod list_product_families { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -617,9 +626,9 @@ pub mod list_configurations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -638,6 +647,9 @@ pub mod list_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -700,9 +712,9 @@ pub mod list_product_families_metadata { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -721,6 +733,9 @@ pub mod list_product_families_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -783,9 +798,9 @@ pub mod list_order_at_subscription_level { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -804,6 +819,9 @@ pub mod list_order_at_subscription_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -875,9 +893,9 @@ pub mod list_order_items_at_subscription_level { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -896,6 +914,9 @@ pub mod list_order_items_at_subscription_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -970,9 +991,9 @@ pub mod list_addresses_at_resource_group_level { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -991,6 +1012,9 @@ pub mod list_addresses_at_resource_group_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1293,9 +1317,9 @@ pub mod list_order_at_resource_group_level { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1314,6 +1338,9 @@ pub mod list_order_at_resource_group_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1441,9 +1468,9 @@ pub mod list_order_items_at_resource_group_level { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1462,6 +1489,9 @@ pub mod list_order_items_at_resource_group_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/edgeorder/src/package_2021_12/models.rs b/services/mgmt/edgeorder/src/package_2021_12/models.rs index 2129df809e..95b3bf8055 100644 --- a/services/mgmt/edgeorder/src/package_2021_12/models.rs +++ b/services/mgmt/edgeorder/src/package_2021_12/models.rs @@ -117,8 +117,8 @@ pub struct AddressResourceList { pub next_link: Option, } impl azure_core::Continuable for AddressResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddressResourceList { @@ -444,8 +444,8 @@ pub struct Configurations { pub next_link: Option, } impl azure_core::Continuable for Configurations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Configurations { @@ -860,7 +860,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1391,8 +1391,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1686,8 +1686,8 @@ pub struct OrderItemResourceList { pub next_link: Option, } impl azure_core::Continuable for OrderItemResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrderItemResourceList { @@ -1777,8 +1777,8 @@ pub struct OrderResourceList { pub next_link: Option, } impl azure_core::Continuable for OrderResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrderResourceList { @@ -1917,8 +1917,8 @@ pub struct ProductFamilies { pub next_link: Option, } impl azure_core::Continuable for ProductFamilies { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductFamilies { @@ -1937,8 +1937,8 @@ pub struct ProductFamiliesMetadata { pub next_link: Option, } impl azure_core::Continuable for ProductFamiliesMetadata { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductFamiliesMetadata { diff --git a/services/mgmt/edgeorder/src/package_2021_12/operations.rs b/services/mgmt/edgeorder/src/package_2021_12/operations.rs index 6e80ec9e5c..3b7930ad5c 100644 --- a/services/mgmt/edgeorder/src/package_2021_12/operations.rs +++ b/services/mgmt/edgeorder/src/package_2021_12/operations.rs @@ -355,9 +355,9 @@ pub mod list_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.EdgeOrder/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -376,6 +376,9 @@ pub mod list_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -439,9 +442,9 @@ pub mod list_addresses_at_subscription_level { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -460,6 +463,9 @@ pub mod list_addresses_at_subscription_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -530,9 +536,9 @@ pub mod list_product_families { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -551,6 +557,9 @@ pub mod list_product_families { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -617,9 +626,9 @@ pub mod list_configurations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -638,6 +647,9 @@ pub mod list_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -700,9 +712,9 @@ pub mod list_product_families_metadata { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -721,6 +733,9 @@ pub mod list_product_families_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -783,9 +798,9 @@ pub mod list_order_at_subscription_level { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -804,6 +819,9 @@ pub mod list_order_at_subscription_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -875,9 +893,9 @@ pub mod list_order_items_at_subscription_level { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -896,6 +914,9 @@ pub mod list_order_items_at_subscription_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -970,9 +991,9 @@ pub mod list_addresses_at_resource_group_level { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -991,6 +1012,9 @@ pub mod list_addresses_at_resource_group_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1293,9 +1317,9 @@ pub mod list_order_at_resource_group_level { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1314,6 +1338,9 @@ pub mod list_order_at_resource_group_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1441,9 +1468,9 @@ pub mod list_order_items_at_resource_group_level { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1462,6 +1489,9 @@ pub mod list_order_items_at_resource_group_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/edgeorderpartner/src/package_2020_12_preview/models.rs b/services/mgmt/edgeorderpartner/src/package_2020_12_preview/models.rs index f5b0554027..17491f7370 100644 --- a/services/mgmt/edgeorderpartner/src/package_2020_12_preview/models.rs +++ b/services/mgmt/edgeorderpartner/src/package_2020_12_preview/models.rs @@ -171,7 +171,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -455,8 +455,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -511,8 +511,8 @@ pub struct PartnerInventoryList { pub next_link: Option, } impl azure_core::Continuable for PartnerInventoryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PartnerInventoryList { diff --git a/services/mgmt/edgeorderpartner/src/package_2020_12_preview/operations.rs b/services/mgmt/edgeorderpartner/src/package_2020_12_preview/operations.rs index fe8c734a81..18e9a7437c 100644 --- a/services/mgmt/edgeorderpartner/src/package_2020_12_preview/operations.rs +++ b/services/mgmt/edgeorderpartner/src/package_2020_12_preview/operations.rs @@ -145,9 +145,9 @@ pub mod list_operations_partner { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -166,6 +166,9 @@ pub mod list_operations_partner { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -323,9 +326,9 @@ pub mod search_inventories { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -344,6 +347,9 @@ pub mod search_inventories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/education/src/package_2021_12_01_preview/models.rs b/services/mgmt/education/src/package_2021_12_01_preview/models.rs index 03905883e5..bc23ceb6bf 100644 --- a/services/mgmt/education/src/package_2021_12_01_preview/models.rs +++ b/services/mgmt/education/src/package_2021_12_01_preview/models.rs @@ -42,7 +42,7 @@ pub struct ErrorResponseBody { pub error: Option, } impl azure_core::Continuable for ErrorResponseBody { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -180,8 +180,8 @@ pub struct GrantListResponse { pub next_link: Option, } impl azure_core::Continuable for GrantListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GrantListResponse { @@ -226,8 +226,8 @@ pub struct JoinRequestList { pub next_link: Option, } impl azure_core::Continuable for JoinRequestList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JoinRequestList { @@ -321,8 +321,8 @@ pub struct LabListResult { pub next_link: Option, } impl azure_core::Continuable for LabListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LabListResult { @@ -641,8 +641,8 @@ pub struct StudentLabListResult { pub next_link: Option, } impl azure_core::Continuable for StudentLabListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StudentLabListResult { @@ -780,8 +780,8 @@ pub struct StudentListResult { pub next_link: Option, } impl azure_core::Continuable for StudentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StudentListResult { diff --git a/services/mgmt/education/src/package_2021_12_01_preview/operations.rs b/services/mgmt/education/src/package_2021_12_01_preview/operations.rs index 69017e491f..d199131339 100644 --- a/services/mgmt/education/src/package_2021_12_01_preview/operations.rs +++ b/services/mgmt/education/src/package_2021_12_01_preview/operations.rs @@ -191,9 +191,9 @@ pub mod grants { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Education/grants", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -212,6 +212,9 @@ pub mod grants { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -277,9 +280,9 @@ pub mod grants { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -298,6 +301,9 @@ pub mod grants { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -510,9 +516,9 @@ pub mod labs { &this.billing_profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -531,6 +537,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -597,9 +606,9 @@ pub mod labs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/invoiceSections/{}/providers/Microsoft.Education/labs" , this . client . endpoint () , & this . billing_account_name , & this . billing_profile_name , & this . invoice_section_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -618,6 +627,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -962,9 +974,9 @@ pub mod join_requests { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/invoiceSections/{}/providers/Microsoft.Education/labs/default/joinRequests" , this . client . endpoint () , & this . billing_account_name , & this . billing_profile_name , & this . invoice_section_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -983,6 +995,9 @@ pub mod join_requests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1298,9 +1313,9 @@ pub mod students { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/providers/Microsoft.Billing/billingAccounts/{}/billingProfiles/{}/invoiceSections/{}/providers/Microsoft.Education/labs/default/students" , this . client . endpoint () , & this . billing_account_name , & this . billing_profile_name , & this . invoice_section_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1319,6 +1334,9 @@ pub mod students { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1541,9 +1559,9 @@ pub mod student_labs { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Education/studentLabs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1562,6 +1580,9 @@ pub mod student_labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/elastic/src/package_2020_07_01/models.rs b/services/mgmt/elastic/src/package_2020_07_01/models.rs index bd062042c6..d66eebf176 100644 --- a/services/mgmt/elastic/src/package_2020_07_01/models.rs +++ b/services/mgmt/elastic/src/package_2020_07_01/models.rs @@ -190,8 +190,8 @@ pub struct ElasticMonitorResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for ElasticMonitorResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticMonitorResourceListResponse { @@ -430,8 +430,8 @@ pub struct MonitoredResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoredResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoredResourceListResponse { @@ -511,8 +511,8 @@ pub struct MonitoringTagRulesListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoringTagRulesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringTagRulesListResponse { @@ -567,8 +567,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -693,7 +693,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -837,8 +837,8 @@ pub struct VmHostListResponse { pub next_link: Option, } impl azure_core::Continuable for VmHostListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VmHostListResponse { diff --git a/services/mgmt/elastic/src/package_2020_07_01/operations.rs b/services/mgmt/elastic/src/package_2020_07_01/operations.rs index 72ba3c81fe..88c839d54f 100644 --- a/services/mgmt/elastic/src/package_2020_07_01/operations.rs +++ b/services/mgmt/elastic/src/package_2020_07_01/operations.rs @@ -123,9 +123,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Elastic/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -144,6 +144,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -280,9 +283,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -301,6 +304,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -356,9 +362,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -377,6 +383,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -696,9 +705,9 @@ pub mod monitored_resources { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -717,6 +726,9 @@ pub mod monitored_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -917,9 +929,9 @@ pub mod tag_rules { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -938,6 +950,9 @@ pub mod tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1191,9 +1206,9 @@ pub mod vm_host { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1212,6 +1227,9 @@ pub mod vm_host { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/elastic/src/package_2020_07_01_preview/models.rs b/services/mgmt/elastic/src/package_2020_07_01_preview/models.rs index bd062042c6..d66eebf176 100644 --- a/services/mgmt/elastic/src/package_2020_07_01_preview/models.rs +++ b/services/mgmt/elastic/src/package_2020_07_01_preview/models.rs @@ -190,8 +190,8 @@ pub struct ElasticMonitorResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for ElasticMonitorResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticMonitorResourceListResponse { @@ -430,8 +430,8 @@ pub struct MonitoredResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoredResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoredResourceListResponse { @@ -511,8 +511,8 @@ pub struct MonitoringTagRulesListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoringTagRulesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringTagRulesListResponse { @@ -567,8 +567,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -693,7 +693,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -837,8 +837,8 @@ pub struct VmHostListResponse { pub next_link: Option, } impl azure_core::Continuable for VmHostListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VmHostListResponse { diff --git a/services/mgmt/elastic/src/package_2020_07_01_preview/operations.rs b/services/mgmt/elastic/src/package_2020_07_01_preview/operations.rs index 11be191f00..351c9410bd 100644 --- a/services/mgmt/elastic/src/package_2020_07_01_preview/operations.rs +++ b/services/mgmt/elastic/src/package_2020_07_01_preview/operations.rs @@ -123,9 +123,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Elastic/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -144,6 +144,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -280,9 +283,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -301,6 +304,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -356,9 +362,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -377,6 +383,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -696,9 +705,9 @@ pub mod monitored_resources { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -717,6 +726,9 @@ pub mod monitored_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -917,9 +929,9 @@ pub mod tag_rules { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -938,6 +950,9 @@ pub mod tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1191,9 +1206,9 @@ pub mod vm_host { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1212,6 +1227,9 @@ pub mod vm_host { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/elastic/src/package_2021_09_01_preview/models.rs b/services/mgmt/elastic/src/package_2021_09_01_preview/models.rs index 8402657794..9400874b50 100644 --- a/services/mgmt/elastic/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/elastic/src/package_2021_09_01_preview/models.rs @@ -190,8 +190,8 @@ pub struct ElasticMonitorResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for ElasticMonitorResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticMonitorResourceListResponse { @@ -466,8 +466,8 @@ pub struct MonitoredResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoredResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoredResourceListResponse { @@ -547,8 +547,8 @@ pub struct MonitoringTagRulesListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoringTagRulesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringTagRulesListResponse { @@ -603,8 +603,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -729,7 +729,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -873,8 +873,8 @@ pub struct VmHostListResponse { pub next_link: Option, } impl azure_core::Continuable for VmHostListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VmHostListResponse { diff --git a/services/mgmt/elastic/src/package_2021_09_01_preview/operations.rs b/services/mgmt/elastic/src/package_2021_09_01_preview/operations.rs index 6b5a13a4b9..6ce1f68e1a 100644 --- a/services/mgmt/elastic/src/package_2021_09_01_preview/operations.rs +++ b/services/mgmt/elastic/src/package_2021_09_01_preview/operations.rs @@ -126,9 +126,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Elastic/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -147,6 +147,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -283,9 +286,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -304,6 +307,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -359,9 +365,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -380,6 +386,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -699,9 +708,9 @@ pub mod monitored_resources { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -720,6 +729,9 @@ pub mod monitored_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1003,9 +1015,9 @@ pub mod tag_rules { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1024,6 +1036,9 @@ pub mod tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1277,9 +1292,9 @@ pub mod vm_host { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1298,6 +1313,9 @@ pub mod vm_host { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/elastic/src/package_2021_10_01_preview/models.rs b/services/mgmt/elastic/src/package_2021_10_01_preview/models.rs index 7e02e1a9f2..e8ce2f5943 100644 --- a/services/mgmt/elastic/src/package_2021_10_01_preview/models.rs +++ b/services/mgmt/elastic/src/package_2021_10_01_preview/models.rs @@ -190,8 +190,8 @@ pub struct ElasticMonitorResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for ElasticMonitorResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticMonitorResourceListResponse { @@ -481,8 +481,8 @@ pub struct MonitoredResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoredResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoredResourceListResponse { @@ -562,8 +562,8 @@ pub struct MonitoringTagRulesListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoringTagRulesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringTagRulesListResponse { @@ -618,8 +618,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -744,7 +744,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -903,8 +903,8 @@ pub struct VmHostListResponse { pub next_link: Option, } impl azure_core::Continuable for VmHostListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VmHostListResponse { diff --git a/services/mgmt/elastic/src/package_2021_10_01_preview/operations.rs b/services/mgmt/elastic/src/package_2021_10_01_preview/operations.rs index 8138587fb3..d39a06f8aa 100644 --- a/services/mgmt/elastic/src/package_2021_10_01_preview/operations.rs +++ b/services/mgmt/elastic/src/package_2021_10_01_preview/operations.rs @@ -132,9 +132,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Elastic/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -153,6 +153,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -289,9 +292,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -310,6 +313,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -365,9 +371,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -386,6 +392,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -705,9 +714,9 @@ pub mod monitored_resources { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -726,6 +735,9 @@ pub mod monitored_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1009,9 +1021,9 @@ pub mod tag_rules { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1030,6 +1042,9 @@ pub mod tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1283,9 +1298,9 @@ pub mod vm_host { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1304,6 +1319,9 @@ pub mod vm_host { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/elasticsan/src/package_2021_11_20_preview/models.rs b/services/mgmt/elasticsan/src/package_2021_11_20_preview/models.rs index 50119de605..059741455f 100644 --- a/services/mgmt/elasticsan/src/package_2021_11_20_preview/models.rs +++ b/services/mgmt/elasticsan/src/package_2021_11_20_preview/models.rs @@ -32,8 +32,8 @@ pub struct ElasticSanList { pub next_link: Option, } impl azure_core::Continuable for ElasticSanList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticSanList { @@ -73,7 +73,7 @@ pub struct ElasticSanOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ElasticSanOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -239,7 +239,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -606,7 +606,7 @@ pub struct SkuInformationList { pub next_link: Option, } impl azure_core::Continuable for SkuInformationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -814,8 +814,8 @@ pub struct VolumeGroupList { pub next_link: Option, } impl azure_core::Continuable for VolumeGroupList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VolumeGroupList { @@ -906,8 +906,8 @@ pub struct VolumeList { pub next_link: Option, } impl azure_core::Continuable for VolumeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VolumeList { diff --git a/services/mgmt/elasticsan/src/package_2021_11_20_preview/operations.rs b/services/mgmt/elasticsan/src/package_2021_11_20_preview/operations.rs index 9b340e19b3..d64d2c237b 100644 --- a/services/mgmt/elasticsan/src/package_2021_11_20_preview/operations.rs +++ b/services/mgmt/elasticsan/src/package_2021_11_20_preview/operations.rs @@ -307,9 +307,9 @@ pub mod elastic_sans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -328,6 +328,9 @@ pub mod elastic_sans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -383,9 +386,9 @@ pub mod elastic_sans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -404,6 +407,9 @@ pub mod elastic_sans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -785,9 +791,9 @@ pub mod volume_groups { &this.elastic_san_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -806,6 +812,9 @@ pub mod volume_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1422,9 +1431,9 @@ pub mod volumes { &this.volume_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1443,6 +1452,9 @@ pub mod volumes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/engagementfabric/src/package_2018_09_preview/models.rs b/services/mgmt/engagementfabric/src/package_2018_09_preview/models.rs index 8d22f6310e..ed9e0e164c 100644 --- a/services/mgmt/engagementfabric/src/package_2018_09_preview/models.rs +++ b/services/mgmt/engagementfabric/src/package_2018_09_preview/models.rs @@ -23,7 +23,7 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -66,7 +66,7 @@ pub struct ChannelList { pub value: Vec, } impl azure_core::Continuable for ChannelList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -204,7 +204,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -260,7 +260,7 @@ pub struct KeyDescriptionList { pub value: Vec, } impl azure_core::Continuable for KeyDescriptionList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -350,7 +350,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -450,7 +450,7 @@ pub struct SkuDescriptionList { pub value: Vec, } impl azure_core::Continuable for SkuDescriptionList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/enterpriseknowledgegraph/src/package_2018_12_03/models.rs b/services/mgmt/enterpriseknowledgegraph/src/package_2018_12_03/models.rs index 783ef938d7..f430ea6d59 100644 --- a/services/mgmt/enterpriseknowledgegraph/src/package_2018_12_03/models.rs +++ b/services/mgmt/enterpriseknowledgegraph/src/package_2018_12_03/models.rs @@ -58,8 +58,8 @@ pub struct EnterpriseKnowledgeGraphResponseList { pub value: Vec, } impl azure_core::Continuable for EnterpriseKnowledgeGraphResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnterpriseKnowledgeGraphResponseList { @@ -75,7 +75,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -150,8 +150,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { diff --git a/services/mgmt/enterpriseknowledgegraph/src/package_2018_12_03/operations.rs b/services/mgmt/enterpriseknowledgegraph/src/package_2018_12_03/operations.rs index 79f858b95a..f62df410c8 100644 --- a/services/mgmt/enterpriseknowledgegraph/src/package_2018_12_03/operations.rs +++ b/services/mgmt/enterpriseknowledgegraph/src/package_2018_12_03/operations.rs @@ -411,9 +411,9 @@ pub mod enterprise_knowledge_graph { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -432,6 +432,9 @@ pub mod enterprise_knowledge_graph { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -485,9 +488,9 @@ pub mod enterprise_knowledge_graph { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -506,6 +509,9 @@ pub mod enterprise_knowledge_graph { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -566,9 +572,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -587,6 +593,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs b/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs index 4487cf76d1..88ca7f94b9 100644 --- a/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs +++ b/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs @@ -394,8 +394,8 @@ pub struct ChannelsListResult { pub next_link: Option, } impl azure_core::Continuable for ChannelsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ChannelsListResult { @@ -973,8 +973,8 @@ pub struct DomainTopicsListResult { pub next_link: Option, } impl azure_core::Continuable for DomainTopicsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainTopicsListResult { @@ -1123,8 +1123,8 @@ pub struct DomainsListResult { pub next_link: Option, } impl azure_core::Continuable for DomainsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainsListResult { @@ -1355,8 +1355,8 @@ pub struct EventChannelsListResult { pub next_link: Option, } impl azure_core::Continuable for EventChannelsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventChannelsListResult { @@ -1798,8 +1798,8 @@ pub struct EventSubscriptionsListResult { pub next_link: Option, } impl azure_core::Continuable for EventSubscriptionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventSubscriptionsListResult { @@ -1903,7 +1903,7 @@ pub struct EventTypesListResult { pub value: Vec, } impl azure_core::Continuable for EventTypesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2459,7 +2459,7 @@ pub struct OperationsListResult { pub value: Vec, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2683,8 +2683,8 @@ pub struct PartnerConfigurationsListResult { pub next_link: Option, } impl azure_core::Continuable for PartnerConfigurationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PartnerConfigurationsListResult { @@ -2928,8 +2928,8 @@ pub struct PartnerDestinationsListResult { pub next_link: Option, } impl azure_core::Continuable for PartnerDestinationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PartnerDestinationsListResult { @@ -3282,8 +3282,8 @@ pub struct PartnerNamespacesListResult { pub next_link: Option, } impl azure_core::Continuable for PartnerNamespacesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PartnerNamespacesListResult { @@ -3491,8 +3491,8 @@ pub struct PartnerRegistrationsListResult { pub next_link: Option, } impl azure_core::Continuable for PartnerRegistrationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PartnerRegistrationsListResult { @@ -3695,8 +3695,8 @@ pub struct PartnerTopicsListResult { pub next_link: Option, } impl azure_core::Continuable for PartnerTopicsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PartnerTopicsListResult { @@ -3807,8 +3807,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -3932,8 +3932,8 @@ pub struct PrivateLinkResourcesListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourcesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourcesListResult { @@ -4468,8 +4468,8 @@ pub struct SystemTopicsListResult { pub next_link: Option, } impl azure_core::Continuable for SystemTopicsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SystemTopicsListResult { @@ -4936,7 +4936,7 @@ pub struct TopicTypesListResult { pub value: Vec, } impl azure_core::Continuable for TopicTypesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5080,8 +5080,8 @@ pub struct TopicsListResult { pub next_link: Option, } impl azure_core::Continuable for TopicsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopicsListResult { @@ -5227,8 +5227,8 @@ pub struct VerifiedPartnersListResult { pub next_link: Option, } impl azure_core::Continuable for VerifiedPartnersListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VerifiedPartnersListResult { diff --git a/services/mgmt/eventgrid/src/package_2021_10_preview/operations.rs b/services/mgmt/eventgrid/src/package_2021_10_preview/operations.rs index 9b142cc26d..c3941f704a 100644 --- a/services/mgmt/eventgrid/src/package_2021_10_preview/operations.rs +++ b/services/mgmt/eventgrid/src/package_2021_10_preview/operations.rs @@ -511,9 +511,9 @@ pub mod channels { &this.partner_namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -532,6 +532,9 @@ pub mod channels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -991,9 +994,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1012,6 +1015,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1083,9 +1089,9 @@ pub mod domains { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1104,6 +1110,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1521,9 +1530,9 @@ pub mod domain_topics { &this.domain_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1542,6 +1551,9 @@ pub mod domain_topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1855,9 +1867,9 @@ pub mod event_channels { &this.partner_namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1876,6 +1888,9 @@ pub mod event_channels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2431,9 +2446,9 @@ pub mod event_subscriptions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2452,6 +2467,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2523,9 +2541,9 @@ pub mod event_subscriptions { &this.topic_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2544,6 +2562,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2615,9 +2636,9 @@ pub mod event_subscriptions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2636,6 +2657,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2709,9 +2733,9 @@ pub mod event_subscriptions { &this.topic_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2730,6 +2754,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2801,9 +2828,9 @@ pub mod event_subscriptions { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2822,6 +2849,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2895,9 +2925,9 @@ pub mod event_subscriptions { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2916,6 +2946,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2989,9 +3022,9 @@ pub mod event_subscriptions { &this.topic_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3010,6 +3043,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3078,9 +3114,9 @@ pub mod event_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventGrid/locations/{}/topicTypes/{}/eventSubscriptions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location , & this . topic_type_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3099,6 +3135,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3176,9 +3215,9 @@ pub mod event_subscriptions { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3197,6 +3236,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3265,9 +3307,9 @@ pub mod event_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventGrid/domains/{}/topics/{}/providers/Microsoft.EventGrid/eventSubscriptions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . domain_name , & this . topic_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3286,6 +3328,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3808,9 +3853,9 @@ pub mod domain_topic_event_subscriptions { &this.topic_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3829,6 +3874,9 @@ pub mod domain_topic_event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4356,9 +4404,9 @@ pub mod topic_event_subscriptions { &this.topic_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4377,6 +4425,9 @@ pub mod topic_event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4903,9 +4954,9 @@ pub mod domain_event_subscriptions { &this.domain_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4924,6 +4975,9 @@ pub mod domain_event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5441,9 +5495,9 @@ pub mod system_topic_event_subscriptions { &this.system_topic_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5462,6 +5516,9 @@ pub mod system_topic_event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5988,9 +6045,9 @@ pub mod partner_topic_event_subscriptions { &this.partner_topic_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6009,6 +6066,9 @@ pub mod partner_topic_event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6558,9 +6618,9 @@ pub mod partner_configurations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6579,6 +6639,9 @@ pub mod partner_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7075,9 +7138,9 @@ pub mod partner_destinations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7096,6 +7159,9 @@ pub mod partner_destinations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7167,9 +7233,9 @@ pub mod partner_destinations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7188,6 +7254,9 @@ pub mod partner_destinations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7652,9 +7721,9 @@ pub mod partner_namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7673,6 +7742,9 @@ pub mod partner_namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7744,9 +7816,9 @@ pub mod partner_namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7765,6 +7837,9 @@ pub mod partner_namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8262,9 +8337,9 @@ pub mod partner_registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8283,6 +8358,9 @@ pub mod partner_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8354,9 +8432,9 @@ pub mod partner_registrations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8375,6 +8453,9 @@ pub mod partner_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8791,9 +8872,9 @@ pub mod partner_topics { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8812,6 +8893,9 @@ pub mod partner_topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8883,9 +8967,9 @@ pub mod partner_topics { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8904,6 +8988,9 @@ pub mod partner_topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9347,9 +9434,9 @@ pub mod private_endpoint_connections { &this.parent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9368,6 +9455,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9541,9 +9631,9 @@ pub mod private_link_resources { &this.parent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9562,6 +9652,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9956,9 +10049,9 @@ pub mod system_topics { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9977,6 +10070,9 @@ pub mod system_topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10048,9 +10144,9 @@ pub mod system_topics { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10069,6 +10165,9 @@ pub mod system_topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10496,9 +10595,9 @@ pub mod topics { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10517,6 +10616,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10588,9 +10690,9 @@ pub mod topics { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10609,6 +10711,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11141,9 +11246,9 @@ pub mod verified_partners { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11162,6 +11267,9 @@ pub mod verified_partners { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/eventgrid/src/package_2021_12/models.rs b/services/mgmt/eventgrid/src/package_2021_12/models.rs index 75a2fa1e44..b663aadc37 100644 --- a/services/mgmt/eventgrid/src/package_2021_12/models.rs +++ b/services/mgmt/eventgrid/src/package_2021_12/models.rs @@ -674,8 +674,8 @@ pub struct DomainTopicsListResult { pub next_link: Option, } impl azure_core::Continuable for DomainTopicsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainTopicsListResult { @@ -781,8 +781,8 @@ pub struct DomainsListResult { pub next_link: Option, } impl azure_core::Continuable for DomainsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainsListResult { @@ -1251,8 +1251,8 @@ pub struct EventSubscriptionsListResult { pub next_link: Option, } impl azure_core::Continuable for EventSubscriptionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventSubscriptionsListResult { @@ -1303,7 +1303,7 @@ pub struct EventTypesListResult { pub value: Vec, } impl azure_core::Continuable for EventTypesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1826,7 +1826,7 @@ pub struct OperationsListResult { pub value: Vec, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1871,8 +1871,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1996,8 +1996,8 @@ pub struct PrivateLinkResourcesListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourcesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourcesListResult { @@ -2457,8 +2457,8 @@ pub struct SystemTopicsListResult { pub next_link: Option, } impl azure_core::Continuable for SystemTopicsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SystemTopicsListResult { @@ -2828,7 +2828,7 @@ pub struct TopicTypesListResult { pub value: Vec, } impl azure_core::Continuable for TopicTypesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2929,8 +2929,8 @@ pub struct TopicsListResult { pub next_link: Option, } impl azure_core::Continuable for TopicsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopicsListResult { diff --git a/services/mgmt/eventgrid/src/package_2021_12/operations.rs b/services/mgmt/eventgrid/src/package_2021_12/operations.rs index 867507bb8e..9567867180 100644 --- a/services/mgmt/eventgrid/src/package_2021_12/operations.rs +++ b/services/mgmt/eventgrid/src/package_2021_12/operations.rs @@ -478,9 +478,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -499,6 +499,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -570,9 +573,9 @@ pub mod domains { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -591,6 +594,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1008,9 +1014,9 @@ pub mod domain_topics { &this.domain_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1029,6 +1035,9 @@ pub mod domain_topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1584,9 +1593,9 @@ pub mod event_subscriptions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1605,6 +1614,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1676,9 +1688,9 @@ pub mod event_subscriptions { &this.topic_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1697,6 +1709,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1768,9 +1783,9 @@ pub mod event_subscriptions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1789,6 +1804,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1862,9 +1880,9 @@ pub mod event_subscriptions { &this.topic_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1883,6 +1901,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1954,9 +1975,9 @@ pub mod event_subscriptions { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1975,6 +1996,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2048,9 +2072,9 @@ pub mod event_subscriptions { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2069,6 +2093,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2142,9 +2169,9 @@ pub mod event_subscriptions { &this.topic_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2163,6 +2190,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2231,9 +2261,9 @@ pub mod event_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventGrid/locations/{}/topicTypes/{}/eventSubscriptions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location , & this . topic_type_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2252,6 +2282,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2329,9 +2362,9 @@ pub mod event_subscriptions { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2350,6 +2383,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2418,9 +2454,9 @@ pub mod event_subscriptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventGrid/domains/{}/topics/{}/providers/Microsoft.EventGrid/eventSubscriptions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . domain_name , & this . topic_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2439,6 +2475,9 @@ pub mod event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2959,9 +2998,9 @@ pub mod system_topic_event_subscriptions { &this.system_topic_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2980,6 +3019,9 @@ pub mod system_topic_event_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3509,9 +3551,9 @@ pub mod topics { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3530,6 +3572,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3601,9 +3646,9 @@ pub mod topics { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3622,6 +3667,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4124,9 +4172,9 @@ pub mod private_endpoint_connections { &this.parent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4145,6 +4193,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4318,9 +4369,9 @@ pub mod private_link_resources { &this.parent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4339,6 +4390,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4733,9 +4787,9 @@ pub mod system_topics { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4754,6 +4808,9 @@ pub mod system_topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4825,9 +4882,9 @@ pub mod system_topics { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4846,6 +4903,9 @@ pub mod system_topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/eventhub/src/package_2021_01_preview/models.rs b/services/mgmt/eventhub/src/package_2021_01_preview/models.rs index 3d21898315..92e62ef8f8 100644 --- a/services/mgmt/eventhub/src/package_2021_01_preview/models.rs +++ b/services/mgmt/eventhub/src/package_2021_01_preview/models.rs @@ -106,8 +106,8 @@ pub struct ArmDisasterRecoveryListResult { pub next_link: Option, } impl azure_core::Continuable for ArmDisasterRecoveryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArmDisasterRecoveryListResult { @@ -157,8 +157,8 @@ pub struct AuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationRuleListResult { @@ -339,8 +339,8 @@ pub struct ConsumerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ConsumerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerGroupListResult { @@ -469,8 +469,8 @@ pub struct EhNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for EhNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EhNamespaceListResult { @@ -521,7 +521,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -541,8 +541,8 @@ pub struct EventHubListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubListResult { @@ -865,8 +865,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -914,8 +914,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { diff --git a/services/mgmt/eventhub/src/package_2021_01_preview/operations.rs b/services/mgmt/eventhub/src/package_2021_01_preview/operations.rs index a3361eeff4..74ac1e2621 100644 --- a/services/mgmt/eventhub/src/package_2021_01_preview/operations.rs +++ b/services/mgmt/eventhub/src/package_2021_01_preview/operations.rs @@ -324,9 +324,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -345,6 +345,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -400,9 +403,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -421,6 +424,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -823,9 +829,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -844,6 +850,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1279,9 +1288,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1300,6 +1309,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1585,9 +1597,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.EventHub/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1606,6 +1618,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1845,9 +1860,9 @@ pub mod event_hubs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1866,6 +1881,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2089,9 +2107,9 @@ pub mod event_hubs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/eventhubs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . event_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2110,6 +2128,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2621,9 +2642,9 @@ pub mod disaster_recovery_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2642,6 +2663,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2947,9 +2971,9 @@ pub mod disaster_recovery_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/disasterRecoveryConfigs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2968,6 +2992,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3357,9 +3384,9 @@ pub mod consumer_groups { &this.event_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3378,6 +3405,9 @@ pub mod consumer_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/eventhub/src/package_2021_06_preview/models.rs b/services/mgmt/eventhub/src/package_2021_06_preview/models.rs index e96b140ff8..1156c5640e 100644 --- a/services/mgmt/eventhub/src/package_2021_06_preview/models.rs +++ b/services/mgmt/eventhub/src/package_2021_06_preview/models.rs @@ -106,8 +106,8 @@ pub struct ArmDisasterRecoveryListResult { pub next_link: Option, } impl azure_core::Continuable for ArmDisasterRecoveryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArmDisasterRecoveryListResult { @@ -157,8 +157,8 @@ pub struct AuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationRuleListResult { @@ -310,8 +310,8 @@ pub struct ClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -491,8 +491,8 @@ pub struct ConsumerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ConsumerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerGroupListResult { @@ -648,8 +648,8 @@ pub struct EhNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for EhNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EhNamespaceListResult { @@ -700,7 +700,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -720,8 +720,8 @@ pub struct EventHubListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubListResult { @@ -1089,8 +1089,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1138,8 +1138,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { diff --git a/services/mgmt/eventhub/src/package_2021_06_preview/operations.rs b/services/mgmt/eventhub/src/package_2021_06_preview/operations.rs index a23b0c158d..29e749604b 100644 --- a/services/mgmt/eventhub/src/package_2021_06_preview/operations.rs +++ b/services/mgmt/eventhub/src/package_2021_06_preview/operations.rs @@ -266,9 +266,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -287,6 +287,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -342,9 +345,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -363,6 +366,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1069,9 +1075,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1090,6 +1096,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1145,9 +1154,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1166,6 +1175,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1568,9 +1580,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1589,6 +1601,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2024,9 +2039,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2045,6 +2060,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2330,9 +2348,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.EventHub/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2351,6 +2369,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2590,9 +2611,9 @@ pub mod event_hubs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2611,6 +2632,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2834,9 +2858,9 @@ pub mod event_hubs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/eventhubs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . event_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2855,6 +2879,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3366,9 +3393,9 @@ pub mod disaster_recovery_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3387,6 +3414,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3692,9 +3722,9 @@ pub mod disaster_recovery_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/disasterRecoveryConfigs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3713,6 +3743,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4102,9 +4135,9 @@ pub mod consumer_groups { &this.event_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4123,6 +4156,9 @@ pub mod consumer_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/eventhub/src/package_2021_11/models.rs b/services/mgmt/eventhub/src/package_2021_11/models.rs index fbab4c183e..9673627c95 100644 --- a/services/mgmt/eventhub/src/package_2021_11/models.rs +++ b/services/mgmt/eventhub/src/package_2021_11/models.rs @@ -106,8 +106,8 @@ pub struct ArmDisasterRecoveryListResult { pub next_link: Option, } impl azure_core::Continuable for ArmDisasterRecoveryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArmDisasterRecoveryListResult { @@ -157,8 +157,8 @@ pub struct AuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationRuleListResult { @@ -310,8 +310,8 @@ pub struct ClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -491,8 +491,8 @@ pub struct ConsumerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ConsumerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerGroupListResult { @@ -660,8 +660,8 @@ pub struct EhNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for EhNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EhNamespaceListResult { @@ -748,7 +748,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -768,8 +768,8 @@ pub struct EventHubListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubListResult { @@ -1161,8 +1161,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1210,8 +1210,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1570,8 +1570,8 @@ pub struct SchemaGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SchemaGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SchemaGroupListResult { diff --git a/services/mgmt/eventhub/src/package_2021_11/operations.rs b/services/mgmt/eventhub/src/package_2021_11/operations.rs index d5d707dfb7..5526e1c2ff 100644 --- a/services/mgmt/eventhub/src/package_2021_11/operations.rs +++ b/services/mgmt/eventhub/src/package_2021_11/operations.rs @@ -269,9 +269,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -290,6 +290,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -345,9 +348,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -366,6 +369,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1085,9 +1091,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1106,6 +1112,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1161,9 +1170,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1182,6 +1191,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1636,9 +1648,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1657,6 +1669,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2092,9 +2107,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2113,6 +2128,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2398,9 +2416,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.EventHub/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2419,6 +2437,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2658,9 +2679,9 @@ pub mod event_hubs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2679,6 +2700,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2902,9 +2926,9 @@ pub mod event_hubs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/eventhubs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . event_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2923,6 +2947,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3434,9 +3461,9 @@ pub mod disaster_recovery_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3455,6 +3482,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3765,9 +3795,9 @@ pub mod disaster_recovery_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/disasterRecoveryConfigs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3786,6 +3816,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4175,9 +4208,9 @@ pub mod consumer_groups { &this.event_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4196,6 +4229,9 @@ pub mod consumer_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4337,9 +4373,9 @@ pub mod schema_registry { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4358,6 +4394,9 @@ pub mod schema_registry { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/eventhub/src/package_2022_01_preview/models.rs b/services/mgmt/eventhub/src/package_2022_01_preview/models.rs index 68760c1233..c297125ec7 100644 --- a/services/mgmt/eventhub/src/package_2022_01_preview/models.rs +++ b/services/mgmt/eventhub/src/package_2022_01_preview/models.rs @@ -85,8 +85,8 @@ pub struct ApplicationGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGroupListResult { @@ -218,8 +218,8 @@ pub struct ArmDisasterRecoveryListResult { pub next_link: Option, } impl azure_core::Continuable for ArmDisasterRecoveryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArmDisasterRecoveryListResult { @@ -269,8 +269,8 @@ pub struct AuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationRuleListResult { @@ -425,8 +425,8 @@ pub struct ClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -606,8 +606,8 @@ pub struct ConsumerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ConsumerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerGroupListResult { @@ -870,8 +870,8 @@ pub struct EhNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for EhNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EhNamespaceListResult { @@ -958,7 +958,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -978,8 +978,8 @@ pub struct EventHubListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubListResult { @@ -1666,8 +1666,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1715,8 +1715,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -2108,8 +2108,8 @@ pub struct SchemaGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SchemaGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SchemaGroupListResult { diff --git a/services/mgmt/eventhub/src/package_2022_01_preview/operations.rs b/services/mgmt/eventhub/src/package_2022_01_preview/operations.rs index 16bc970fe5..b2798a99e2 100644 --- a/services/mgmt/eventhub/src/package_2022_01_preview/operations.rs +++ b/services/mgmt/eventhub/src/package_2022_01_preview/operations.rs @@ -278,9 +278,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -299,6 +299,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -354,9 +357,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -375,6 +378,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -943,9 +949,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -964,6 +970,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1019,9 +1028,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1040,6 +1049,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1494,9 +1506,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1515,6 +1527,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1950,9 +1965,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1971,6 +1986,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2703,9 +2721,9 @@ pub mod disaster_recovery_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/disasterRecoveryConfigs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2724,6 +2742,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2926,9 +2947,9 @@ pub mod disaster_recovery_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2947,6 +2968,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3429,9 +3453,9 @@ pub mod event_hubs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/eventhubs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . event_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3450,6 +3474,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3763,9 +3790,9 @@ pub mod event_hubs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3784,6 +3811,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4247,9 +4277,9 @@ pub mod consumer_groups { &this.event_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4268,6 +4298,9 @@ pub mod consumer_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4332,9 +4365,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.EventHub/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4353,6 +4386,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4488,9 +4524,9 @@ pub mod schema_registry { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4509,6 +4545,9 @@ pub mod schema_registry { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4803,9 +4842,9 @@ pub mod application_group { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4824,6 +4863,9 @@ pub mod application_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/models.rs index dbbb49a45a..5879ecc156 100644 --- a/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/models.rs @@ -73,8 +73,8 @@ pub struct AuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationRuleListResult { @@ -223,8 +223,8 @@ pub struct ClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -389,8 +389,8 @@ pub struct ConsumerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ConsumerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConsumerGroupListResult { @@ -537,8 +537,8 @@ pub struct EhNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for EhNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EhNamespaceListResult { @@ -586,7 +586,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -606,8 +606,8 @@ pub struct EventHubListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubListResult { @@ -770,8 +770,8 @@ pub struct MessagingRegionsListResult { pub next_link: Option, } impl azure_core::Continuable for MessagingRegionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MessagingRegionsListResult { @@ -826,8 +826,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -872,8 +872,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { diff --git a/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/operations.rs b/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/operations.rs index 832c227fdf..1371409026 100644 --- a/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/operations.rs +++ b/services/mgmt/eventhub/src/profile_hybrid_2020_09_01/operations.rs @@ -262,9 +262,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -283,6 +283,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -810,9 +813,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -831,6 +834,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -886,9 +892,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -907,6 +913,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1212,9 +1221,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1233,6 +1242,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1668,9 +1680,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1689,6 +1701,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2023,9 +2038,9 @@ pub mod disaster_recovery_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/disasterRecoveryConfigs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2044,6 +2059,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2365,9 +2383,9 @@ pub mod event_hubs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/eventhubs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . event_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2386,6 +2404,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2699,9 +2720,9 @@ pub mod event_hubs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2720,6 +2741,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3183,9 +3207,9 @@ pub mod consumer_groups { &this.event_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3204,6 +3228,9 @@ pub mod consumer_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3268,9 +3295,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.EventHub/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3289,6 +3316,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3357,9 +3387,9 @@ pub mod regions { &this.sku ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3378,6 +3408,9 @@ pub mod regions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs b/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs index 2d80396693..be22e6f25c 100644 --- a/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs +++ b/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs @@ -50,8 +50,8 @@ pub struct EnabledResourceTypesListResult { pub value: Vec, } impl azure_core::Continuable for EnabledResourceTypesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnabledResourceTypesListResult { @@ -106,7 +106,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -196,8 +196,8 @@ pub struct CustomLocationListResult { pub value: Vec, } impl azure_core::Continuable for CustomLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomLocationListResult { @@ -257,8 +257,8 @@ pub struct CustomLocationOperationsList { pub value: Vec, } impl azure_core::Continuable for CustomLocationOperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomLocationOperationsList { diff --git a/services/mgmt/extendedlocation/src/package_2021_03_15_preview/operations.rs b/services/mgmt/extendedlocation/src/package_2021_03_15_preview/operations.rs index 8a7d83d58f..6bb86c2f9b 100644 --- a/services/mgmt/extendedlocation/src/package_2021_03_15_preview/operations.rs +++ b/services/mgmt/extendedlocation/src/package_2021_03_15_preview/operations.rs @@ -196,9 +196,9 @@ pub mod custom_locations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -217,6 +217,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -270,9 +273,9 @@ pub mod custom_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -291,6 +294,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -346,9 +352,9 @@ pub mod custom_locations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -367,6 +373,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -642,9 +651,9 @@ pub mod custom_locations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ExtendedLocation/customLocations/{}/enabledResourceTypes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -663,6 +672,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs b/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs index 213f92ebe6..82b78c26ea 100644 --- a/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs +++ b/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs @@ -50,8 +50,8 @@ pub struct EnabledResourceTypesListResult { pub value: Vec, } impl azure_core::Continuable for EnabledResourceTypesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnabledResourceTypesListResult { @@ -106,7 +106,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -258,8 +258,8 @@ pub struct CustomLocationListResult { pub value: Vec, } impl azure_core::Continuable for CustomLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomLocationListResult { @@ -319,8 +319,8 @@ pub struct CustomLocationOperationsList { pub value: Vec, } impl azure_core::Continuable for CustomLocationOperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomLocationOperationsList { diff --git a/services/mgmt/extendedlocation/src/package_2021_08_15/operations.rs b/services/mgmt/extendedlocation/src/package_2021_08_15/operations.rs index 808c684b08..538cca6011 100644 --- a/services/mgmt/extendedlocation/src/package_2021_08_15/operations.rs +++ b/services/mgmt/extendedlocation/src/package_2021_08_15/operations.rs @@ -196,9 +196,9 @@ pub mod custom_locations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -217,6 +217,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -270,9 +273,9 @@ pub mod custom_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -291,6 +294,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -346,9 +352,9 @@ pub mod custom_locations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -367,6 +373,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -642,9 +651,9 @@ pub mod custom_locations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ExtendedLocation/customLocations/{}/enabledResourceTypes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -663,6 +672,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs b/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs index daa2de0055..28f92e9ec0 100644 --- a/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs +++ b/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs @@ -50,8 +50,8 @@ pub struct EnabledResourceTypesListResult { pub value: Vec, } impl azure_core::Continuable for EnabledResourceTypesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnabledResourceTypesListResult { @@ -106,7 +106,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -285,8 +285,8 @@ pub struct CustomLocationListResult { pub value: Vec, } impl azure_core::Continuable for CustomLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomLocationListResult { @@ -346,8 +346,8 @@ pub struct CustomLocationOperationsList { pub value: Vec, } impl azure_core::Continuable for CustomLocationOperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomLocationOperationsList { @@ -522,8 +522,8 @@ pub struct ResourceSyncRuleListResult { pub value: Vec, } impl azure_core::Continuable for ResourceSyncRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSyncRuleListResult { diff --git a/services/mgmt/extendedlocation/src/package_2021_08_31_preview/operations.rs b/services/mgmt/extendedlocation/src/package_2021_08_31_preview/operations.rs index 258b807127..50c83cfc99 100644 --- a/services/mgmt/extendedlocation/src/package_2021_08_31_preview/operations.rs +++ b/services/mgmt/extendedlocation/src/package_2021_08_31_preview/operations.rs @@ -215,9 +215,9 @@ pub mod custom_locations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -236,6 +236,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -289,9 +292,9 @@ pub mod custom_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -310,6 +313,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -365,9 +371,9 @@ pub mod custom_locations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -386,6 +392,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -661,9 +670,9 @@ pub mod custom_locations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ExtendedLocation/customLocations/{}/enabledResourceTypes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -682,6 +691,9 @@ pub mod custom_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -874,9 +886,9 @@ pub mod resource_sync_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ExtendedLocation/customLocations/{}/resourceSyncRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -895,6 +907,9 @@ pub mod resource_sync_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/fluidrelay/src/package_2021_08_30_preview/models.rs b/services/mgmt/fluidrelay/src/package_2021_08_30_preview/models.rs index 940918b45f..c5d26a48d8 100644 --- a/services/mgmt/fluidrelay/src/package_2021_08_30_preview/models.rs +++ b/services/mgmt/fluidrelay/src/package_2021_08_30_preview/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -88,8 +88,8 @@ pub struct FluidRelayContainerList { pub next_link: Option, } impl azure_core::Continuable for FluidRelayContainerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluidRelayContainerList { @@ -222,8 +222,8 @@ pub struct FluidRelayServerList { pub next_link: Option, } impl azure_core::Continuable for FluidRelayServerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluidRelayServerList { @@ -396,8 +396,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/fluidrelay/src/package_2021_08_30_preview/operations.rs b/services/mgmt/fluidrelay/src/package_2021_08_30_preview/operations.rs index 410cc57957..2bc77d5a79 100644 --- a/services/mgmt/fluidrelay/src/package_2021_08_30_preview/operations.rs +++ b/services/mgmt/fluidrelay/src/package_2021_08_30_preview/operations.rs @@ -108,9 +108,9 @@ pub mod fluid_relay_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.FluidRelay/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -129,6 +129,9 @@ pub mod fluid_relay_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -617,9 +620,9 @@ pub mod fluid_relay_servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -638,6 +641,9 @@ pub mod fluid_relay_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -693,9 +699,9 @@ pub mod fluid_relay_servers { &this.resource_group ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -714,6 +720,9 @@ pub mod fluid_relay_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -912,9 +921,9 @@ pub mod fluid_relay_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.FluidRelay/fluidRelayServers/{}/fluidRelayContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group , & this . fluid_relay_server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -933,6 +942,9 @@ pub mod fluid_relay_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/fluidrelay/src/package_2021_09_10_preview/models.rs b/services/mgmt/fluidrelay/src/package_2021_09_10_preview/models.rs index ac0faf09b7..a15d1b8ca0 100644 --- a/services/mgmt/fluidrelay/src/package_2021_09_10_preview/models.rs +++ b/services/mgmt/fluidrelay/src/package_2021_09_10_preview/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -88,8 +88,8 @@ pub struct FluidRelayContainerList { pub next_link: Option, } impl azure_core::Continuable for FluidRelayContainerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluidRelayContainerList { @@ -222,8 +222,8 @@ pub struct FluidRelayServerList { pub next_link: Option, } impl azure_core::Continuable for FluidRelayServerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluidRelayServerList { @@ -374,8 +374,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/fluidrelay/src/package_2021_09_10_preview/operations.rs b/services/mgmt/fluidrelay/src/package_2021_09_10_preview/operations.rs index 31c4cf19ad..c9d7bd9e97 100644 --- a/services/mgmt/fluidrelay/src/package_2021_09_10_preview/operations.rs +++ b/services/mgmt/fluidrelay/src/package_2021_09_10_preview/operations.rs @@ -108,9 +108,9 @@ pub mod fluid_relay_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.FluidRelay/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -129,6 +129,9 @@ pub mod fluid_relay_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -617,9 +620,9 @@ pub mod fluid_relay_servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -638,6 +641,9 @@ pub mod fluid_relay_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -693,9 +699,9 @@ pub mod fluid_relay_servers { &this.resource_group ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -714,6 +720,9 @@ pub mod fluid_relay_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -912,9 +921,9 @@ pub mod fluid_relay_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.FluidRelay/fluidRelayServers/{}/fluidRelayContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group , & this . fluid_relay_server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -933,6 +942,9 @@ pub mod fluid_relay_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs b/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs index ac0faf09b7..a15d1b8ca0 100644 --- a/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -88,8 +88,8 @@ pub struct FluidRelayContainerList { pub next_link: Option, } impl azure_core::Continuable for FluidRelayContainerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluidRelayContainerList { @@ -222,8 +222,8 @@ pub struct FluidRelayServerList { pub next_link: Option, } impl azure_core::Continuable for FluidRelayServerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluidRelayServerList { @@ -374,8 +374,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/fluidrelay/src/package_2022_02_15/operations.rs b/services/mgmt/fluidrelay/src/package_2022_02_15/operations.rs index cee0855c8b..6ce36cd233 100644 --- a/services/mgmt/fluidrelay/src/package_2022_02_15/operations.rs +++ b/services/mgmt/fluidrelay/src/package_2022_02_15/operations.rs @@ -108,9 +108,9 @@ pub mod fluid_relay_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.FluidRelay/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -129,6 +129,9 @@ pub mod fluid_relay_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -617,9 +620,9 @@ pub mod fluid_relay_servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -638,6 +641,9 @@ pub mod fluid_relay_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -693,9 +699,9 @@ pub mod fluid_relay_servers { &this.resource_group ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -714,6 +720,9 @@ pub mod fluid_relay_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -912,9 +921,9 @@ pub mod fluid_relay_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.FluidRelay/fluidRelayServers/{}/fluidRelayContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group , & this . fluid_relay_server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -933,6 +942,9 @@ pub mod fluid_relay_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs b/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs index a665ba65c6..d26d206b81 100644 --- a/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs @@ -105,7 +105,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -142,8 +142,8 @@ pub struct FluidRelayContainerList { pub next_link: Option, } impl azure_core::Continuable for FluidRelayContainerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluidRelayContainerList { @@ -276,8 +276,8 @@ pub struct FluidRelayServerList { pub next_link: Option, } impl azure_core::Continuable for FluidRelayServerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluidRelayServerList { @@ -446,8 +446,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/fluidrelay/src/package_2022_04_21/operations.rs b/services/mgmt/fluidrelay/src/package_2022_04_21/operations.rs index 07c5db6e9d..f4ae913275 100644 --- a/services/mgmt/fluidrelay/src/package_2022_04_21/operations.rs +++ b/services/mgmt/fluidrelay/src/package_2022_04_21/operations.rs @@ -108,9 +108,9 @@ pub mod fluid_relay_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.FluidRelay/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -129,6 +129,9 @@ pub mod fluid_relay_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -684,9 +687,9 @@ pub mod fluid_relay_servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -705,6 +708,9 @@ pub mod fluid_relay_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -760,9 +766,9 @@ pub mod fluid_relay_servers { &this.resource_group ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -781,6 +787,9 @@ pub mod fluid_relay_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -979,9 +988,9 @@ pub mod fluid_relay_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.FluidRelay/fluidRelayServers/{}/fluidRelayContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group , & this . fluid_relay_server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1000,6 +1009,9 @@ pub mod fluid_relay_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs b/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs index a14e33af4c..05f517c5d6 100644 --- a/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs @@ -105,7 +105,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -142,8 +142,8 @@ pub struct FluidRelayContainerList { pub next_link: Option, } impl azure_core::Continuable for FluidRelayContainerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluidRelayContainerList { @@ -282,8 +282,8 @@ pub struct FluidRelayServerList { pub next_link: Option, } impl azure_core::Continuable for FluidRelayServerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluidRelayServerList { @@ -452,8 +452,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/fluidrelay/src/package_2022_05_11/operations.rs b/services/mgmt/fluidrelay/src/package_2022_05_11/operations.rs index d498221d4f..379c9c9ba1 100644 --- a/services/mgmt/fluidrelay/src/package_2022_05_11/operations.rs +++ b/services/mgmt/fluidrelay/src/package_2022_05_11/operations.rs @@ -108,9 +108,9 @@ pub mod fluid_relay_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.FluidRelay/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -129,6 +129,9 @@ pub mod fluid_relay_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -684,9 +687,9 @@ pub mod fluid_relay_servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -705,6 +708,9 @@ pub mod fluid_relay_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -760,9 +766,9 @@ pub mod fluid_relay_servers { &this.resource_group ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -781,6 +787,9 @@ pub mod fluid_relay_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -979,9 +988,9 @@ pub mod fluid_relay_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.FluidRelay/fluidRelayServers/{}/fluidRelayContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group , & this . fluid_relay_server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1000,6 +1009,9 @@ pub mod fluid_relay_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/frontdoor/src/package_2019_11/models.rs b/services/mgmt/frontdoor/src/package_2019_11/models.rs index 0095a11d81..d0b9c7fd4b 100644 --- a/services/mgmt/frontdoor/src/package_2019_11/models.rs +++ b/services/mgmt/frontdoor/src/package_2019_11/models.rs @@ -796,7 +796,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -833,8 +833,8 @@ pub struct ExperimentList { pub next_link: Option, } impl azure_core::Continuable for ExperimentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExperimentList { @@ -1128,8 +1128,8 @@ pub struct FrontDoorListResult { pub next_link: Option, } impl azure_core::Continuable for FrontDoorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FrontDoorListResult { @@ -1488,8 +1488,8 @@ pub struct FrontendEndpointsListResult { pub next_link: Option, } impl azure_core::Continuable for FrontendEndpointsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FrontendEndpointsListResult { @@ -2165,8 +2165,8 @@ pub struct ManagedRuleSetDefinitionList { pub next_link: Option, } impl azure_core::Continuable for ManagedRuleSetDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedRuleSetDefinitionList { @@ -2529,8 +2529,8 @@ pub struct PreconfiguredEndpointList { pub next_link: Option, } impl azure_core::Continuable for PreconfiguredEndpointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PreconfiguredEndpointList { @@ -2637,8 +2637,8 @@ pub struct ProfileList { pub next_link: Option, } impl azure_core::Continuable for ProfileList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileList { @@ -3366,8 +3366,8 @@ pub struct WebApplicationFirewallPolicyList { pub next_link: Option, } impl azure_core::Continuable for WebApplicationFirewallPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebApplicationFirewallPolicyList { diff --git a/services/mgmt/frontdoor/src/package_2019_11/operations.rs b/services/mgmt/frontdoor/src/package_2019_11/operations.rs index 2c37b4dc8a..dfe19d0f71 100644 --- a/services/mgmt/frontdoor/src/package_2019_11/operations.rs +++ b/services/mgmt/frontdoor/src/package_2019_11/operations.rs @@ -205,9 +205,9 @@ pub mod network_experiment_profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -226,6 +226,9 @@ pub mod network_experiment_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -281,9 +284,9 @@ pub mod network_experiment_profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -302,6 +305,9 @@ pub mod network_experiment_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -615,9 +621,9 @@ pub mod preconfigured_endpoints { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/NetworkExperimentProfiles/{}/PreconfiguredEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . profile_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -636,6 +642,9 @@ pub mod preconfigured_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -781,9 +790,9 @@ pub mod experiments { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -802,6 +811,9 @@ pub mod experiments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1501,9 +1513,9 @@ pub mod front_doors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1522,6 +1534,9 @@ pub mod front_doors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1577,9 +1592,9 @@ pub mod front_doors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1598,6 +1613,9 @@ pub mod front_doors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1951,9 +1969,9 @@ pub mod frontend_endpoints { &this.front_door_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1972,6 +1990,9 @@ pub mod frontend_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2313,9 +2334,9 @@ pub mod policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2334,6 +2355,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2577,9 +2601,9 @@ pub mod managed_rule_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2598,6 +2622,9 @@ pub mod managed_rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/frontdoor/src/package_2020_01/models.rs b/services/mgmt/frontdoor/src/package_2020_01/models.rs index 19ece26254..56fecf5b7b 100644 --- a/services/mgmt/frontdoor/src/package_2020_01/models.rs +++ b/services/mgmt/frontdoor/src/package_2020_01/models.rs @@ -858,7 +858,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -895,8 +895,8 @@ pub struct ExperimentList { pub next_link: Option, } impl azure_core::Continuable for ExperimentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExperimentList { @@ -1190,8 +1190,8 @@ pub struct FrontDoorListResult { pub next_link: Option, } impl azure_core::Continuable for FrontDoorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FrontDoorListResult { @@ -1556,8 +1556,8 @@ pub struct FrontendEndpointsListResult { pub next_link: Option, } impl azure_core::Continuable for FrontendEndpointsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FrontendEndpointsListResult { @@ -2297,8 +2297,8 @@ pub struct ManagedRuleSetDefinitionList { pub next_link: Option, } impl azure_core::Continuable for ManagedRuleSetDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedRuleSetDefinitionList { @@ -2661,8 +2661,8 @@ pub struct PreconfiguredEndpointList { pub next_link: Option, } impl azure_core::Continuable for PreconfiguredEndpointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PreconfiguredEndpointList { @@ -2769,8 +2769,8 @@ pub struct ProfileList { pub next_link: Option, } impl azure_core::Continuable for ProfileList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileList { @@ -3284,8 +3284,8 @@ pub struct RulesEngineListResult { pub next_link: Option, } impl azure_core::Continuable for RulesEngineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RulesEngineListResult { @@ -3808,8 +3808,8 @@ pub struct WebApplicationFirewallPolicyList { pub next_link: Option, } impl azure_core::Continuable for WebApplicationFirewallPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebApplicationFirewallPolicyList { diff --git a/services/mgmt/frontdoor/src/package_2020_01/operations.rs b/services/mgmt/frontdoor/src/package_2020_01/operations.rs index 5aec8f06e5..4f0cf35213 100644 --- a/services/mgmt/frontdoor/src/package_2020_01/operations.rs +++ b/services/mgmt/frontdoor/src/package_2020_01/operations.rs @@ -208,9 +208,9 @@ pub mod network_experiment_profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -229,6 +229,9 @@ pub mod network_experiment_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -284,9 +287,9 @@ pub mod network_experiment_profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -305,6 +308,9 @@ pub mod network_experiment_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -618,9 +624,9 @@ pub mod preconfigured_endpoints { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/NetworkExperimentProfiles/{}/PreconfiguredEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . profile_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -639,6 +645,9 @@ pub mod preconfigured_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -784,9 +793,9 @@ pub mod experiments { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -805,6 +814,9 @@ pub mod experiments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1504,9 +1516,9 @@ pub mod front_doors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1525,6 +1537,9 @@ pub mod front_doors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1580,9 +1595,9 @@ pub mod front_doors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1601,6 +1616,9 @@ pub mod front_doors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1954,9 +1972,9 @@ pub mod frontend_endpoints { &this.front_door_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1975,6 +1993,9 @@ pub mod frontend_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2330,9 +2351,9 @@ pub mod rules_engines { &this.front_door_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2351,6 +2372,9 @@ pub mod rules_engines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2642,9 +2666,9 @@ pub mod policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2663,6 +2687,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2906,9 +2933,9 @@ pub mod managed_rule_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2927,6 +2954,9 @@ pub mod managed_rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/frontdoor/src/package_2020_04/models.rs b/services/mgmt/frontdoor/src/package_2020_04/models.rs index 516422b173..e752cebde1 100644 --- a/services/mgmt/frontdoor/src/package_2020_04/models.rs +++ b/services/mgmt/frontdoor/src/package_2020_04/models.rs @@ -858,7 +858,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -895,8 +895,8 @@ pub struct ExperimentList { pub next_link: Option, } impl azure_core::Continuable for ExperimentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExperimentList { @@ -1190,8 +1190,8 @@ pub struct FrontDoorListResult { pub next_link: Option, } impl azure_core::Continuable for FrontDoorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FrontDoorListResult { @@ -1556,8 +1556,8 @@ pub struct FrontendEndpointsListResult { pub next_link: Option, } impl azure_core::Continuable for FrontendEndpointsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FrontendEndpointsListResult { @@ -2297,8 +2297,8 @@ pub struct ManagedRuleSetDefinitionList { pub next_link: Option, } impl azure_core::Continuable for ManagedRuleSetDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedRuleSetDefinitionList { @@ -2661,8 +2661,8 @@ pub struct PreconfiguredEndpointList { pub next_link: Option, } impl azure_core::Continuable for PreconfiguredEndpointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PreconfiguredEndpointList { @@ -2769,8 +2769,8 @@ pub struct ProfileList { pub next_link: Option, } impl azure_core::Continuable for ProfileList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileList { @@ -3311,8 +3311,8 @@ pub struct RulesEngineListResult { pub next_link: Option, } impl azure_core::Continuable for RulesEngineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RulesEngineListResult { @@ -3835,8 +3835,8 @@ pub struct WebApplicationFirewallPolicyList { pub next_link: Option, } impl azure_core::Continuable for WebApplicationFirewallPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebApplicationFirewallPolicyList { diff --git a/services/mgmt/frontdoor/src/package_2020_04/operations.rs b/services/mgmt/frontdoor/src/package_2020_04/operations.rs index dbcba6977a..d0a8e947a3 100644 --- a/services/mgmt/frontdoor/src/package_2020_04/operations.rs +++ b/services/mgmt/frontdoor/src/package_2020_04/operations.rs @@ -208,9 +208,9 @@ pub mod network_experiment_profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -229,6 +229,9 @@ pub mod network_experiment_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -284,9 +287,9 @@ pub mod network_experiment_profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -305,6 +308,9 @@ pub mod network_experiment_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -618,9 +624,9 @@ pub mod preconfigured_endpoints { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/NetworkExperimentProfiles/{}/PreconfiguredEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . profile_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -639,6 +645,9 @@ pub mod preconfigured_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -784,9 +793,9 @@ pub mod experiments { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -805,6 +814,9 @@ pub mod experiments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1504,9 +1516,9 @@ pub mod front_doors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1525,6 +1537,9 @@ pub mod front_doors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1580,9 +1595,9 @@ pub mod front_doors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1601,6 +1616,9 @@ pub mod front_doors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1954,9 +1972,9 @@ pub mod frontend_endpoints { &this.front_door_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1975,6 +1993,9 @@ pub mod frontend_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2330,9 +2351,9 @@ pub mod rules_engines { &this.front_door_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2351,6 +2372,9 @@ pub mod rules_engines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2642,9 +2666,9 @@ pub mod policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2663,6 +2687,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2906,9 +2933,9 @@ pub mod managed_rule_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2927,6 +2954,9 @@ pub mod managed_rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/frontdoor/src/package_2020_05/models.rs b/services/mgmt/frontdoor/src/package_2020_05/models.rs index d6cc8c7bfa..cf8314deef 100644 --- a/services/mgmt/frontdoor/src/package_2020_05/models.rs +++ b/services/mgmt/frontdoor/src/package_2020_05/models.rs @@ -864,7 +864,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -901,8 +901,8 @@ pub struct ExperimentList { pub next_link: Option, } impl azure_core::Continuable for ExperimentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExperimentList { @@ -1196,8 +1196,8 @@ pub struct FrontDoorListResult { pub next_link: Option, } impl azure_core::Continuable for FrontDoorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FrontDoorListResult { @@ -1562,8 +1562,8 @@ pub struct FrontendEndpointsListResult { pub next_link: Option, } impl azure_core::Continuable for FrontendEndpointsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FrontendEndpointsListResult { @@ -2303,8 +2303,8 @@ pub struct ManagedRuleSetDefinitionList { pub next_link: Option, } impl azure_core::Continuable for ManagedRuleSetDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedRuleSetDefinitionList { @@ -2667,8 +2667,8 @@ pub struct PreconfiguredEndpointList { pub next_link: Option, } impl azure_core::Continuable for PreconfiguredEndpointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PreconfiguredEndpointList { @@ -2775,8 +2775,8 @@ pub struct ProfileList { pub next_link: Option, } impl azure_core::Continuable for ProfileList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileList { @@ -3317,8 +3317,8 @@ pub struct RulesEngineListResult { pub next_link: Option, } impl azure_core::Continuable for RulesEngineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RulesEngineListResult { @@ -3841,8 +3841,8 @@ pub struct WebApplicationFirewallPolicyList { pub next_link: Option, } impl azure_core::Continuable for WebApplicationFirewallPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebApplicationFirewallPolicyList { diff --git a/services/mgmt/frontdoor/src/package_2020_05/operations.rs b/services/mgmt/frontdoor/src/package_2020_05/operations.rs index 4fd0fe57bd..ede8c55009 100644 --- a/services/mgmt/frontdoor/src/package_2020_05/operations.rs +++ b/services/mgmt/frontdoor/src/package_2020_05/operations.rs @@ -214,9 +214,9 @@ pub mod network_experiment_profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -235,6 +235,9 @@ pub mod network_experiment_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -290,9 +293,9 @@ pub mod network_experiment_profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -311,6 +314,9 @@ pub mod network_experiment_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -624,9 +630,9 @@ pub mod preconfigured_endpoints { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/NetworkExperimentProfiles/{}/PreconfiguredEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . profile_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -645,6 +651,9 @@ pub mod preconfigured_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -790,9 +799,9 @@ pub mod experiments { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -811,6 +820,9 @@ pub mod experiments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1517,9 +1529,9 @@ pub mod front_doors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1538,6 +1550,9 @@ pub mod front_doors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1593,9 +1608,9 @@ pub mod front_doors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1614,6 +1629,9 @@ pub mod front_doors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1967,9 +1985,9 @@ pub mod frontend_endpoints { &this.front_door_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1988,6 +2006,9 @@ pub mod frontend_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2343,9 +2364,9 @@ pub mod rules_engines { &this.front_door_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2364,6 +2385,9 @@ pub mod rules_engines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2655,9 +2679,9 @@ pub mod policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2676,6 +2700,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2919,9 +2946,9 @@ pub mod managed_rule_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2940,6 +2967,9 @@ pub mod managed_rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/frontdoor/src/package_2020_11/models.rs b/services/mgmt/frontdoor/src/package_2020_11/models.rs index 09e755292b..004b502fc6 100644 --- a/services/mgmt/frontdoor/src/package_2020_11/models.rs +++ b/services/mgmt/frontdoor/src/package_2020_11/models.rs @@ -864,7 +864,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -901,8 +901,8 @@ pub struct ExperimentList { pub next_link: Option, } impl azure_core::Continuable for ExperimentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExperimentList { @@ -1196,8 +1196,8 @@ pub struct FrontDoorListResult { pub next_link: Option, } impl azure_core::Continuable for FrontDoorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FrontDoorListResult { @@ -1562,8 +1562,8 @@ pub struct FrontendEndpointsListResult { pub next_link: Option, } impl azure_core::Continuable for FrontendEndpointsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FrontendEndpointsListResult { @@ -2348,8 +2348,8 @@ pub struct ManagedRuleSetDefinitionList { pub next_link: Option, } impl azure_core::Continuable for ManagedRuleSetDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedRuleSetDefinitionList { @@ -2752,8 +2752,8 @@ pub struct PreconfiguredEndpointList { pub next_link: Option, } impl azure_core::Continuable for PreconfiguredEndpointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PreconfiguredEndpointList { @@ -2860,8 +2860,8 @@ pub struct ProfileList { pub next_link: Option, } impl azure_core::Continuable for ProfileList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProfileList { @@ -3402,8 +3402,8 @@ pub struct RulesEngineListResult { pub next_link: Option, } impl azure_core::Continuable for RulesEngineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RulesEngineListResult { @@ -3998,8 +3998,8 @@ pub struct WebApplicationFirewallPolicyList { pub next_link: Option, } impl azure_core::Continuable for WebApplicationFirewallPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebApplicationFirewallPolicyList { diff --git a/services/mgmt/frontdoor/src/package_2020_11/operations.rs b/services/mgmt/frontdoor/src/package_2020_11/operations.rs index 1fae250387..33d80d62f7 100644 --- a/services/mgmt/frontdoor/src/package_2020_11/operations.rs +++ b/services/mgmt/frontdoor/src/package_2020_11/operations.rs @@ -214,9 +214,9 @@ pub mod network_experiment_profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -235,6 +235,9 @@ pub mod network_experiment_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -290,9 +293,9 @@ pub mod network_experiment_profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -311,6 +314,9 @@ pub mod network_experiment_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -624,9 +630,9 @@ pub mod preconfigured_endpoints { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/NetworkExperimentProfiles/{}/PreconfiguredEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . profile_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -645,6 +651,9 @@ pub mod preconfigured_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -790,9 +799,9 @@ pub mod experiments { &this.profile_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -811,6 +820,9 @@ pub mod experiments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1517,9 +1529,9 @@ pub mod front_doors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1538,6 +1550,9 @@ pub mod front_doors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1593,9 +1608,9 @@ pub mod front_doors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1614,6 +1629,9 @@ pub mod front_doors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1967,9 +1985,9 @@ pub mod frontend_endpoints { &this.front_door_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1988,6 +2006,9 @@ pub mod frontend_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2343,9 +2364,9 @@ pub mod rules_engines { &this.front_door_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2364,6 +2385,9 @@ pub mod rules_engines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2655,9 +2679,9 @@ pub mod policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2676,6 +2700,9 @@ pub mod policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2919,9 +2946,9 @@ pub mod managed_rule_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2940,6 +2967,9 @@ pub mod managed_rule_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs b/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs index 9f2e5a358f..aabd6de342 100644 --- a/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs @@ -340,7 +340,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -388,7 +388,7 @@ pub struct GuestConfigurationAssignmentList { pub value: Vec, } impl azure_core::Continuable for GuestConfigurationAssignmentList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -743,7 +743,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs b/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs index 73ab987b6e..71bd84d1a3 100644 --- a/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs @@ -343,7 +343,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -391,7 +391,7 @@ pub struct GuestConfigurationAssignmentList { pub value: Vec, } impl azure_core::Continuable for GuestConfigurationAssignmentList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -808,7 +808,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/guestconfiguration/src/package_2018_11_20/operations.rs b/services/mgmt/guestconfiguration/src/package_2018_11_20/operations.rs index c6ccdb7ba4..c7cc83913c 100644 --- a/services/mgmt/guestconfiguration/src/package_2018_11_20/operations.rs +++ b/services/mgmt/guestconfiguration/src/package_2018_11_20/operations.rs @@ -324,7 +324,7 @@ pub mod guest_configuration_assignments { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, @@ -386,7 +386,7 @@ pub mod guest_configuration_assignments { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, diff --git a/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs b/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs index 218aa86883..386b64deab 100644 --- a/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs @@ -460,7 +460,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -508,7 +508,7 @@ pub struct GuestConfigurationAssignmentList { pub value: Vec, } impl azure_core::Continuable for GuestConfigurationAssignmentList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -930,7 +930,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/guestconfiguration/src/package_2020_06_25/operations.rs b/services/mgmt/guestconfiguration/src/package_2020_06_25/operations.rs index db71e88256..218025e121 100644 --- a/services/mgmt/guestconfiguration/src/package_2020_06_25/operations.rs +++ b/services/mgmt/guestconfiguration/src/package_2020_06_25/operations.rs @@ -324,7 +324,7 @@ pub mod guest_configuration_assignments { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, @@ -386,7 +386,7 @@ pub mod guest_configuration_assignments { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, diff --git a/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs b/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs index a3870fe38c..4507e264d0 100644 --- a/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs @@ -460,7 +460,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -511,7 +511,7 @@ pub struct GuestConfigurationAssignmentList { pub value: Vec, } impl azure_core::Continuable for GuestConfigurationAssignmentList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -933,7 +933,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/guestconfiguration/src/package_2021_01_25/operations.rs b/services/mgmt/guestconfiguration/src/package_2021_01_25/operations.rs index dbcc768684..c6cb8205bd 100644 --- a/services/mgmt/guestconfiguration/src/package_2021_01_25/operations.rs +++ b/services/mgmt/guestconfiguration/src/package_2021_01_25/operations.rs @@ -330,7 +330,7 @@ pub mod guest_configuration_assignments { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, @@ -392,7 +392,7 @@ pub mod guest_configuration_assignments { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, diff --git a/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs b/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs index 025cb1d1b7..096f6ad844 100644 --- a/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs @@ -460,7 +460,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -511,7 +511,7 @@ pub struct GuestConfigurationAssignmentList { pub value: Vec, } impl azure_core::Continuable for GuestConfigurationAssignmentList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -673,7 +673,7 @@ pub struct GuestConfigurationAssignmentReportList { pub value: Vec, } impl azure_core::Continuable for GuestConfigurationAssignmentReportList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -941,7 +941,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/guestconfiguration/src/package_2022_01_25/operations.rs b/services/mgmt/guestconfiguration/src/package_2022_01_25/operations.rs index 95f96cc683..a0cd445b2f 100644 --- a/services/mgmt/guestconfiguration/src/package_2022_01_25/operations.rs +++ b/services/mgmt/guestconfiguration/src/package_2022_01_25/operations.rs @@ -330,7 +330,7 @@ pub mod guest_configuration_assignments { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, @@ -392,7 +392,7 @@ pub mod guest_configuration_assignments { NoContent204, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::NoContent204 => None, diff --git a/services/mgmt/hanaon/src/package_2017_11/models.rs b/services/mgmt/hanaon/src/package_2017_11/models.rs index dacb7668a9..931638b785 100644 --- a/services/mgmt/hanaon/src/package_2017_11/models.rs +++ b/services/mgmt/hanaon/src/package_2017_11/models.rs @@ -54,7 +54,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -246,8 +246,8 @@ pub struct HanaInstancesListResult { pub next_link: Option, } impl azure_core::Continuable for HanaInstancesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HanaInstancesListResult { @@ -532,7 +532,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/hanaon/src/package_2017_11/operations.rs b/services/mgmt/hanaon/src/package_2017_11/operations.rs index 8e0ccff0a9..7a15314108 100644 --- a/services/mgmt/hanaon/src/package_2017_11/operations.rs +++ b/services/mgmt/hanaon/src/package_2017_11/operations.rs @@ -277,9 +277,9 @@ pub mod hana_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -298,6 +298,9 @@ pub mod hana_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -353,9 +356,9 @@ pub mod hana_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -374,6 +377,9 @@ pub mod hana_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hanaon/src/package_2020_02_07_preview/models.rs b/services/mgmt/hanaon/src/package_2020_02_07_preview/models.rs index 197c4fe0ef..c51fad80ba 100644 --- a/services/mgmt/hanaon/src/package_2020_02_07_preview/models.rs +++ b/services/mgmt/hanaon/src/package_2020_02_07_preview/models.rs @@ -36,7 +36,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -86,7 +86,7 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -120,8 +120,8 @@ pub struct ProviderInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for ProviderInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderInstanceListResult { @@ -257,8 +257,8 @@ pub struct SapMonitorListResult { pub next_link: Option, } impl azure_core::Continuable for SapMonitorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SapMonitorListResult { diff --git a/services/mgmt/hanaon/src/package_2020_02_07_preview/operations.rs b/services/mgmt/hanaon/src/package_2020_02_07_preview/operations.rs index 6372e84ee7..bbea3a6415 100644 --- a/services/mgmt/hanaon/src/package_2020_02_07_preview/operations.rs +++ b/services/mgmt/hanaon/src/package_2020_02_07_preview/operations.rs @@ -229,9 +229,9 @@ pub mod sap_monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -250,6 +250,9 @@ pub mod sap_monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -603,9 +606,9 @@ pub mod provider_instances { &this.sap_monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -624,6 +627,9 @@ pub mod provider_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hardwaresecuritymodules/src/package_2018_10/models.rs b/services/mgmt/hardwaresecuritymodules/src/package_2018_10/models.rs index 792990738c..ab6a199c73 100644 --- a/services/mgmt/hardwaresecuritymodules/src/package_2018_10/models.rs +++ b/services/mgmt/hardwaresecuritymodules/src/package_2018_10/models.rs @@ -37,7 +37,7 @@ pub struct DedicatedHsmError { pub error: Option, } impl azure_core::Continuable for DedicatedHsmError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -57,8 +57,8 @@ pub struct DedicatedHsmListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHsmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHsmListResult { @@ -114,7 +114,7 @@ pub struct DedicatedHsmOperationListResult { pub value: Vec, } impl azure_core::Continuable for DedicatedHsmOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/hardwaresecuritymodules/src/package_2018_10/operations.rs b/services/mgmt/hardwaresecuritymodules/src/package_2018_10/operations.rs index 3c8b1bc6ea..2a558102f8 100644 --- a/services/mgmt/hardwaresecuritymodules/src/package_2018_10/operations.rs +++ b/services/mgmt/hardwaresecuritymodules/src/package_2018_10/operations.rs @@ -470,9 +470,9 @@ pub mod dedicated_hsm { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -491,6 +491,9 @@ pub mod dedicated_hsm { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -552,9 +555,9 @@ pub mod dedicated_hsm { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -573,6 +576,9 @@ pub mod dedicated_hsm { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hardwaresecuritymodules/src/package_2021_11/models.rs b/services/mgmt/hardwaresecuritymodules/src/package_2021_11/models.rs index 7cc94bc909..5b6ce8d5e4 100644 --- a/services/mgmt/hardwaresecuritymodules/src/package_2021_11/models.rs +++ b/services/mgmt/hardwaresecuritymodules/src/package_2021_11/models.rs @@ -44,7 +44,7 @@ pub struct DedicatedHsmError { pub error: Option, } impl azure_core::Continuable for DedicatedHsmError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -64,8 +64,8 @@ pub struct DedicatedHsmListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedHsmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedHsmListResult { @@ -123,7 +123,7 @@ pub struct DedicatedHsmOperationListResult { pub value: Vec, } impl azure_core::Continuable for DedicatedHsmOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -368,8 +368,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { diff --git a/services/mgmt/hardwaresecuritymodules/src/package_2021_11/operations.rs b/services/mgmt/hardwaresecuritymodules/src/package_2021_11/operations.rs index 51a4ef94fb..b39285df37 100644 --- a/services/mgmt/hardwaresecuritymodules/src/package_2021_11/operations.rs +++ b/services/mgmt/hardwaresecuritymodules/src/package_2021_11/operations.rs @@ -484,9 +484,9 @@ pub mod dedicated_hsm { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -505,6 +505,9 @@ pub mod dedicated_hsm { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -566,9 +569,9 @@ pub mod dedicated_hsm { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -587,6 +590,9 @@ pub mod dedicated_hsm { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -641,9 +647,9 @@ pub mod dedicated_hsm { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -662,6 +668,9 @@ pub mod dedicated_hsm { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hdinsight/src/package_2015_03_preview/models.rs b/services/mgmt/hdinsight/src/package_2015_03_preview/models.rs index 6c397778cd..e73e48ba24 100644 --- a/services/mgmt/hdinsight/src/package_2015_03_preview/models.rs +++ b/services/mgmt/hdinsight/src/package_2015_03_preview/models.rs @@ -116,8 +116,8 @@ pub struct ApplicationListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationListResult { @@ -843,8 +843,8 @@ pub struct ClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -1132,7 +1132,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1539,8 +1539,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1798,8 +1798,8 @@ pub struct ScriptActionExecutionHistoryList { pub next_link: Option, } impl azure_core::Continuable for ScriptActionExecutionHistoryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptActionExecutionHistoryList { @@ -1857,8 +1857,8 @@ pub struct ScriptActionsList { pub next_link: Option, } impl azure_core::Continuable for ScriptActionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptActionsList { diff --git a/services/mgmt/hdinsight/src/package_2015_03_preview/operations.rs b/services/mgmt/hdinsight/src/package_2015_03_preview/operations.rs index 904e405445..1b0dbf40dd 100644 --- a/services/mgmt/hdinsight/src/package_2015_03_preview/operations.rs +++ b/services/mgmt/hdinsight/src/package_2015_03_preview/operations.rs @@ -543,9 +543,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -564,6 +564,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -733,9 +736,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -754,6 +757,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1137,9 +1143,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HDInsight/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1158,6 +1164,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1334,9 +1343,9 @@ pub mod script_actions { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1355,6 +1364,9 @@ pub mod script_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1547,9 +1559,9 @@ pub mod script_execution_history { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1568,6 +1580,9 @@ pub mod script_execution_history { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1752,9 +1767,9 @@ pub mod applications { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1773,6 +1788,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hdinsight/src/package_2018_06_preview/models.rs b/services/mgmt/hdinsight/src/package_2018_06_preview/models.rs index 3a81255ed8..09e955da7c 100644 --- a/services/mgmt/hdinsight/src/package_2018_06_preview/models.rs +++ b/services/mgmt/hdinsight/src/package_2018_06_preview/models.rs @@ -116,8 +116,8 @@ pub struct ApplicationListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationListResult { @@ -843,8 +843,8 @@ pub struct ClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -1132,7 +1132,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1539,8 +1539,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1798,8 +1798,8 @@ pub struct ScriptActionExecutionHistoryList { pub next_link: Option, } impl azure_core::Continuable for ScriptActionExecutionHistoryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptActionExecutionHistoryList { @@ -1857,8 +1857,8 @@ pub struct ScriptActionsList { pub next_link: Option, } impl azure_core::Continuable for ScriptActionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptActionsList { diff --git a/services/mgmt/hdinsight/src/package_2018_06_preview/operations.rs b/services/mgmt/hdinsight/src/package_2018_06_preview/operations.rs index 9e86f12706..b5c7b39f5b 100644 --- a/services/mgmt/hdinsight/src/package_2018_06_preview/operations.rs +++ b/services/mgmt/hdinsight/src/package_2018_06_preview/operations.rs @@ -540,9 +540,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -561,6 +561,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -730,9 +733,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -751,6 +754,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1134,9 +1140,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HDInsight/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1155,6 +1161,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1331,9 +1340,9 @@ pub mod script_actions { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1352,6 +1361,9 @@ pub mod script_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1544,9 +1556,9 @@ pub mod script_execution_history { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1565,6 +1577,9 @@ pub mod script_execution_history { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1749,9 +1764,9 @@ pub mod applications { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1770,6 +1785,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hdinsight/src/package_2021_06/models.rs b/services/mgmt/hdinsight/src/package_2021_06/models.rs index 04b0145457..0deb474a70 100644 --- a/services/mgmt/hdinsight/src/package_2021_06/models.rs +++ b/services/mgmt/hdinsight/src/package_2021_06/models.rs @@ -119,8 +119,8 @@ pub struct ApplicationListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationListResult { @@ -1093,8 +1093,8 @@ pub struct ClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -1399,7 +1399,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1937,8 +1937,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2013,8 +2013,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -2538,8 +2538,8 @@ pub struct ScriptActionExecutionHistoryList { pub next_link: Option, } impl azure_core::Continuable for ScriptActionExecutionHistoryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptActionExecutionHistoryList { @@ -2597,8 +2597,8 @@ pub struct ScriptActionsList { pub next_link: Option, } impl azure_core::Continuable for ScriptActionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptActionsList { diff --git a/services/mgmt/hdinsight/src/package_2021_06/operations.rs b/services/mgmt/hdinsight/src/package_2021_06/operations.rs index 46fc8c3f17..c3a8233d9c 100644 --- a/services/mgmt/hdinsight/src/package_2021_06/operations.rs +++ b/services/mgmt/hdinsight/src/package_2021_06/operations.rs @@ -546,9 +546,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -567,6 +567,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -736,9 +739,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -757,6 +760,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1140,9 +1146,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HDInsight/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1161,6 +1167,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1337,9 +1346,9 @@ pub mod script_actions { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1358,6 +1367,9 @@ pub mod script_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1550,9 +1562,9 @@ pub mod script_execution_history { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1571,6 +1583,9 @@ pub mod script_execution_history { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1738,9 +1753,9 @@ pub mod private_endpoint_connections { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1759,6 +1774,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2077,9 +2095,9 @@ pub mod applications { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2098,6 +2116,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/healthbot/src/package_2020_10_20_preview/models.rs b/services/mgmt/healthbot/src/package_2020_10_20_preview/models.rs index 2df744aa15..311b3bf90f 100644 --- a/services/mgmt/healthbot/src/package_2020_10_20_preview/models.rs +++ b/services/mgmt/healthbot/src/package_2020_10_20_preview/models.rs @@ -15,8 +15,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -35,8 +35,8 @@ pub struct BotResponseList { pub value: Vec, } impl azure_core::Continuable for BotResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BotResponseList { @@ -84,7 +84,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/healthbot/src/package_2020_10_20_preview/operations.rs b/services/mgmt/healthbot/src/package_2020_10_20_preview/operations.rs index 4058c5fc09..dfa566fb6f 100644 --- a/services/mgmt/healthbot/src/package_2020_10_20_preview/operations.rs +++ b/services/mgmt/healthbot/src/package_2020_10_20_preview/operations.rs @@ -197,9 +197,9 @@ pub mod bots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -218,6 +218,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -271,9 +274,9 @@ pub mod bots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -292,6 +295,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -653,9 +659,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HealthBot/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -674,6 +680,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/healthbot/src/package_2020_12_08/models.rs b/services/mgmt/healthbot/src/package_2020_12_08/models.rs index 8a2fb63f6c..f4a5929acf 100644 --- a/services/mgmt/healthbot/src/package_2020_12_08/models.rs +++ b/services/mgmt/healthbot/src/package_2020_12_08/models.rs @@ -15,8 +15,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -35,8 +35,8 @@ pub struct BotResponseList { pub value: Vec, } impl azure_core::Continuable for BotResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BotResponseList { @@ -52,7 +52,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/healthbot/src/package_2020_12_08/operations.rs b/services/mgmt/healthbot/src/package_2020_12_08/operations.rs index 57150ea5bc..243932f3f0 100644 --- a/services/mgmt/healthbot/src/package_2020_12_08/operations.rs +++ b/services/mgmt/healthbot/src/package_2020_12_08/operations.rs @@ -415,9 +415,9 @@ pub mod bots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -436,6 +436,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -489,9 +492,9 @@ pub mod bots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -510,6 +513,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -568,9 +574,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HealthBot/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -589,6 +595,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/healthbot/src/package_2020_12_08_preview/models.rs b/services/mgmt/healthbot/src/package_2020_12_08_preview/models.rs index becae059a4..7f510e8da9 100644 --- a/services/mgmt/healthbot/src/package_2020_12_08_preview/models.rs +++ b/services/mgmt/healthbot/src/package_2020_12_08_preview/models.rs @@ -15,8 +15,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -35,8 +35,8 @@ pub struct BotResponseList { pub value: Vec, } impl azure_core::Continuable for BotResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BotResponseList { @@ -84,7 +84,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/healthbot/src/package_2020_12_08_preview/operations.rs b/services/mgmt/healthbot/src/package_2020_12_08_preview/operations.rs index bf803b2540..99250d34e0 100644 --- a/services/mgmt/healthbot/src/package_2020_12_08_preview/operations.rs +++ b/services/mgmt/healthbot/src/package_2020_12_08_preview/operations.rs @@ -476,9 +476,9 @@ pub mod bots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -497,6 +497,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -550,9 +553,9 @@ pub mod bots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -571,6 +574,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -629,9 +635,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HealthBot/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -650,6 +656,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/healthbot/src/package_2021_06_10/models.rs b/services/mgmt/healthbot/src/package_2021_06_10/models.rs index d9f6527715..90cbb24071 100644 --- a/services/mgmt/healthbot/src/package_2021_06_10/models.rs +++ b/services/mgmt/healthbot/src/package_2021_06_10/models.rs @@ -15,8 +15,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -35,8 +35,8 @@ pub struct BotResponseList { pub value: Vec, } impl azure_core::Continuable for BotResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BotResponseList { @@ -52,7 +52,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/healthbot/src/package_2021_06_10/operations.rs b/services/mgmt/healthbot/src/package_2021_06_10/operations.rs index 06ff99a443..4c1793f9dd 100644 --- a/services/mgmt/healthbot/src/package_2021_06_10/operations.rs +++ b/services/mgmt/healthbot/src/package_2021_06_10/operations.rs @@ -415,9 +415,9 @@ pub mod bots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -436,6 +436,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -489,9 +492,9 @@ pub mod bots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -510,6 +513,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -568,9 +574,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HealthBot/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -589,6 +595,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/healthbot/src/package_2021_08_24/models.rs b/services/mgmt/healthbot/src/package_2021_08_24/models.rs index 2e971789f7..cc12622f44 100644 --- a/services/mgmt/healthbot/src/package_2021_08_24/models.rs +++ b/services/mgmt/healthbot/src/package_2021_08_24/models.rs @@ -15,8 +15,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -35,8 +35,8 @@ pub struct BotResponseList { pub value: Vec, } impl azure_core::Continuable for BotResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BotResponseList { @@ -52,7 +52,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/healthbot/src/package_2021_08_24/operations.rs b/services/mgmt/healthbot/src/package_2021_08_24/operations.rs index 58a7fd71b7..79b4dc79e0 100644 --- a/services/mgmt/healthbot/src/package_2021_08_24/operations.rs +++ b/services/mgmt/healthbot/src/package_2021_08_24/operations.rs @@ -415,9 +415,9 @@ pub mod bots { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -436,6 +436,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -489,9 +492,9 @@ pub mod bots { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -510,6 +513,9 @@ pub mod bots { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -568,9 +574,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HealthBot/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -589,6 +595,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/healthcareapis/src/package_2021_01/models.rs b/services/mgmt/healthcareapis/src/package_2021_01/models.rs index 284d236851..fac2f0c87c 100644 --- a/services/mgmt/healthcareapis/src/package_2021_01/models.rs +++ b/services/mgmt/healthcareapis/src/package_2021_01/models.rs @@ -26,7 +26,7 @@ pub struct ErrorDetails { pub error: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -103,8 +103,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -230,7 +230,7 @@ pub struct PrivateEndpointConnectionListResultDescription { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResultDescription { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -564,8 +564,8 @@ pub struct ServicesDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for ServicesDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServicesDescriptionListResult { diff --git a/services/mgmt/healthcareapis/src/package_2021_01/operations.rs b/services/mgmt/healthcareapis/src/package_2021_01/operations.rs index d7b7916007..1acd3b5c5e 100644 --- a/services/mgmt/healthcareapis/src/package_2021_01/operations.rs +++ b/services/mgmt/healthcareapis/src/package_2021_01/operations.rs @@ -423,9 +423,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -444,6 +444,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -499,9 +502,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -520,6 +523,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -628,9 +634,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HealthcareApis/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -649,6 +655,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/healthcareapis/src/package_2021_11/models.rs b/services/mgmt/healthcareapis/src/package_2021_11/models.rs index 80ae2060c4..cd26a9f1fc 100644 --- a/services/mgmt/healthcareapis/src/package_2021_11/models.rs +++ b/services/mgmt/healthcareapis/src/package_2021_11/models.rs @@ -67,8 +67,8 @@ pub struct DicomServiceCollection { pub value: Vec, } impl azure_core::Continuable for DicomServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DicomServiceCollection { @@ -133,7 +133,7 @@ pub struct ErrorDetails { pub error: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -323,8 +323,8 @@ pub struct FhirServiceCollection { pub value: Vec, } impl azure_core::Continuable for FhirServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FhirServiceCollection { @@ -450,8 +450,8 @@ pub struct IotConnectorCollection { pub value: Vec, } impl azure_core::Continuable for IotConnectorCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotConnectorCollection { @@ -551,8 +551,8 @@ pub struct IotFhirDestinationCollection { pub value: Vec, } impl azure_core::Continuable for IotFhirDestinationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotFhirDestinationCollection { @@ -649,8 +649,8 @@ pub struct ListOperations { pub next_link: Option, } impl azure_core::Continuable for ListOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListOperations { @@ -981,7 +981,7 @@ pub struct PrivateEndpointConnectionListResultDescription { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResultDescription { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1128,7 +1128,7 @@ pub struct PrivateLinkResourceListResultDescription { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResultDescription { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1625,8 +1625,8 @@ pub struct ServicesDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for ServicesDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServicesDescriptionListResult { @@ -2000,8 +2000,8 @@ pub struct WorkspaceList { pub value: Vec, } impl azure_core::Continuable for WorkspaceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceList { diff --git a/services/mgmt/healthcareapis/src/package_2021_11/operations.rs b/services/mgmt/healthcareapis/src/package_2021_11/operations.rs index e613a413a5..7aedb53d55 100644 --- a/services/mgmt/healthcareapis/src/package_2021_11/operations.rs +++ b/services/mgmt/healthcareapis/src/package_2021_11/operations.rs @@ -447,9 +447,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -468,6 +468,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -523,9 +526,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -544,6 +547,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1127,9 +1133,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1148,6 +1154,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1203,9 +1212,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1224,6 +1233,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1606,9 +1618,9 @@ pub mod dicom_services { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1627,6 +1639,9 @@ pub mod dicom_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2017,9 +2032,9 @@ pub mod iot_connectors { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2038,6 +2053,9 @@ pub mod iot_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2361,9 +2379,9 @@ pub mod fhir_destinations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HealthcareApis/workspaces/{}/iotconnectors/{}/fhirdestinations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . iot_connector_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2382,6 +2400,9 @@ pub mod fhir_destinations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2747,9 +2768,9 @@ pub mod fhir_services { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2768,6 +2789,9 @@ pub mod fhir_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3471,9 +3495,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HealthcareApis/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3492,6 +3516,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/healthcareapis/src/package_2022_05/models.rs b/services/mgmt/healthcareapis/src/package_2022_05/models.rs index 809aa66251..49b49a4065 100644 --- a/services/mgmt/healthcareapis/src/package_2022_05/models.rs +++ b/services/mgmt/healthcareapis/src/package_2022_05/models.rs @@ -91,8 +91,8 @@ pub struct DicomServiceCollection { pub value: Vec, } impl azure_core::Continuable for DicomServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DicomServiceCollection { @@ -160,7 +160,7 @@ pub struct ErrorDetails { pub error: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -350,8 +350,8 @@ pub struct FhirServiceCollection { pub value: Vec, } impl azure_core::Continuable for FhirServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FhirServiceCollection { @@ -477,8 +477,8 @@ pub struct IotConnectorCollection { pub value: Vec, } impl azure_core::Continuable for IotConnectorCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotConnectorCollection { @@ -578,8 +578,8 @@ pub struct IotFhirDestinationCollection { pub value: Vec, } impl azure_core::Continuable for IotFhirDestinationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotFhirDestinationCollection { @@ -676,8 +676,8 @@ pub struct ListOperations { pub next_link: Option, } impl azure_core::Continuable for ListOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListOperations { @@ -1008,7 +1008,7 @@ pub struct PrivateEndpointConnectionListResultDescription { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResultDescription { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1155,7 +1155,7 @@ pub struct PrivateLinkResourceListResultDescription { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResultDescription { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1652,8 +1652,8 @@ pub struct ServicesDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for ServicesDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServicesDescriptionListResult { @@ -2027,8 +2027,8 @@ pub struct WorkspaceList { pub value: Vec, } impl azure_core::Continuable for WorkspaceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceList { diff --git a/services/mgmt/healthcareapis/src/package_2022_05/operations.rs b/services/mgmt/healthcareapis/src/package_2022_05/operations.rs index a2142a45dc..3bbd0c571d 100644 --- a/services/mgmt/healthcareapis/src/package_2022_05/operations.rs +++ b/services/mgmt/healthcareapis/src/package_2022_05/operations.rs @@ -447,9 +447,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -468,6 +468,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -523,9 +526,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -544,6 +547,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1127,9 +1133,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1148,6 +1154,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1203,9 +1212,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1224,6 +1233,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1606,9 +1618,9 @@ pub mod dicom_services { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1627,6 +1639,9 @@ pub mod dicom_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2017,9 +2032,9 @@ pub mod iot_connectors { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2038,6 +2053,9 @@ pub mod iot_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2361,9 +2379,9 @@ pub mod fhir_destinations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HealthcareApis/workspaces/{}/iotconnectors/{}/fhirdestinations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . iot_connector_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2382,6 +2400,9 @@ pub mod fhir_destinations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2747,9 +2768,9 @@ pub mod fhir_services { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2768,6 +2789,9 @@ pub mod fhir_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3471,9 +3495,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HealthcareApis/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3492,6 +3516,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs b/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs index 7b019785b7..d8e8ab21ef 100644 --- a/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs +++ b/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs @@ -65,8 +65,8 @@ pub struct DicomServiceCollection { pub value: Vec, } impl azure_core::Continuable for DicomServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DicomServiceCollection { @@ -123,7 +123,7 @@ pub struct ErrorDetails { pub error: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -268,8 +268,8 @@ pub struct FhirServiceCollection { pub value: Vec, } impl azure_core::Continuable for FhirServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FhirServiceCollection { @@ -383,8 +383,8 @@ pub struct IotConnectorCollection { pub value: Vec, } impl azure_core::Continuable for IotConnectorCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotConnectorCollection { @@ -484,8 +484,8 @@ pub struct IotFhirDestinationCollection { pub value: Vec, } impl azure_core::Continuable for IotFhirDestinationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotFhirDestinationCollection { @@ -582,8 +582,8 @@ pub struct ListOperations { pub next_link: Option, } impl azure_core::Continuable for ListOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListOperations { @@ -806,7 +806,7 @@ pub struct PrivateEndpointConnectionListResultDescription { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResultDescription { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1299,8 +1299,8 @@ pub struct ServicesDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for ServicesDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServicesDescriptionListResult { @@ -1696,8 +1696,8 @@ pub struct WorkspaceList { pub value: Vec, } impl azure_core::Continuable for WorkspaceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceList { diff --git a/services/mgmt/healthcareapis/src/package_preview_2021_06/operations.rs b/services/mgmt/healthcareapis/src/package_preview_2021_06/operations.rs index 6c26a67fe0..7707a0fc8c 100644 --- a/services/mgmt/healthcareapis/src/package_preview_2021_06/operations.rs +++ b/services/mgmt/healthcareapis/src/package_preview_2021_06/operations.rs @@ -441,9 +441,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -462,6 +462,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -517,9 +520,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -538,6 +541,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1121,9 +1127,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1142,6 +1148,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1197,9 +1206,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1218,6 +1227,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1600,9 +1612,9 @@ pub mod dicom_services { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1621,6 +1633,9 @@ pub mod dicom_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2011,9 +2026,9 @@ pub mod iot_connectors { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2032,6 +2047,9 @@ pub mod iot_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2355,9 +2373,9 @@ pub mod fhir_destinations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HealthcareApis/workspaces/{}/iotconnectors/{}/fhirdestinations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . iot_connector_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2376,6 +2394,9 @@ pub mod fhir_destinations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2741,9 +2762,9 @@ pub mod fhir_services { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2762,6 +2783,9 @@ pub mod fhir_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3070,9 +3094,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HealthcareApis/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3091,6 +3115,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs b/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs index 84945d2413..1dc71a1b29 100644 --- a/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs +++ b/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs @@ -67,8 +67,8 @@ pub struct DicomServiceCollection { pub value: Vec, } impl azure_core::Continuable for DicomServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DicomServiceCollection { @@ -133,7 +133,7 @@ pub struct ErrorDetails { pub error: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -323,8 +323,8 @@ pub struct FhirServiceCollection { pub value: Vec, } impl azure_core::Continuable for FhirServiceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FhirServiceCollection { @@ -471,8 +471,8 @@ pub struct IotConnectorCollection { pub value: Vec, } impl azure_core::Continuable for IotConnectorCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotConnectorCollection { @@ -572,8 +572,8 @@ pub struct IotFhirDestinationCollection { pub value: Vec, } impl azure_core::Continuable for IotFhirDestinationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotFhirDestinationCollection { @@ -670,8 +670,8 @@ pub struct ListOperations { pub next_link: Option, } impl azure_core::Continuable for ListOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListOperations { @@ -1002,7 +1002,7 @@ pub struct PrivateEndpointConnectionListResultDescription { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResultDescription { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1149,7 +1149,7 @@ pub struct PrivateLinkResourceListResultDescription { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResultDescription { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1664,8 +1664,8 @@ pub struct ServicesDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for ServicesDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServicesDescriptionListResult { @@ -2042,8 +2042,8 @@ pub struct WorkspaceList { pub value: Vec, } impl azure_core::Continuable for WorkspaceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceList { diff --git a/services/mgmt/healthcareapis/src/package_preview_2022_01/operations.rs b/services/mgmt/healthcareapis/src/package_preview_2022_01/operations.rs index 1e7efdc4a2..6292556e44 100644 --- a/services/mgmt/healthcareapis/src/package_preview_2022_01/operations.rs +++ b/services/mgmt/healthcareapis/src/package_preview_2022_01/operations.rs @@ -447,9 +447,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -468,6 +468,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -523,9 +526,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -544,6 +547,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1127,9 +1133,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1148,6 +1154,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1203,9 +1212,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1224,6 +1233,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1606,9 +1618,9 @@ pub mod dicom_services { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1627,6 +1639,9 @@ pub mod dicom_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2017,9 +2032,9 @@ pub mod iot_connectors { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2038,6 +2053,9 @@ pub mod iot_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2361,9 +2379,9 @@ pub mod fhir_destinations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HealthcareApis/workspaces/{}/iotconnectors/{}/fhirdestinations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . iot_connector_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2382,6 +2400,9 @@ pub mod fhir_destinations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2747,9 +2768,9 @@ pub mod fhir_services { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2768,6 +2789,9 @@ pub mod fhir_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3471,9 +3495,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HealthcareApis/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3492,6 +3516,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_03/models.rs b/services/mgmt/hybridcompute/src/package_preview_2021_03/models.rs index 3d65c994e9..b9c2f3b168 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_03/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_03/models.rs @@ -82,7 +82,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -122,8 +122,8 @@ pub struct HybridComputePrivateLinkScopeListResult { pub next_link: Option, } impl azure_core::Continuable for HybridComputePrivateLinkScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridComputePrivateLinkScopeListResult { @@ -402,8 +402,8 @@ pub struct MachineExtensionsListResult { pub next_link: Option, } impl azure_core::Continuable for MachineExtensionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineExtensionsListResult { @@ -421,8 +421,8 @@ pub struct MachineListResult { pub next_link: Option, } impl azure_core::Continuable for MachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineListResult { @@ -602,7 +602,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -678,8 +678,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -745,8 +745,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_03/operations.rs b/services/mgmt/hybridcompute/src/package_preview_2021_03/operations.rs index 12c66e4f85..83d6476950 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_03/operations.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_03/operations.rs @@ -414,9 +414,9 @@ pub mod machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -435,6 +435,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -488,9 +491,9 @@ pub mod machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -509,6 +512,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -891,9 +897,9 @@ pub mod machine_extensions { &this.machine_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -912,6 +918,9 @@ pub mod machine_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1127,9 +1136,9 @@ pub mod private_link_scopes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1148,6 +1157,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1203,9 +1215,9 @@ pub mod private_link_scopes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1224,6 +1236,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1638,9 +1653,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridCompute/privateLinkScopes/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1659,6 +1674,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1976,9 +1994,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridCompute/privateLinkScopes/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1997,6 +2015,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_04/models.rs b/services/mgmt/hybridcompute/src/package_preview_2021_04/models.rs index 600fe2b88b..7d04198792 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_04/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_04/models.rs @@ -82,7 +82,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -142,8 +142,8 @@ pub struct HybridComputePrivateLinkScopeListResult { pub next_link: Option, } impl azure_core::Continuable for HybridComputePrivateLinkScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridComputePrivateLinkScopeListResult { @@ -434,8 +434,8 @@ pub struct MachineExtensionsListResult { pub next_link: Option, } impl azure_core::Continuable for MachineExtensionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineExtensionsListResult { @@ -453,8 +453,8 @@ pub struct MachineListResult { pub next_link: Option, } impl azure_core::Continuable for MachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineListResult { @@ -634,7 +634,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -710,8 +710,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -777,8 +777,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_04/operations.rs b/services/mgmt/hybridcompute/src/package_preview_2021_04/operations.rs index ddebfa56c3..9702f67588 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_04/operations.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_04/operations.rs @@ -414,9 +414,9 @@ pub mod machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -435,6 +435,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -488,9 +491,9 @@ pub mod machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -509,6 +512,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -891,9 +897,9 @@ pub mod machine_extensions { &this.machine_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -912,6 +918,9 @@ pub mod machine_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1195,9 +1204,9 @@ pub mod private_link_scopes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1216,6 +1225,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1271,9 +1283,9 @@ pub mod private_link_scopes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1292,6 +1304,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1706,9 +1721,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridCompute/privateLinkScopes/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1727,6 +1742,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2044,9 +2062,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridCompute/privateLinkScopes/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2065,6 +2083,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_05/models.rs b/services/mgmt/hybridcompute/src/package_preview_2021_05/models.rs index e95eaa4ac8..a08bb6c83c 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_05/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_05/models.rs @@ -82,7 +82,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -142,8 +142,8 @@ pub struct HybridComputePrivateLinkScopeListResult { pub next_link: Option, } impl azure_core::Continuable for HybridComputePrivateLinkScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridComputePrivateLinkScopeListResult { @@ -437,8 +437,8 @@ pub struct MachineExtensionsListResult { pub next_link: Option, } impl azure_core::Continuable for MachineExtensionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineExtensionsListResult { @@ -456,8 +456,8 @@ pub struct MachineListResult { pub next_link: Option, } impl azure_core::Continuable for MachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineListResult { @@ -637,7 +637,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -734,8 +734,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -801,8 +801,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_05/operations.rs b/services/mgmt/hybridcompute/src/package_preview_2021_05/operations.rs index 3bf973bcd1..46b1ecf8a4 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_05/operations.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_05/operations.rs @@ -414,9 +414,9 @@ pub mod machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -435,6 +435,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -488,9 +491,9 @@ pub mod machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -509,6 +512,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -891,9 +897,9 @@ pub mod machine_extensions { &this.machine_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -912,6 +918,9 @@ pub mod machine_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1195,9 +1204,9 @@ pub mod private_link_scopes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1216,6 +1225,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1271,9 +1283,9 @@ pub mod private_link_scopes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1292,6 +1304,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1706,9 +1721,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridCompute/privateLinkScopes/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1727,6 +1742,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2044,9 +2062,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridCompute/privateLinkScopes/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2065,6 +2083,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_06/models.rs b/services/mgmt/hybridcompute/src/package_preview_2021_06/models.rs index 19a3546d0b..6401917dc2 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_06/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_06/models.rs @@ -82,7 +82,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -142,8 +142,8 @@ pub struct HybridComputePrivateLinkScopeListResult { pub next_link: Option, } impl azure_core::Continuable for HybridComputePrivateLinkScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridComputePrivateLinkScopeListResult { @@ -437,8 +437,8 @@ pub struct MachineExtensionsListResult { pub next_link: Option, } impl azure_core::Continuable for MachineExtensionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineExtensionsListResult { @@ -456,8 +456,8 @@ pub struct MachineListResult { pub next_link: Option, } impl azure_core::Continuable for MachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineListResult { @@ -679,7 +679,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -788,8 +788,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -855,8 +855,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_06/operations.rs b/services/mgmt/hybridcompute/src/package_preview_2021_06/operations.rs index 3d21f0bd19..2a5f5b2c9e 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_06/operations.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_06/operations.rs @@ -414,9 +414,9 @@ pub mod machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -435,6 +435,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -488,9 +491,9 @@ pub mod machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -509,6 +512,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -891,9 +897,9 @@ pub mod machine_extensions { &this.machine_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -912,6 +918,9 @@ pub mod machine_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1195,9 +1204,9 @@ pub mod private_link_scopes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1216,6 +1225,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1271,9 +1283,9 @@ pub mod private_link_scopes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1292,6 +1304,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1706,9 +1721,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridCompute/privateLinkScopes/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1727,6 +1742,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2044,9 +2062,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridCompute/privateLinkScopes/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2065,6 +2083,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_12/models.rs b/services/mgmt/hybridcompute/src/package_preview_2021_12/models.rs index 5e2d4fc9e3..4f506992bc 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_12/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_12/models.rs @@ -109,7 +109,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -169,8 +169,8 @@ pub struct HybridComputePrivateLinkScopeListResult { pub next_link: Option, } impl azure_core::Continuable for HybridComputePrivateLinkScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridComputePrivateLinkScopeListResult { @@ -467,8 +467,8 @@ pub struct MachineExtensionsListResult { pub next_link: Option, } impl azure_core::Continuable for MachineExtensionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineExtensionsListResult { @@ -486,8 +486,8 @@ pub struct MachineListResult { pub next_link: Option, } impl azure_core::Continuable for MachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineListResult { @@ -718,7 +718,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -830,8 +830,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -897,8 +897,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { diff --git a/services/mgmt/hybridcompute/src/package_preview_2021_12/operations.rs b/services/mgmt/hybridcompute/src/package_preview_2021_12/operations.rs index 122652fef7..d304260413 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2021_12/operations.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2021_12/operations.rs @@ -414,9 +414,9 @@ pub mod machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -435,6 +435,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -488,9 +491,9 @@ pub mod machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -509,6 +512,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -891,9 +897,9 @@ pub mod machine_extensions { &this.machine_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -912,6 +918,9 @@ pub mod machine_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1200,9 +1209,9 @@ pub mod private_link_scopes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1221,6 +1230,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1276,9 +1288,9 @@ pub mod private_link_scopes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1297,6 +1309,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1711,9 +1726,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridCompute/privateLinkScopes/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1732,6 +1747,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2049,9 +2067,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridCompute/privateLinkScopes/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2070,6 +2088,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs b/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs index 03c1df9049..8bdb6cb1bb 100644 --- a/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs +++ b/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs @@ -107,8 +107,8 @@ pub struct EndpointsList { pub value: Vec, } impl azure_core::Continuable for EndpointsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointsList { @@ -163,7 +163,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -308,8 +308,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/operations.rs b/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/operations.rs index 308ea97c86..e0bc2735b3 100644 --- a/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/operations.rs +++ b/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/operations.rs @@ -106,9 +106,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -127,6 +127,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -240,9 +243,9 @@ pub mod endpoints { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -261,6 +264,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs b/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs index ed5ec3e04b..f4ea34d300 100644 --- a/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs +++ b/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs @@ -123,8 +123,8 @@ pub struct EndpointsList { pub value: Vec, } impl azure_core::Continuable for EndpointsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointsList { @@ -179,7 +179,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -381,8 +381,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/operations.rs b/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/operations.rs index f2786e3b3b..717f8b16ce 100644 --- a/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/operations.rs +++ b/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/operations.rs @@ -106,9 +106,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -127,6 +127,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -253,9 +256,9 @@ pub mod endpoints { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -274,6 +277,9 @@ pub mod endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybriddatamanager/src/package_2016_06/models.rs b/services/mgmt/hybriddatamanager/src/package_2016_06/models.rs index e3bfda8942..52da7d5f3f 100644 --- a/services/mgmt/hybriddatamanager/src/package_2016_06/models.rs +++ b/services/mgmt/hybriddatamanager/src/package_2016_06/models.rs @@ -69,8 +69,8 @@ pub struct AvailableProviderOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableProviderOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableProviderOperations { @@ -137,7 +137,7 @@ pub struct DataManagerList { pub next_link: Option, } impl azure_core::Continuable for DataManagerList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -188,8 +188,8 @@ pub struct DataServiceList { pub next_link: Option, } impl azure_core::Continuable for DataServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataServiceList { @@ -267,8 +267,8 @@ pub struct DataStoreList { pub next_link: Option, } impl azure_core::Continuable for DataStoreList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataStoreList { @@ -342,8 +342,8 @@ pub struct DataStoreTypeList { pub next_link: Option, } impl azure_core::Continuable for DataStoreTypeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataStoreTypeList { @@ -542,8 +542,8 @@ pub struct JobDefinitionList { pub next_link: Option, } impl azure_core::Continuable for JobDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobDefinitionList { @@ -735,8 +735,8 @@ pub struct JobList { pub next_link: Option, } impl azure_core::Continuable for JobList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobList { @@ -884,8 +884,8 @@ pub struct PublicKeyList { pub next_link: Option, } impl azure_core::Continuable for PublicKeyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicKeyList { diff --git a/services/mgmt/hybriddatamanager/src/package_2016_06/operations.rs b/services/mgmt/hybriddatamanager/src/package_2016_06/operations.rs index 403f52367c..80aef09187 100644 --- a/services/mgmt/hybriddatamanager/src/package_2016_06/operations.rs +++ b/services/mgmt/hybriddatamanager/src/package_2016_06/operations.rs @@ -123,9 +123,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HybridData/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -144,6 +144,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -649,9 +652,9 @@ pub mod data_services { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -670,6 +673,9 @@ pub mod data_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -889,9 +895,9 @@ pub mod job_definitions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridData/dataManagers/{}/dataServices/{}/jobDefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . data_manager_name , & this . data_service_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -910,6 +916,9 @@ pub mod job_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1181,9 +1190,9 @@ pub mod job_definitions { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1202,6 +1211,9 @@ pub mod job_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1375,9 +1387,9 @@ pub mod jobs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridData/dataManagers/{}/dataServices/{}/jobDefinitions/{}/jobs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . data_manager_name , & this . data_service_name , & this . job_definition_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1396,6 +1408,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1624,9 +1639,9 @@ pub mod jobs { &this.data_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1645,6 +1660,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1710,9 +1728,9 @@ pub mod jobs { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1731,6 +1749,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1863,9 +1884,9 @@ pub mod data_stores { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1884,6 +1905,9 @@ pub mod data_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2150,9 +2174,9 @@ pub mod data_store_types { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2171,6 +2195,9 @@ pub mod data_store_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2316,9 +2343,9 @@ pub mod public_keys { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2337,6 +2364,9 @@ pub mod public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybriddatamanager/src/package_2019_06/models.rs b/services/mgmt/hybriddatamanager/src/package_2019_06/models.rs index 4a237deb97..ae50048a10 100644 --- a/services/mgmt/hybriddatamanager/src/package_2019_06/models.rs +++ b/services/mgmt/hybriddatamanager/src/package_2019_06/models.rs @@ -69,8 +69,8 @@ pub struct AvailableProviderOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableProviderOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableProviderOperations { @@ -137,7 +137,7 @@ pub struct DataManagerList { pub next_link: Option, } impl azure_core::Continuable for DataManagerList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -188,8 +188,8 @@ pub struct DataServiceList { pub next_link: Option, } impl azure_core::Continuable for DataServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataServiceList { @@ -267,8 +267,8 @@ pub struct DataStoreList { pub next_link: Option, } impl azure_core::Continuable for DataStoreList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataStoreList { @@ -342,8 +342,8 @@ pub struct DataStoreTypeList { pub next_link: Option, } impl azure_core::Continuable for DataStoreTypeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataStoreTypeList { @@ -543,8 +543,8 @@ pub struct JobDefinitionList { pub next_link: Option, } impl azure_core::Continuable for JobDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobDefinitionList { @@ -737,8 +737,8 @@ pub struct JobList { pub next_link: Option, } impl azure_core::Continuable for JobList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobList { @@ -887,8 +887,8 @@ pub struct PublicKeyList { pub next_link: Option, } impl azure_core::Continuable for PublicKeyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicKeyList { diff --git a/services/mgmt/hybriddatamanager/src/package_2019_06/operations.rs b/services/mgmt/hybriddatamanager/src/package_2019_06/operations.rs index 2e7bc2a7e7..2ce31d2396 100644 --- a/services/mgmt/hybriddatamanager/src/package_2019_06/operations.rs +++ b/services/mgmt/hybriddatamanager/src/package_2019_06/operations.rs @@ -123,9 +123,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HybridData/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -144,6 +144,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -649,9 +652,9 @@ pub mod data_services { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -670,6 +673,9 @@ pub mod data_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -889,9 +895,9 @@ pub mod job_definitions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridData/dataManagers/{}/dataServices/{}/jobDefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . data_manager_name , & this . data_service_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -910,6 +916,9 @@ pub mod job_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1181,9 +1190,9 @@ pub mod job_definitions { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1202,6 +1211,9 @@ pub mod job_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1375,9 +1387,9 @@ pub mod jobs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.HybridData/dataManagers/{}/dataServices/{}/jobDefinitions/{}/jobs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . data_manager_name , & this . data_service_name , & this . job_definition_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1396,6 +1408,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1624,9 +1639,9 @@ pub mod jobs { &this.data_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1645,6 +1660,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1710,9 +1728,9 @@ pub mod jobs { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1731,6 +1749,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1863,9 +1884,9 @@ pub mod data_stores { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1884,6 +1905,9 @@ pub mod data_stores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2150,9 +2174,9 @@ pub mod data_store_types { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2171,6 +2195,9 @@ pub mod data_store_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2316,9 +2343,9 @@ pub mod public_keys { &this.data_manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2337,6 +2364,9 @@ pub mod public_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/models.rs b/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/models.rs index 5335a8b12c..260f906578 100644 --- a/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/models.rs +++ b/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/models.rs @@ -154,8 +154,8 @@ pub struct ConnectedClusterList { pub next_link: Option, } impl azure_core::Continuable for ConnectedClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectedClusterList { @@ -424,7 +424,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -504,8 +504,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/operations.rs b/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/operations.rs index 23a73c546d..0f48e2b69a 100644 --- a/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/operations.rs +++ b/services/mgmt/hybridkubernetes/src/package_2020_01_01_preview/operations.rs @@ -497,9 +497,9 @@ pub mod connected_cluster { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -518,6 +518,9 @@ pub mod connected_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -571,9 +574,9 @@ pub mod connected_cluster { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -592,6 +595,9 @@ pub mod connected_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -650,9 +656,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Kubernetes/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -671,6 +677,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridkubernetes/src/package_2021_03_01/models.rs b/services/mgmt/hybridkubernetes/src/package_2021_03_01/models.rs index bd62115554..ba60579f51 100644 --- a/services/mgmt/hybridkubernetes/src/package_2021_03_01/models.rs +++ b/services/mgmt/hybridkubernetes/src/package_2021_03_01/models.rs @@ -74,8 +74,8 @@ pub struct ConnectedClusterList { pub next_link: Option, } impl azure_core::Continuable for ConnectedClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectedClusterList { @@ -306,7 +306,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -365,8 +365,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/hybridkubernetes/src/package_2021_03_01/operations.rs b/services/mgmt/hybridkubernetes/src/package_2021_03_01/operations.rs index 0a2c6a2987..79cc1acac8 100644 --- a/services/mgmt/hybridkubernetes/src/package_2021_03_01/operations.rs +++ b/services/mgmt/hybridkubernetes/src/package_2021_03_01/operations.rs @@ -412,9 +412,9 @@ pub mod connected_cluster { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -433,6 +433,9 @@ pub mod connected_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -486,9 +489,9 @@ pub mod connected_cluster { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -507,6 +510,9 @@ pub mod connected_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -565,9 +571,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Kubernetes/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -586,6 +592,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/models.rs b/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/models.rs index dc4f87be34..5b8fbab529 100644 --- a/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/models.rs +++ b/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/models.rs @@ -74,8 +74,8 @@ pub struct ConnectedClusterList { pub next_link: Option, } impl azure_core::Continuable for ConnectedClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectedClusterList { @@ -433,7 +433,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -572,8 +572,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/operations.rs b/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/operations.rs index 67dc397a85..2256da02d1 100644 --- a/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/operations.rs +++ b/services/mgmt/hybridkubernetes/src/package_2021_04_01_preview/operations.rs @@ -482,9 +482,9 @@ pub mod connected_cluster { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -503,6 +503,9 @@ pub mod connected_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -556,9 +559,9 @@ pub mod connected_cluster { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -577,6 +580,9 @@ pub mod connected_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -635,9 +641,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Kubernetes/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -656,6 +662,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridkubernetes/src/package_2021_10_01/models.rs b/services/mgmt/hybridkubernetes/src/package_2021_10_01/models.rs index 0e84a8553c..63ab041b23 100644 --- a/services/mgmt/hybridkubernetes/src/package_2021_10_01/models.rs +++ b/services/mgmt/hybridkubernetes/src/package_2021_10_01/models.rs @@ -74,8 +74,8 @@ pub struct ConnectedClusterList { pub next_link: Option, } impl azure_core::Continuable for ConnectedClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectedClusterList { @@ -336,7 +336,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -475,8 +475,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/hybridkubernetes/src/package_2021_10_01/operations.rs b/services/mgmt/hybridkubernetes/src/package_2021_10_01/operations.rs index fb7d37f60c..181b9679c0 100644 --- a/services/mgmt/hybridkubernetes/src/package_2021_10_01/operations.rs +++ b/services/mgmt/hybridkubernetes/src/package_2021_10_01/operations.rs @@ -476,9 +476,9 @@ pub mod connected_cluster { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -497,6 +497,9 @@ pub mod connected_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -550,9 +553,9 @@ pub mod connected_cluster { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -571,6 +574,9 @@ pub mod connected_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -629,9 +635,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Kubernetes/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -650,6 +656,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/models.rs b/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/models.rs index b89d513a73..b3420d87bf 100644 --- a/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/models.rs +++ b/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/models.rs @@ -74,8 +74,8 @@ pub struct ConnectedClusterList { pub next_link: Option, } impl azure_core::Continuable for ConnectedClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectedClusterList { @@ -386,7 +386,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -525,8 +525,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/operations.rs b/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/operations.rs index 1a77bfad78..274deb14ca 100644 --- a/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/operations.rs +++ b/services/mgmt/hybridkubernetes/src/package_2022_05_01_preview/operations.rs @@ -476,9 +476,9 @@ pub mod connected_cluster { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -497,6 +497,9 @@ pub mod connected_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -550,9 +553,9 @@ pub mod connected_cluster { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -571,6 +574,9 @@ pub mod connected_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -629,9 +635,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Kubernetes/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -650,6 +656,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/models.rs b/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/models.rs index 907995fc49..4de9a3a2a0 100644 --- a/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/models.rs +++ b/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/models.rs @@ -119,8 +119,8 @@ pub struct DeviceListResult { pub next_link: Option, } impl azure_core::Continuable for DeviceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceListResult { @@ -294,7 +294,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -379,8 +379,8 @@ pub struct NetworkFunctionListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionListResult { @@ -627,8 +627,8 @@ pub struct NetworkFunctionRoleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionRoleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionRoleInstanceListResult { @@ -650,8 +650,8 @@ pub struct NetworkFunctionSkuDetails { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionSkuDetails { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionSkuDetails { @@ -670,8 +670,8 @@ pub struct NetworkFunctionSkuListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionSkuListResult { @@ -792,8 +792,8 @@ pub struct NetworkFunctionVendorListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionVendorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionVendorListResult { @@ -1022,8 +1022,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -1144,8 +1144,8 @@ pub struct PreviewSubscriptionsList { pub next_link: Option, } impl azure_core::Continuable for PreviewSubscriptionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PreviewSubscriptionsList { @@ -1510,8 +1510,8 @@ pub struct VendorListResult { pub next_link: Option, } impl azure_core::Continuable for VendorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VendorListResult { @@ -1544,8 +1544,8 @@ pub struct VendorNetworkFunctionListResult { pub next_link: Option, } impl azure_core::Continuable for VendorNetworkFunctionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VendorNetworkFunctionListResult { @@ -1664,8 +1664,8 @@ pub struct VendorSkuListResult { pub next_link: Option, } impl azure_core::Continuable for VendorSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VendorSkuListResult { diff --git a/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/operations.rs b/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/operations.rs index f1828de88b..6bb7bda8fd 100644 --- a/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/operations.rs +++ b/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/operations.rs @@ -428,9 +428,9 @@ pub mod network_functions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -449,6 +449,9 @@ pub mod network_functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -504,9 +507,9 @@ pub mod network_functions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -525,6 +528,9 @@ pub mod network_functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -896,9 +902,9 @@ pub mod devices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -917,6 +923,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -972,9 +981,9 @@ pub mod devices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -993,6 +1002,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1104,9 +1116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HybridNetwork/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1125,6 +1137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1386,9 +1401,9 @@ pub mod vendors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1407,6 +1422,9 @@ pub mod vendors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1683,9 +1701,9 @@ pub mod vendor_skus { &this.vendor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1704,6 +1722,9 @@ pub mod vendor_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1827,9 +1848,9 @@ pub mod vendor_sku_preview { &this.sku_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1848,6 +1869,9 @@ pub mod vendor_sku_preview { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2091,9 +2115,9 @@ pub mod network_function_vendors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2112,6 +2136,9 @@ pub mod network_function_vendors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2193,9 +2220,9 @@ pub mod network_function_vendor_skus { &this.vendor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2214,6 +2241,9 @@ pub mod network_function_vendor_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2271,9 +2301,9 @@ pub mod network_function_vendor_skus { &this.vendor_sku_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2292,6 +2322,9 @@ pub mod network_function_vendor_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2526,9 +2559,9 @@ pub mod vendor_network_functions { &this.vendor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2547,6 +2580,9 @@ pub mod vendor_network_functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2892,9 +2928,9 @@ pub mod role_instances { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.HybridNetwork/locations/{}/vendors/{}/networkFunctions/{}/roleInstances" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . vendor_name , & this . service_key)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2913,6 +2949,9 @@ pub mod role_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs b/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs index 505f9647d6..d658ec904d 100644 --- a/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs +++ b/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs @@ -123,8 +123,8 @@ pub struct DeviceListResult { pub next_link: Option, } impl azure_core::Continuable for DeviceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceListResult { @@ -298,7 +298,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -387,8 +387,8 @@ pub struct NetworkFunctionListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionListResult { @@ -642,8 +642,8 @@ pub struct NetworkFunctionRoleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionRoleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionRoleInstanceListResult { @@ -665,8 +665,8 @@ pub struct NetworkFunctionSkuDetails { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionSkuDetails { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionSkuDetails { @@ -685,8 +685,8 @@ pub struct NetworkFunctionSkuListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionSkuListResult { @@ -807,8 +807,8 @@ pub struct NetworkFunctionVendorListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionVendorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionVendorListResult { @@ -1037,8 +1037,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -1177,8 +1177,8 @@ pub struct PreviewSubscriptionsList { pub next_link: Option, } impl azure_core::Continuable for PreviewSubscriptionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PreviewSubscriptionsList { @@ -1552,8 +1552,8 @@ pub struct VendorListResult { pub next_link: Option, } impl azure_core::Continuable for VendorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VendorListResult { @@ -1589,8 +1589,8 @@ pub struct VendorNetworkFunctionListResult { pub next_link: Option, } impl azure_core::Continuable for VendorNetworkFunctionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VendorNetworkFunctionListResult { @@ -1712,8 +1712,8 @@ pub struct VendorSkuListResult { pub next_link: Option, } impl azure_core::Continuable for VendorSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VendorSkuListResult { diff --git a/services/mgmt/hybridnetwork/src/package_2021_05_01/operations.rs b/services/mgmt/hybridnetwork/src/package_2021_05_01/operations.rs index 882a785020..d50c0fc448 100644 --- a/services/mgmt/hybridnetwork/src/package_2021_05_01/operations.rs +++ b/services/mgmt/hybridnetwork/src/package_2021_05_01/operations.rs @@ -428,9 +428,9 @@ pub mod network_functions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -449,6 +449,9 @@ pub mod network_functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -504,9 +507,9 @@ pub mod network_functions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -525,6 +528,9 @@ pub mod network_functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -896,9 +902,9 @@ pub mod devices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -917,6 +923,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -972,9 +981,9 @@ pub mod devices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -993,6 +1002,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1104,9 +1116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HybridNetwork/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1125,6 +1137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1386,9 +1401,9 @@ pub mod vendors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1407,6 +1422,9 @@ pub mod vendors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1683,9 +1701,9 @@ pub mod vendor_skus { &this.vendor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1704,6 +1722,9 @@ pub mod vendor_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1827,9 +1848,9 @@ pub mod vendor_sku_preview { &this.sku_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1848,6 +1869,9 @@ pub mod vendor_sku_preview { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2091,9 +2115,9 @@ pub mod network_function_vendors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2112,6 +2136,9 @@ pub mod network_function_vendors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2193,9 +2220,9 @@ pub mod network_function_vendor_skus { &this.vendor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2214,6 +2241,9 @@ pub mod network_function_vendor_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2271,9 +2301,9 @@ pub mod network_function_vendor_skus { &this.vendor_sku_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2292,6 +2322,9 @@ pub mod network_function_vendor_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2526,9 +2559,9 @@ pub mod vendor_network_functions { &this.vendor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2547,6 +2580,9 @@ pub mod vendor_network_functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2892,9 +2928,9 @@ pub mod role_instances { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.HybridNetwork/locations/{}/vendors/{}/networkFunctions/{}/roleInstances" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . vendor_name , & this . service_key)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2913,6 +2949,9 @@ pub mod role_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs b/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs index f699c8c5c3..a51fef17eb 100644 --- a/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs @@ -123,8 +123,8 @@ pub struct DeviceListResult { pub next_link: Option, } impl azure_core::Continuable for DeviceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceListResult { @@ -298,7 +298,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -405,8 +405,8 @@ pub struct NetworkFunctionListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionListResult { @@ -660,8 +660,8 @@ pub struct NetworkFunctionRoleInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionRoleInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionRoleInstanceListResult { @@ -683,8 +683,8 @@ pub struct NetworkFunctionSkuDetails { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionSkuDetails { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionSkuDetails { @@ -703,8 +703,8 @@ pub struct NetworkFunctionSkuListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionSkuListResult { @@ -825,8 +825,8 @@ pub struct NetworkFunctionVendorListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkFunctionVendorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkFunctionVendorListResult { @@ -1141,8 +1141,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1281,8 +1281,8 @@ pub struct PreviewSubscriptionsList { pub next_link: Option, } impl azure_core::Continuable for PreviewSubscriptionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PreviewSubscriptionsList { @@ -1754,8 +1754,8 @@ pub struct VendorListResult { pub next_link: Option, } impl azure_core::Continuable for VendorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VendorListResult { @@ -1791,8 +1791,8 @@ pub struct VendorNetworkFunctionListResult { pub next_link: Option, } impl azure_core::Continuable for VendorNetworkFunctionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VendorNetworkFunctionListResult { @@ -1914,8 +1914,8 @@ pub struct VendorSkuListResult { pub next_link: Option, } impl azure_core::Continuable for VendorSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VendorSkuListResult { diff --git a/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/operations.rs b/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/operations.rs index 0a2eedfb92..873f28406a 100644 --- a/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/operations.rs +++ b/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/operations.rs @@ -441,9 +441,9 @@ pub mod devices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -462,6 +462,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -517,9 +520,9 @@ pub mod devices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -538,6 +541,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -964,9 +970,9 @@ pub mod network_functions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -985,6 +991,9 @@ pub mod network_functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1040,9 +1049,9 @@ pub mod network_functions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1061,6 +1070,9 @@ pub mod network_functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1182,9 +1194,9 @@ pub mod network_function_vendors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1203,6 +1215,9 @@ pub mod network_function_vendors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1284,9 +1299,9 @@ pub mod network_function_vendor_skus { &this.vendor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1305,6 +1320,9 @@ pub mod network_function_vendor_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1362,9 +1380,9 @@ pub mod network_function_vendor_skus { &this.vendor_sku_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1383,6 +1401,9 @@ pub mod network_function_vendor_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1441,9 +1462,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.HybridNetwork/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1462,6 +1483,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1723,9 +1747,9 @@ pub mod vendors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1744,6 +1768,9 @@ pub mod vendors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2033,9 +2060,9 @@ pub mod vendor_skus { &this.vendor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2054,6 +2081,9 @@ pub mod vendor_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2230,9 +2260,9 @@ pub mod vendor_sku_preview { &this.sku_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2251,6 +2281,9 @@ pub mod vendor_sku_preview { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2663,9 +2696,9 @@ pub mod vendor_network_functions { &this.vendor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2684,6 +2717,9 @@ pub mod vendor_network_functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3029,9 +3065,9 @@ pub mod role_instances { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.HybridNetwork/locations/{}/vendors/{}/networkFunctions/{}/roleInstances" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . vendor_name , & this . service_key)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3050,6 +3086,9 @@ pub mod role_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/imagebuilder/src/package_2019_02/models.rs b/services/mgmt/imagebuilder/src/package_2019_02/models.rs index 00e7f43bc7..0338428e37 100644 --- a/services/mgmt/imagebuilder/src/package_2019_02/models.rs +++ b/services/mgmt/imagebuilder/src/package_2019_02/models.rs @@ -24,7 +24,7 @@ pub struct ApiError { pub message: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -174,8 +174,8 @@ pub struct ImageTemplateListResult { pub next_link: Option, } impl azure_core::Continuable for ImageTemplateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImageTemplateListResult { @@ -464,8 +464,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -569,8 +569,8 @@ pub struct RunOutputCollection { pub next_link: Option, } impl azure_core::Continuable for RunOutputCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunOutputCollection { diff --git a/services/mgmt/imagebuilder/src/package_2019_02/operations.rs b/services/mgmt/imagebuilder/src/package_2019_02/operations.rs index 950612d8b2..9039d35c2c 100644 --- a/services/mgmt/imagebuilder/src/package_2019_02/operations.rs +++ b/services/mgmt/imagebuilder/src/package_2019_02/operations.rs @@ -219,9 +219,9 @@ pub mod virtual_machine_image_templates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -240,6 +240,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -295,9 +298,9 @@ pub mod virtual_machine_image_templates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -316,6 +319,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -654,9 +660,9 @@ pub mod virtual_machine_image_templates { &this.image_template_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -675,6 +681,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -782,9 +791,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -803,6 +812,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/imagebuilder/src/package_2020_02/models.rs b/services/mgmt/imagebuilder/src/package_2020_02/models.rs index be43f85bdf..fd50695a9c 100644 --- a/services/mgmt/imagebuilder/src/package_2020_02/models.rs +++ b/services/mgmt/imagebuilder/src/package_2020_02/models.rs @@ -24,7 +24,7 @@ pub struct ApiError { pub message: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -213,8 +213,8 @@ pub struct ImageTemplateListResult { pub next_link: Option, } impl azure_core::Continuable for ImageTemplateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImageTemplateListResult { @@ -652,8 +652,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -829,8 +829,8 @@ pub struct RunOutputCollection { pub next_link: Option, } impl azure_core::Continuable for RunOutputCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunOutputCollection { diff --git a/services/mgmt/imagebuilder/src/package_2020_02/operations.rs b/services/mgmt/imagebuilder/src/package_2020_02/operations.rs index da31d690af..19d29168a1 100644 --- a/services/mgmt/imagebuilder/src/package_2020_02/operations.rs +++ b/services/mgmt/imagebuilder/src/package_2020_02/operations.rs @@ -232,9 +232,9 @@ pub mod virtual_machine_image_templates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -253,6 +253,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -308,9 +311,9 @@ pub mod virtual_machine_image_templates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -329,6 +332,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -732,9 +738,9 @@ pub mod virtual_machine_image_templates { &this.image_template_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -753,6 +759,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -860,9 +869,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -881,6 +890,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/imagebuilder/src/package_2021_10/models.rs b/services/mgmt/imagebuilder/src/package_2021_10/models.rs index da25dbf342..8d51140878 100644 --- a/services/mgmt/imagebuilder/src/package_2021_10/models.rs +++ b/services/mgmt/imagebuilder/src/package_2021_10/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -208,8 +208,8 @@ pub struct ImageTemplateListResult { pub next_link: Option, } impl azure_core::Continuable for ImageTemplateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImageTemplateListResult { @@ -639,8 +639,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -805,8 +805,8 @@ pub struct RunOutputCollection { pub next_link: Option, } impl azure_core::Continuable for RunOutputCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunOutputCollection { diff --git a/services/mgmt/imagebuilder/src/package_2021_10/operations.rs b/services/mgmt/imagebuilder/src/package_2021_10/operations.rs index da048e800b..beda1c717c 100644 --- a/services/mgmt/imagebuilder/src/package_2021_10/operations.rs +++ b/services/mgmt/imagebuilder/src/package_2021_10/operations.rs @@ -232,9 +232,9 @@ pub mod virtual_machine_image_templates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -253,6 +253,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -308,9 +311,9 @@ pub mod virtual_machine_image_templates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -329,6 +332,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -732,9 +738,9 @@ pub mod virtual_machine_image_templates { &this.image_template_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -753,6 +759,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -860,9 +869,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -881,6 +890,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/imagebuilder/src/package_2022_02/models.rs b/services/mgmt/imagebuilder/src/package_2022_02/models.rs index b45b04d350..e156a7681e 100644 --- a/services/mgmt/imagebuilder/src/package_2022_02/models.rs +++ b/services/mgmt/imagebuilder/src/package_2022_02/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -220,8 +220,8 @@ pub struct ImageTemplateListResult { pub next_link: Option, } impl azure_core::Continuable for ImageTemplateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImageTemplateListResult { @@ -746,8 +746,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -935,8 +935,8 @@ pub struct RunOutputCollection { pub next_link: Option, } impl azure_core::Continuable for RunOutputCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunOutputCollection { diff --git a/services/mgmt/imagebuilder/src/package_2022_02/operations.rs b/services/mgmt/imagebuilder/src/package_2022_02/operations.rs index 4073a18f4d..80bfb34451 100644 --- a/services/mgmt/imagebuilder/src/package_2022_02/operations.rs +++ b/services/mgmt/imagebuilder/src/package_2022_02/operations.rs @@ -232,9 +232,9 @@ pub mod virtual_machine_image_templates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -253,6 +253,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -308,9 +311,9 @@ pub mod virtual_machine_image_templates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -329,6 +332,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -732,9 +738,9 @@ pub mod virtual_machine_image_templates { &this.image_template_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -753,6 +759,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -860,9 +869,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -881,6 +890,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs b/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs index 0ba393ded3..dc74a3f5f6 100644 --- a/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs +++ b/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs @@ -24,7 +24,7 @@ pub struct ApiError { pub message: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -233,8 +233,8 @@ pub struct ImageTemplateListResult { pub next_link: Option, } impl azure_core::Continuable for ImageTemplateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImageTemplateListResult { @@ -581,8 +581,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -739,8 +739,8 @@ pub struct RunOutputCollection { pub next_link: Option, } impl azure_core::Continuable for RunOutputCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RunOutputCollection { diff --git a/services/mgmt/imagebuilder/src/package_preview_2019_05/operations.rs b/services/mgmt/imagebuilder/src/package_preview_2019_05/operations.rs index cf420128bb..661f40092a 100644 --- a/services/mgmt/imagebuilder/src/package_preview_2019_05/operations.rs +++ b/services/mgmt/imagebuilder/src/package_preview_2019_05/operations.rs @@ -219,9 +219,9 @@ pub mod virtual_machine_image_templates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -240,6 +240,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -295,9 +298,9 @@ pub mod virtual_machine_image_templates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -316,6 +319,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -660,9 +666,9 @@ pub mod virtual_machine_image_templates { &this.image_template_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -681,6 +687,9 @@ pub mod virtual_machine_image_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -788,9 +797,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -809,6 +818,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/intune/src/package_2015_01_preview/models.rs b/services/mgmt/intune/src/package_2015_01_preview/models.rs index 07942d4e3e..3d33c88ce8 100644 --- a/services/mgmt/intune/src/package_2015_01_preview/models.rs +++ b/services/mgmt/intune/src/package_2015_01_preview/models.rs @@ -26,8 +26,8 @@ pub struct AndroidMamPolicyCollection { pub nextlink: Option, } impl azure_core::Continuable for AndroidMamPolicyCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl AndroidMamPolicyCollection { @@ -102,8 +102,8 @@ pub struct ApplicationCollection { pub nextlink: Option, } impl azure_core::Continuable for ApplicationCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationCollection { @@ -166,8 +166,8 @@ pub struct DeviceCollection { pub nextlink: Option, } impl azure_core::Continuable for DeviceCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCollection { @@ -204,7 +204,7 @@ pub struct Error { pub message: String, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -235,8 +235,8 @@ pub struct FlaggedEnrolledAppCollection { pub nextlink: Option, } impl azure_core::Continuable for FlaggedEnrolledAppCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl FlaggedEnrolledAppCollection { @@ -296,8 +296,8 @@ pub struct FlaggedUserCollection { pub nextlink: Option, } impl azure_core::Continuable for FlaggedUserCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl FlaggedUserCollection { @@ -348,8 +348,8 @@ pub struct GroupsCollection { pub nextlink: Option, } impl azure_core::Continuable for GroupsCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl GroupsCollection { @@ -365,8 +365,8 @@ pub struct IosmamPolicyCollection { pub nextlink: Option, } impl azure_core::Continuable for IosmamPolicyCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl IosmamPolicyCollection { @@ -395,8 +395,8 @@ pub struct LocationCollection { pub nextlink: Option, } impl azure_core::Continuable for LocationCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl LocationCollection { @@ -651,8 +651,8 @@ pub struct OperationResultCollection { pub nextlink: Option, } impl azure_core::Continuable for OperationResultCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl OperationResultCollection { @@ -719,8 +719,8 @@ pub struct StatusesDefault { pub nextlink: Option, } impl azure_core::Continuable for StatusesDefault { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl StatusesDefault { diff --git a/services/mgmt/intune/src/package_2015_01_preview/operations.rs b/services/mgmt/intune/src/package_2015_01_preview/operations.rs index 2dfa6712b5..321d1df978 100644 --- a/services/mgmt/intune/src/package_2015_01_preview/operations.rs +++ b/services/mgmt/intune/src/package_2015_01_preview/operations.rs @@ -199,9 +199,9 @@ pub mod get_locations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Intune/locations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -220,6 +220,9 @@ pub mod get_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -332,9 +335,9 @@ pub mod get_apps { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -353,6 +356,9 @@ pub mod get_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -432,9 +438,9 @@ pub mod get_mam_user_devices { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -453,6 +459,9 @@ pub mod get_mam_user_devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -643,9 +652,9 @@ pub mod get_operation_results { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -664,6 +673,9 @@ pub mod get_operation_results { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -726,9 +738,9 @@ pub mod get_mam_statuses { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -747,6 +759,9 @@ pub mod get_mam_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -815,9 +830,9 @@ pub mod get_mam_flagged_users { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -836,6 +851,9 @@ pub mod get_mam_flagged_users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -973,9 +991,9 @@ pub mod get_mam_user_flagged_enrolled_apps { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -994,6 +1012,9 @@ pub mod get_mam_user_flagged_enrolled_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1211,9 +1232,9 @@ pub mod ios { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1232,6 +1253,9 @@ pub mod ios { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1524,9 +1548,9 @@ pub mod ios { &this.policy_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1545,6 +1569,9 @@ pub mod ios { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1717,9 +1744,9 @@ pub mod ios { &this.policy_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1738,6 +1765,9 @@ pub mod ios { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2055,9 +2085,9 @@ pub mod android { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2076,6 +2106,9 @@ pub mod android { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2368,9 +2401,9 @@ pub mod android { &this.policy_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2389,6 +2422,9 @@ pub mod android { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2561,9 +2597,9 @@ pub mod android { &this.policy_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2582,6 +2618,9 @@ pub mod android { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/intune/src/package_2015_01_privatepreview/models.rs b/services/mgmt/intune/src/package_2015_01_privatepreview/models.rs index 4f12dcdcff..1f78ab5796 100644 --- a/services/mgmt/intune/src/package_2015_01_privatepreview/models.rs +++ b/services/mgmt/intune/src/package_2015_01_privatepreview/models.rs @@ -26,8 +26,8 @@ pub struct AndroidMamPolicyCollection { pub nextlink: Option, } impl azure_core::Continuable for AndroidMamPolicyCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl AndroidMamPolicyCollection { @@ -102,8 +102,8 @@ pub struct ApplicationCollection { pub nextlink: Option, } impl azure_core::Continuable for ApplicationCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationCollection { @@ -166,8 +166,8 @@ pub struct DeviceCollection { pub nextlink: Option, } impl azure_core::Continuable for DeviceCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCollection { @@ -204,7 +204,7 @@ pub struct Error { pub message: String, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -235,8 +235,8 @@ pub struct FlaggedEnrolledAppCollection { pub nextlink: Option, } impl azure_core::Continuable for FlaggedEnrolledAppCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl FlaggedEnrolledAppCollection { @@ -296,8 +296,8 @@ pub struct FlaggedUserCollection { pub nextlink: Option, } impl azure_core::Continuable for FlaggedUserCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl FlaggedUserCollection { @@ -348,8 +348,8 @@ pub struct GroupsCollection { pub nextlink: Option, } impl azure_core::Continuable for GroupsCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl GroupsCollection { @@ -365,8 +365,8 @@ pub struct IosmamPolicyCollection { pub nextlink: Option, } impl azure_core::Continuable for IosmamPolicyCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl IosmamPolicyCollection { @@ -395,8 +395,8 @@ pub struct LocationCollection { pub nextlink: Option, } impl azure_core::Continuable for LocationCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl LocationCollection { @@ -651,8 +651,8 @@ pub struct OperationResultCollection { pub nextlink: Option, } impl azure_core::Continuable for OperationResultCollection { - fn continuation(&self) -> Option { - self.nextlink.clone() + fn continuation(&self) -> Option { + self.nextlink.clone().map(azure_core::prelude::Continuation::from) } } impl OperationResultCollection { @@ -716,7 +716,7 @@ pub struct StatusesDefault { pub properties: Option, } impl azure_core::Continuable for StatusesDefault { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/intune/src/package_2015_01_privatepreview/operations.rs b/services/mgmt/intune/src/package_2015_01_privatepreview/operations.rs index d0609472c8..71d20a954a 100644 --- a/services/mgmt/intune/src/package_2015_01_privatepreview/operations.rs +++ b/services/mgmt/intune/src/package_2015_01_privatepreview/operations.rs @@ -199,9 +199,9 @@ pub mod get_locations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Intune/locations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -220,6 +220,9 @@ pub mod get_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -332,9 +335,9 @@ pub mod get_apps { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -353,6 +356,9 @@ pub mod get_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -432,9 +438,9 @@ pub mod get_mam_user_devices { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -453,6 +459,9 @@ pub mod get_mam_user_devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -643,9 +652,9 @@ pub mod get_operation_results { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -664,6 +673,9 @@ pub mod get_operation_results { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -726,9 +738,9 @@ pub mod get_mam_statuses { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -747,6 +759,9 @@ pub mod get_mam_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -815,9 +830,9 @@ pub mod get_mam_flagged_users { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -836,6 +851,9 @@ pub mod get_mam_flagged_users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -973,9 +991,9 @@ pub mod get_mam_user_flagged_enrolled_apps { &this.user_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -994,6 +1012,9 @@ pub mod get_mam_user_flagged_enrolled_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1211,9 +1232,9 @@ pub mod ios { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1232,6 +1253,9 @@ pub mod ios { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1524,9 +1548,9 @@ pub mod ios { &this.policy_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1545,6 +1569,9 @@ pub mod ios { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1717,9 +1744,9 @@ pub mod ios { &this.policy_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1738,6 +1765,9 @@ pub mod ios { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2055,9 +2085,9 @@ pub mod android { &this.host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2076,6 +2106,9 @@ pub mod android { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2368,9 +2401,9 @@ pub mod android { &this.policy_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2389,6 +2422,9 @@ pub mod android { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2561,9 +2597,9 @@ pub mod android { &this.policy_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2582,6 +2618,9 @@ pub mod android { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/iotcentral/src/package_2018_09_01/models.rs b/services/mgmt/iotcentral/src/package_2018_09_01/models.rs index a747060bcb..1694c7a6f4 100644 --- a/services/mgmt/iotcentral/src/package_2018_09_01/models.rs +++ b/services/mgmt/iotcentral/src/package_2018_09_01/models.rs @@ -53,8 +53,8 @@ pub struct AppListResult { pub value: Vec, } impl azure_core::Continuable for AppListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppListResult { @@ -220,8 +220,8 @@ pub struct AppTemplatesResult { pub value: Vec, } impl azure_core::Continuable for AppTemplatesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppTemplatesResult { @@ -237,7 +237,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -334,8 +334,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/iotcentral/src/package_2018_09_01/operations.rs b/services/mgmt/iotcentral/src/package_2018_09_01/operations.rs index 57ec1bf61e..1be879d6ec 100644 --- a/services/mgmt/iotcentral/src/package_2018_09_01/operations.rs +++ b/services/mgmt/iotcentral/src/package_2018_09_01/operations.rs @@ -440,9 +440,9 @@ pub mod apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -461,6 +461,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -516,9 +519,9 @@ pub mod apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -537,6 +540,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -690,9 +696,9 @@ pub mod apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -711,6 +717,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -770,9 +779,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.IoTCentral/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -791,6 +800,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/iotcentral/src/package_2021_06/models.rs b/services/mgmt/iotcentral/src/package_2021_06/models.rs index 5361433a01..b462b0baa8 100644 --- a/services/mgmt/iotcentral/src/package_2021_06/models.rs +++ b/services/mgmt/iotcentral/src/package_2021_06/models.rs @@ -57,8 +57,8 @@ pub struct AppListResult { pub value: Vec, } impl azure_core::Continuable for AppListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppListResult { @@ -265,8 +265,8 @@ pub struct AppTemplatesResult { pub value: Vec, } impl azure_core::Continuable for AppTemplatesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppTemplatesResult { @@ -282,7 +282,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -379,8 +379,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/iotcentral/src/package_2021_06/operations.rs b/services/mgmt/iotcentral/src/package_2021_06/operations.rs index a4ccb2b773..22a26e037e 100644 --- a/services/mgmt/iotcentral/src/package_2021_06/operations.rs +++ b/services/mgmt/iotcentral/src/package_2021_06/operations.rs @@ -440,9 +440,9 @@ pub mod apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -461,6 +461,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -516,9 +519,9 @@ pub mod apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -537,6 +540,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -690,9 +696,9 @@ pub mod apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -711,6 +717,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -770,9 +779,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.IoTCentral/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -791,6 +800,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/iotcentral/src/package_preview_2021_11/models.rs b/services/mgmt/iotcentral/src/package_preview_2021_11/models.rs index 49630be896..e71a4b392e 100644 --- a/services/mgmt/iotcentral/src/package_preview_2021_11/models.rs +++ b/services/mgmt/iotcentral/src/package_preview_2021_11/models.rs @@ -57,8 +57,8 @@ pub struct AppListResult { pub value: Vec, } impl azure_core::Continuable for AppListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppListResult { @@ -277,8 +277,8 @@ pub struct AppTemplatesResult { pub value: Vec, } impl azure_core::Continuable for AppTemplatesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppTemplatesResult { @@ -333,7 +333,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -523,8 +523,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -566,7 +566,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -703,7 +703,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/iotcentral/src/package_preview_2021_11/operations.rs b/services/mgmt/iotcentral/src/package_preview_2021_11/operations.rs index 246dee3010..d3c87eb538 100644 --- a/services/mgmt/iotcentral/src/package_preview_2021_11/operations.rs +++ b/services/mgmt/iotcentral/src/package_preview_2021_11/operations.rs @@ -433,9 +433,9 @@ pub mod apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -454,6 +454,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -509,9 +512,9 @@ pub mod apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -530,6 +533,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -683,9 +689,9 @@ pub mod apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -704,6 +710,9 @@ pub mod apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1190,9 +1199,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.IoTCentral/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1211,6 +1220,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/iothub/src/package_preview_2020_08_31/models.rs b/services/mgmt/iothub/src/package_preview_2020_08_31/models.rs index a2989fc8ad..6f5031b7d6 100644 --- a/services/mgmt/iothub/src/package_preview_2020_08_31/models.rs +++ b/services/mgmt/iothub/src/package_preview_2020_08_31/models.rs @@ -304,8 +304,8 @@ pub struct EndpointHealthDataListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointHealthDataListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointHealthDataListResult { @@ -350,7 +350,7 @@ pub struct ErrorDetails { pub details: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -418,8 +418,8 @@ pub struct EventHubConsumerGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubConsumerGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubConsumerGroupsListResult { @@ -800,8 +800,8 @@ pub struct IotHubDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubDescriptionListResult { @@ -1080,8 +1080,8 @@ pub struct IotHubQuotaMetricInfoListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubQuotaMetricInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubQuotaMetricInfoListResult { @@ -1120,8 +1120,8 @@ pub struct IotHubSkuDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubSkuDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubSkuDescriptionListResult { @@ -1363,8 +1363,8 @@ pub struct JobResponseListResult { pub next_link: Option, } impl azure_core::Continuable for JobResponseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobResponseListResult { @@ -1637,8 +1637,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2507,8 +2507,8 @@ pub struct SharedAccessSignatureAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SharedAccessSignatureAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedAccessSignatureAuthorizationRuleListResult { diff --git a/services/mgmt/iothub/src/package_preview_2020_08_31/operations.rs b/services/mgmt/iothub/src/package_preview_2020_08_31/operations.rs index c47a6778c2..632db48b0f 100644 --- a/services/mgmt/iothub/src/package_preview_2020_08_31/operations.rs +++ b/services/mgmt/iothub/src/package_preview_2020_08_31/operations.rs @@ -119,9 +119,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Devices/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -140,6 +140,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -786,9 +789,9 @@ pub mod iot_hub_resource { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -807,6 +810,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -862,9 +868,9 @@ pub mod iot_hub_resource { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -883,6 +889,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -992,9 +1001,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1013,6 +1022,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1065,9 +1077,9 @@ pub mod iot_hub_resource { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Devices/IotHubs/{}/eventHubEndpoints/{}/ConsumerGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . event_hub_endpoint_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1086,6 +1098,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1285,9 +1300,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1306,6 +1321,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1417,9 +1435,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1438,6 +1456,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1495,9 +1516,9 @@ pub mod iot_hub_resource { &this.iot_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1516,6 +1537,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1731,9 +1755,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1752,6 +1776,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/iothub/src/package_preview_2021_02/models.rs b/services/mgmt/iothub/src/package_preview_2021_02/models.rs index b9cac9a282..279625abd2 100644 --- a/services/mgmt/iothub/src/package_preview_2021_02/models.rs +++ b/services/mgmt/iothub/src/package_preview_2021_02/models.rs @@ -316,8 +316,8 @@ pub struct EndpointHealthDataListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointHealthDataListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointHealthDataListResult { @@ -362,7 +362,7 @@ pub struct ErrorDetails { pub details: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -430,8 +430,8 @@ pub struct EventHubConsumerGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubConsumerGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubConsumerGroupsListResult { @@ -812,8 +812,8 @@ pub struct IotHubDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubDescriptionListResult { @@ -1092,8 +1092,8 @@ pub struct IotHubQuotaMetricInfoListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubQuotaMetricInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubQuotaMetricInfoListResult { @@ -1132,8 +1132,8 @@ pub struct IotHubSkuDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubSkuDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubSkuDescriptionListResult { @@ -1375,8 +1375,8 @@ pub struct JobResponseListResult { pub next_link: Option, } impl azure_core::Continuable for JobResponseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobResponseListResult { @@ -1649,8 +1649,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2521,8 +2521,8 @@ pub struct SharedAccessSignatureAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SharedAccessSignatureAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedAccessSignatureAuthorizationRuleListResult { diff --git a/services/mgmt/iothub/src/package_preview_2021_02/operations.rs b/services/mgmt/iothub/src/package_preview_2021_02/operations.rs index d725f7e973..aea85207cf 100644 --- a/services/mgmt/iothub/src/package_preview_2021_02/operations.rs +++ b/services/mgmt/iothub/src/package_preview_2021_02/operations.rs @@ -119,9 +119,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Devices/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -140,6 +140,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -786,9 +789,9 @@ pub mod iot_hub_resource { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -807,6 +810,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -862,9 +868,9 @@ pub mod iot_hub_resource { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -883,6 +889,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -992,9 +1001,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1013,6 +1022,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1065,9 +1077,9 @@ pub mod iot_hub_resource { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Devices/IotHubs/{}/eventHubEndpoints/{}/ConsumerGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . event_hub_endpoint_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1086,6 +1098,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1285,9 +1300,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1306,6 +1321,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1417,9 +1435,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1438,6 +1456,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1495,9 +1516,9 @@ pub mod iot_hub_resource { &this.iot_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1516,6 +1537,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1731,9 +1755,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1752,6 +1776,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/iothub/src/package_preview_2021_03/models.rs b/services/mgmt/iothub/src/package_preview_2021_03/models.rs index b784809670..071d2bbe87 100644 --- a/services/mgmt/iothub/src/package_preview_2021_03/models.rs +++ b/services/mgmt/iothub/src/package_preview_2021_03/models.rs @@ -316,8 +316,8 @@ pub struct EndpointHealthDataListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointHealthDataListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointHealthDataListResult { @@ -362,7 +362,7 @@ pub struct ErrorDetails { pub details: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -430,8 +430,8 @@ pub struct EventHubConsumerGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubConsumerGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubConsumerGroupsListResult { @@ -820,8 +820,8 @@ pub struct IotHubDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubDescriptionListResult { @@ -1100,8 +1100,8 @@ pub struct IotHubQuotaMetricInfoListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubQuotaMetricInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubQuotaMetricInfoListResult { @@ -1140,8 +1140,8 @@ pub struct IotHubSkuDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubSkuDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubSkuDescriptionListResult { @@ -1383,8 +1383,8 @@ pub struct JobResponseListResult { pub next_link: Option, } impl azure_core::Continuable for JobResponseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobResponseListResult { @@ -1657,8 +1657,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2545,8 +2545,8 @@ pub struct SharedAccessSignatureAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SharedAccessSignatureAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedAccessSignatureAuthorizationRuleListResult { diff --git a/services/mgmt/iothub/src/package_preview_2021_03/operations.rs b/services/mgmt/iothub/src/package_preview_2021_03/operations.rs index a8aa0ed143..72f7341919 100644 --- a/services/mgmt/iothub/src/package_preview_2021_03/operations.rs +++ b/services/mgmt/iothub/src/package_preview_2021_03/operations.rs @@ -119,9 +119,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Devices/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -140,6 +140,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -786,9 +789,9 @@ pub mod iot_hub_resource { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -807,6 +810,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -862,9 +868,9 @@ pub mod iot_hub_resource { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -883,6 +889,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -992,9 +1001,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1013,6 +1022,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1065,9 +1077,9 @@ pub mod iot_hub_resource { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Devices/IotHubs/{}/eventHubEndpoints/{}/ConsumerGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . event_hub_endpoint_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1086,6 +1098,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1285,9 +1300,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1306,6 +1321,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1417,9 +1435,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1438,6 +1456,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1495,9 +1516,9 @@ pub mod iot_hub_resource { &this.iot_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1516,6 +1537,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1731,9 +1755,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1752,6 +1776,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/iothub/src/package_preview_2021_07_02/models.rs b/services/mgmt/iothub/src/package_preview_2021_07_02/models.rs index 8e0da1bd81..66b64f4188 100644 --- a/services/mgmt/iothub/src/package_preview_2021_07_02/models.rs +++ b/services/mgmt/iothub/src/package_preview_2021_07_02/models.rs @@ -319,8 +319,8 @@ pub struct EndpointHealthDataListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointHealthDataListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointHealthDataListResult { @@ -365,7 +365,7 @@ pub struct ErrorDetails { pub details: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -431,8 +431,8 @@ pub struct EventHubConsumerGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubConsumerGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubConsumerGroupsListResult { @@ -841,8 +841,8 @@ pub struct IotHubDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubDescriptionListResult { @@ -1139,8 +1139,8 @@ pub struct IotHubQuotaMetricInfoListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubQuotaMetricInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubQuotaMetricInfoListResult { @@ -1179,8 +1179,8 @@ pub struct IotHubSkuDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubSkuDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubSkuDescriptionListResult { @@ -1422,8 +1422,8 @@ pub struct JobResponseListResult { pub next_link: Option, } impl azure_core::Continuable for JobResponseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobResponseListResult { @@ -1696,8 +1696,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2586,8 +2586,8 @@ pub struct SharedAccessSignatureAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SharedAccessSignatureAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedAccessSignatureAuthorizationRuleListResult { diff --git a/services/mgmt/iothub/src/package_preview_2021_07_02/operations.rs b/services/mgmt/iothub/src/package_preview_2021_07_02/operations.rs index ff339fc4c0..8bd7a38420 100644 --- a/services/mgmt/iothub/src/package_preview_2021_07_02/operations.rs +++ b/services/mgmt/iothub/src/package_preview_2021_07_02/operations.rs @@ -119,9 +119,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Devices/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -140,6 +140,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -786,9 +789,9 @@ pub mod iot_hub_resource { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -807,6 +810,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -862,9 +868,9 @@ pub mod iot_hub_resource { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -883,6 +889,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -992,9 +1001,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1013,6 +1022,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1065,9 +1077,9 @@ pub mod iot_hub_resource { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Devices/IotHubs/{}/eventHubEndpoints/{}/ConsumerGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . event_hub_endpoint_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1086,6 +1098,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1285,9 +1300,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1306,6 +1321,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1417,9 +1435,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1438,6 +1456,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1495,9 +1516,9 @@ pub mod iot_hub_resource { &this.iot_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1516,6 +1537,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1731,9 +1755,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1752,6 +1776,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/iothub/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/iothub/src/profile_hybrid_2020_09_01/models.rs index 23e0a03f1d..e4076f219c 100644 --- a/services/mgmt/iothub/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/iothub/src/profile_hybrid_2020_09_01/models.rs @@ -243,8 +243,8 @@ pub struct EndpointHealthDataListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointHealthDataListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointHealthDataListResult { @@ -289,7 +289,7 @@ pub struct ErrorDetails { pub details: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -333,8 +333,8 @@ pub struct EventHubConsumerGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubConsumerGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubConsumerGroupsListResult { @@ -565,8 +565,8 @@ pub struct IotHubDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubDescriptionListResult { @@ -793,8 +793,8 @@ pub struct IotHubQuotaMetricInfoListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubQuotaMetricInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubQuotaMetricInfoListResult { @@ -833,8 +833,8 @@ pub struct IotHubSkuDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for IotHubSkuDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IotHubSkuDescriptionListResult { @@ -1076,8 +1076,8 @@ pub struct JobResponseListResult { pub next_link: Option, } impl azure_core::Continuable for JobResponseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobResponseListResult { @@ -1191,8 +1191,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1704,8 +1704,8 @@ pub struct SharedAccessSignatureAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SharedAccessSignatureAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedAccessSignatureAuthorizationRuleListResult { diff --git a/services/mgmt/iothub/src/profile_hybrid_2020_09_01/operations.rs b/services/mgmt/iothub/src/profile_hybrid_2020_09_01/operations.rs index b6828b6ae2..81391c99ac 100644 --- a/services/mgmt/iothub/src/profile_hybrid_2020_09_01/operations.rs +++ b/services/mgmt/iothub/src/profile_hybrid_2020_09_01/operations.rs @@ -113,9 +113,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Devices/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -134,6 +134,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -778,9 +781,9 @@ pub mod iot_hub_resource { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -799,6 +802,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -854,9 +860,9 @@ pub mod iot_hub_resource { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -875,6 +881,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -984,9 +993,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1005,6 +1014,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1057,9 +1069,9 @@ pub mod iot_hub_resource { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Devices/IotHubs/{}/eventHubEndpoints/{}/ConsumerGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . event_hub_endpoint_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1078,6 +1090,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1275,9 +1290,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1296,6 +1311,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1407,9 +1425,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1428,6 +1446,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1485,9 +1506,9 @@ pub mod iot_hub_resource { &this.iot_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1506,6 +1527,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1721,9 +1745,9 @@ pub mod iot_hub_resource { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1742,6 +1766,9 @@ pub mod iot_hub_resource { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/keyvault/src/package_preview_2021_04/models.rs b/services/mgmt/keyvault/src/package_preview_2021_04/models.rs index a59dd4866d..28facebbb3 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_04/models.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_04/models.rs @@ -64,7 +64,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -119,8 +119,8 @@ pub struct DeletedManagedHsmListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedManagedHsmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedManagedHsmListResult { @@ -187,8 +187,8 @@ pub struct DeletedVaultListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedVaultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedVaultListResult { @@ -553,8 +553,8 @@ pub struct MhsmPrivateEndpointConnectionsListResult { pub next_link: Option, } impl azure_core::Continuable for MhsmPrivateEndpointConnectionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MhsmPrivateEndpointConnectionsListResult { @@ -736,7 +736,7 @@ pub struct ManagedHsmError { pub error: Option, } impl azure_core::Continuable for ManagedHsmError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -756,8 +756,8 @@ pub struct ManagedHsmListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedHsmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedHsmListResult { @@ -1198,8 +1198,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1298,8 +1298,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1546,8 +1546,8 @@ pub struct ResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceListResult { @@ -1788,8 +1788,8 @@ pub struct VaultListResult { pub next_link: Option, } impl azure_core::Continuable for VaultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultListResult { diff --git a/services/mgmt/keyvault/src/package_preview_2021_04/operations.rs b/services/mgmt/keyvault/src/package_preview_2021_04/operations.rs index 85957927d7..0671556869 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_04/operations.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_04/operations.rs @@ -567,9 +567,9 @@ pub mod vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -588,6 +588,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -649,9 +652,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -670,6 +673,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -726,9 +732,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -747,6 +753,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -913,9 +922,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -934,6 +943,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1289,9 +1301,9 @@ pub mod private_endpoint_connections { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1310,6 +1322,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1797,9 +1812,9 @@ pub mod managed_hsms { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1818,6 +1833,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1879,9 +1897,9 @@ pub mod managed_hsms { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1900,6 +1918,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1956,9 +1977,9 @@ pub mod managed_hsms { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1977,6 +1998,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2202,9 +2226,9 @@ pub mod mhsm_private_endpoint_connections { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2223,6 +2247,9 @@ pub mod mhsm_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2503,9 +2530,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.KeyVault/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2524,6 +2551,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/keyvault/src/package_preview_2021_04_full/models.rs b/services/mgmt/keyvault/src/package_preview_2021_04_full/models.rs index ea6a619a22..886cdcb1c6 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_04_full/models.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_04_full/models.rs @@ -110,7 +110,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -165,8 +165,8 @@ pub struct DeletedManagedHsmListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedManagedHsmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedManagedHsmListResult { @@ -233,8 +233,8 @@ pub struct DeletedVaultListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedVaultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedVaultListResult { @@ -473,8 +473,8 @@ pub struct KeyListResult { pub next_link: Option, } impl azure_core::Continuable for KeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyListResult { @@ -877,8 +877,8 @@ pub struct MhsmPrivateEndpointConnectionsListResult { pub next_link: Option, } impl azure_core::Continuable for MhsmPrivateEndpointConnectionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MhsmPrivateEndpointConnectionsListResult { @@ -1060,7 +1060,7 @@ pub struct ManagedHsmError { pub error: Option, } impl azure_core::Continuable for ManagedHsmError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1080,8 +1080,8 @@ pub struct ManagedHsmListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedHsmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedHsmListResult { @@ -1522,8 +1522,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1622,8 +1622,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1870,8 +1870,8 @@ pub struct ResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceListResult { @@ -1944,8 +1944,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -2257,8 +2257,8 @@ pub struct VaultListResult { pub next_link: Option, } impl azure_core::Continuable for VaultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultListResult { diff --git a/services/mgmt/keyvault/src/package_preview_2021_04_full/operations.rs b/services/mgmt/keyvault/src/package_preview_2021_04_full/operations.rs index 77aeb5d0ca..44521633f1 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_04_full/operations.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_04_full/operations.rs @@ -573,9 +573,9 @@ pub mod vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -594,6 +594,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -655,9 +658,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -676,6 +679,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -732,9 +738,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -753,6 +759,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -919,9 +928,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -940,6 +949,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1295,9 +1307,9 @@ pub mod private_endpoint_connections { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1316,6 +1328,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1803,9 +1818,9 @@ pub mod managed_hsms { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1824,6 +1839,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1885,9 +1903,9 @@ pub mod managed_hsms { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1906,6 +1924,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1962,9 +1983,9 @@ pub mod managed_hsms { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1983,6 +2004,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2208,9 +2232,9 @@ pub mod mhsm_private_endpoint_connections { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2229,6 +2253,9 @@ pub mod mhsm_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2509,9 +2536,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.KeyVault/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2530,6 +2557,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2780,9 +2810,9 @@ pub mod keys { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2801,6 +2831,9 @@ pub mod keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2916,9 +2949,9 @@ pub mod keys { &this.key_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2937,6 +2970,9 @@ pub mod keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3252,9 +3288,9 @@ pub mod secrets { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3273,6 +3309,9 @@ pub mod secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/keyvault/src/package_preview_2021_06/models.rs b/services/mgmt/keyvault/src/package_preview_2021_06/models.rs index 46e26114cf..84e48274e9 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_06/models.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_06/models.rs @@ -110,7 +110,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -165,8 +165,8 @@ pub struct DeletedManagedHsmListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedManagedHsmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedManagedHsmListResult { @@ -233,8 +233,8 @@ pub struct DeletedVaultListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedVaultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedVaultListResult { @@ -476,8 +476,8 @@ pub struct KeyListResult { pub next_link: Option, } impl azure_core::Continuable for KeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyListResult { @@ -896,8 +896,8 @@ pub struct MhsmPrivateEndpointConnectionsListResult { pub next_link: Option, } impl azure_core::Continuable for MhsmPrivateEndpointConnectionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MhsmPrivateEndpointConnectionsListResult { @@ -1079,7 +1079,7 @@ pub struct ManagedHsmError { pub error: Option, } impl azure_core::Continuable for ManagedHsmError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1099,8 +1099,8 @@ pub struct ManagedHsmListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedHsmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedHsmListResult { @@ -1541,8 +1541,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1641,8 +1641,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1889,8 +1889,8 @@ pub struct ResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceListResult { @@ -1963,8 +1963,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -2276,8 +2276,8 @@ pub struct VaultListResult { pub next_link: Option, } impl azure_core::Continuable for VaultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultListResult { diff --git a/services/mgmt/keyvault/src/package_preview_2021_06/operations.rs b/services/mgmt/keyvault/src/package_preview_2021_06/operations.rs index a98fe259dc..2a9faf8181 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_06/operations.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_06/operations.rs @@ -317,9 +317,9 @@ pub mod keys { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -338,6 +338,9 @@ pub mod keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -453,9 +456,9 @@ pub mod keys { &this.key_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -474,6 +477,9 @@ pub mod keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -980,9 +986,9 @@ pub mod vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1001,6 +1007,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1062,9 +1071,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1083,6 +1092,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1139,9 +1151,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1160,6 +1172,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1326,9 +1341,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1347,6 +1362,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1702,9 +1720,9 @@ pub mod private_endpoint_connections { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1723,6 +1741,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2210,9 +2231,9 @@ pub mod managed_hsms { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2231,6 +2252,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2292,9 +2316,9 @@ pub mod managed_hsms { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2313,6 +2337,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2369,9 +2396,9 @@ pub mod managed_hsms { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2390,6 +2417,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2615,9 +2645,9 @@ pub mod mhsm_private_endpoint_connections { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2636,6 +2666,9 @@ pub mod mhsm_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2916,9 +2949,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.KeyVault/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2937,6 +2970,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3252,9 +3288,9 @@ pub mod secrets { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3273,6 +3309,9 @@ pub mod secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/keyvault/src/package_preview_2021_11/models.rs b/services/mgmt/keyvault/src/package_preview_2021_11/models.rs index 46e26114cf..84e48274e9 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_11/models.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_11/models.rs @@ -110,7 +110,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -165,8 +165,8 @@ pub struct DeletedManagedHsmListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedManagedHsmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedManagedHsmListResult { @@ -233,8 +233,8 @@ pub struct DeletedVaultListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedVaultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedVaultListResult { @@ -476,8 +476,8 @@ pub struct KeyListResult { pub next_link: Option, } impl azure_core::Continuable for KeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyListResult { @@ -896,8 +896,8 @@ pub struct MhsmPrivateEndpointConnectionsListResult { pub next_link: Option, } impl azure_core::Continuable for MhsmPrivateEndpointConnectionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MhsmPrivateEndpointConnectionsListResult { @@ -1079,7 +1079,7 @@ pub struct ManagedHsmError { pub error: Option, } impl azure_core::Continuable for ManagedHsmError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1099,8 +1099,8 @@ pub struct ManagedHsmListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedHsmListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedHsmListResult { @@ -1541,8 +1541,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1641,8 +1641,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1889,8 +1889,8 @@ pub struct ResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceListResult { @@ -1963,8 +1963,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -2276,8 +2276,8 @@ pub struct VaultListResult { pub next_link: Option, } impl azure_core::Continuable for VaultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultListResult { diff --git a/services/mgmt/keyvault/src/package_preview_2021_11/operations.rs b/services/mgmt/keyvault/src/package_preview_2021_11/operations.rs index 5aad8add54..619f585e41 100644 --- a/services/mgmt/keyvault/src/package_preview_2021_11/operations.rs +++ b/services/mgmt/keyvault/src/package_preview_2021_11/operations.rs @@ -317,9 +317,9 @@ pub mod keys { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -338,6 +338,9 @@ pub mod keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -453,9 +456,9 @@ pub mod keys { &this.key_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -474,6 +477,9 @@ pub mod keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -980,9 +986,9 @@ pub mod vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1001,6 +1007,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1062,9 +1071,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1083,6 +1092,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1139,9 +1151,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1160,6 +1172,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1326,9 +1341,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1347,6 +1362,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1702,9 +1720,9 @@ pub mod private_endpoint_connections { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1723,6 +1741,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2210,9 +2231,9 @@ pub mod managed_hsms { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2231,6 +2252,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2292,9 +2316,9 @@ pub mod managed_hsms { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2313,6 +2337,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2369,9 +2396,9 @@ pub mod managed_hsms { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2390,6 +2417,9 @@ pub mod managed_hsms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2615,9 +2645,9 @@ pub mod mhsm_private_endpoint_connections { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2636,6 +2666,9 @@ pub mod mhsm_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2916,9 +2949,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.KeyVault/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2937,6 +2970,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3252,9 +3288,9 @@ pub mod secrets { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3273,6 +3309,9 @@ pub mod secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/models.rs index 1e96a39d42..3d810dfcc4 100644 --- a/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/models.rs @@ -88,7 +88,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -144,8 +144,8 @@ pub struct DeletedVaultListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedVaultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedVaultListResult { @@ -426,8 +426,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -716,8 +716,8 @@ pub struct ResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceListResult { @@ -777,8 +777,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -1045,8 +1045,8 @@ pub struct VaultListResult { pub next_link: Option, } impl azure_core::Continuable for VaultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultListResult { diff --git a/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/operations.rs b/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/operations.rs index 82bd18a440..9438b846ac 100644 --- a/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/operations.rs +++ b/services/mgmt/keyvault/src/profile_hybrid_2020_09_01/operations.rs @@ -561,9 +561,9 @@ pub mod vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -582,6 +582,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -643,9 +646,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -664,6 +667,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -720,9 +726,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -741,6 +747,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -907,9 +916,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -928,6 +937,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1342,9 +1354,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.KeyVault/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1363,6 +1375,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1678,9 +1693,9 @@ pub mod secrets { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1699,6 +1714,9 @@ pub mod secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/kubernetesconfiguration/src/package_2022_03/models.rs b/services/mgmt/kubernetesconfiguration/src/package_2022_03/models.rs index 1e69a70faf..dd71a3cce8 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_2022_03/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_2022_03/models.rs @@ -227,7 +227,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -422,8 +422,8 @@ pub struct ExtensionsList { pub next_link: Option, } impl azure_core::Continuable for ExtensionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionsList { @@ -610,8 +610,8 @@ pub struct FluxConfigurationsList { pub next_link: Option, } impl azure_core::Continuable for FluxConfigurationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluxConfigurationsList { @@ -940,8 +940,8 @@ pub struct OperationStatusList { pub next_link: Option, } impl azure_core::Continuable for OperationStatusList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationStatusList { @@ -1208,8 +1208,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { @@ -1425,8 +1425,8 @@ pub struct SourceControlConfigurationList { pub next_link: Option, } impl azure_core::Continuable for SourceControlConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlConfigurationList { diff --git a/services/mgmt/kubernetesconfiguration/src/package_2022_03/operations.rs b/services/mgmt/kubernetesconfiguration/src/package_2022_03/operations.rs index 37ca5b6537..58efca769c 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_2022_03/operations.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_2022_03/operations.rs @@ -449,9 +449,9 @@ pub mod extensions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/extensions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -470,6 +470,9 @@ pub mod extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -617,9 +620,9 @@ pub mod operation_status { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/operations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -638,6 +641,9 @@ pub mod operation_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1029,9 +1035,9 @@ pub mod flux_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1050,6 +1056,9 @@ pub mod flux_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1422,9 +1431,9 @@ pub mod source_control_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1443,6 +1452,9 @@ pub mod source_control_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1503,9 +1515,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1524,6 +1536,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs index 3a8f6f273d..f4ed58a726 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs @@ -211,7 +211,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -419,8 +419,8 @@ pub struct ExtensionTypeList { pub next_link: Option, } impl azure_core::Continuable for ExtensionTypeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionTypeList { @@ -471,8 +471,8 @@ pub struct ExtensionVersionList { pub system_data: Option, } impl azure_core::Continuable for ExtensionVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionVersionList { @@ -491,8 +491,8 @@ pub struct ExtensionsList { pub next_link: Option, } impl azure_core::Continuable for ExtensionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionsList { @@ -670,8 +670,8 @@ pub struct FluxConfigurationsList { pub next_link: Option, } impl azure_core::Continuable for FluxConfigurationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluxConfigurationsList { @@ -935,8 +935,8 @@ pub struct OperationStatusList { pub next_link: Option, } impl azure_core::Continuable for OperationStatusList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationStatusList { @@ -1203,8 +1203,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { @@ -1420,8 +1420,8 @@ pub struct SourceControlConfigurationList { pub next_link: Option, } impl azure_core::Continuable for SourceControlConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlConfigurationList { diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/operations.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/operations.rs index b61e8d7310..9d915749e5 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/operations.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/operations.rs @@ -452,9 +452,9 @@ pub mod extensions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/extensions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -473,6 +473,9 @@ pub mod extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -620,9 +623,9 @@ pub mod operation_status { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/operations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -641,6 +644,9 @@ pub mod operation_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -791,9 +797,9 @@ pub mod cluster_extension_types { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/extensionTypes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -812,6 +818,9 @@ pub mod cluster_extension_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -888,9 +897,9 @@ pub mod extension_type_versions { &this.extension_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -909,6 +918,9 @@ pub mod extension_type_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -977,9 +989,9 @@ pub mod location_extension_types { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -998,6 +1010,9 @@ pub mod location_extension_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1293,9 +1308,9 @@ pub mod source_control_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1314,6 +1329,9 @@ pub mod source_control_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1696,9 +1714,9 @@ pub mod flux_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1717,6 +1735,9 @@ pub mod flux_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1854,9 +1875,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1875,6 +1896,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs index ac53e0c9bf..d256ca1785 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs @@ -271,7 +271,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -479,8 +479,8 @@ pub struct ExtensionTypeList { pub next_link: Option, } impl azure_core::Continuable for ExtensionTypeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionTypeList { @@ -531,8 +531,8 @@ pub struct ExtensionVersionList { pub system_data: Option, } impl azure_core::Continuable for ExtensionVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionVersionList { @@ -551,8 +551,8 @@ pub struct ExtensionsList { pub next_link: Option, } impl azure_core::Continuable for ExtensionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionsList { @@ -736,8 +736,8 @@ pub struct FluxConfigurationsList { pub next_link: Option, } impl azure_core::Continuable for FluxConfigurationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluxConfigurationsList { @@ -1061,8 +1061,8 @@ pub struct OperationStatusList { pub next_link: Option, } impl azure_core::Continuable for OperationStatusList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationStatusList { @@ -1329,8 +1329,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { @@ -1546,8 +1546,8 @@ pub struct SourceControlConfigurationList { pub next_link: Option, } impl azure_core::Continuable for SourceControlConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlConfigurationList { diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/operations.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/operations.rs index 9bd71a49a6..6f34d429ad 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/operations.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/operations.rs @@ -220,9 +220,9 @@ pub mod cluster_extension_types { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/extensionTypes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -241,6 +241,9 @@ pub mod cluster_extension_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -317,9 +320,9 @@ pub mod extension_type_versions { &this.extension_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -338,6 +341,9 @@ pub mod extension_type_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -406,9 +412,9 @@ pub mod location_extension_types { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -427,6 +433,9 @@ pub mod location_extension_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -809,9 +818,9 @@ pub mod extensions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/extensions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -830,6 +839,9 @@ pub mod extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -977,9 +989,9 @@ pub mod operation_status { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/operations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -998,6 +1010,9 @@ pub mod operation_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1380,9 +1395,9 @@ pub mod flux_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1401,6 +1416,9 @@ pub mod flux_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1773,9 +1791,9 @@ pub mod source_control_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1794,6 +1812,9 @@ pub mod source_control_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1854,9 +1875,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1875,6 +1896,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs index cd6e2f010d..d30358cc44 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs @@ -254,7 +254,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -465,8 +465,8 @@ pub struct ExtensionTypeList { pub next_link: Option, } impl azure_core::Continuable for ExtensionTypeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionTypeList { @@ -506,8 +506,8 @@ pub struct ExtensionVersionList { pub system_data: Option, } impl azure_core::Continuable for ExtensionVersionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionVersionList { @@ -526,8 +526,8 @@ pub struct ExtensionsList { pub next_link: Option, } impl azure_core::Continuable for ExtensionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionsList { @@ -711,8 +711,8 @@ pub struct FluxConfigurationsList { pub next_link: Option, } impl azure_core::Continuable for FluxConfigurationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluxConfigurationsList { @@ -1036,8 +1036,8 @@ pub struct OperationStatusList { pub next_link: Option, } impl azure_core::Continuable for OperationStatusList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationStatusList { @@ -1304,8 +1304,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { @@ -1521,8 +1521,8 @@ pub struct SourceControlConfigurationList { pub next_link: Option, } impl azure_core::Continuable for SourceControlConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlConfigurationList { diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/operations.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/operations.rs index 18741d3176..a8ca2bf007 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/operations.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/operations.rs @@ -220,9 +220,9 @@ pub mod cluster_extension_types { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/extensionTypes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -241,6 +241,9 @@ pub mod cluster_extension_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -317,9 +320,9 @@ pub mod extension_type_versions { &this.extension_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -338,6 +341,9 @@ pub mod extension_type_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -406,9 +412,9 @@ pub mod location_extension_types { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -427,6 +433,9 @@ pub mod location_extension_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -809,9 +818,9 @@ pub mod extensions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/extensions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -830,6 +839,9 @@ pub mod extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -977,9 +989,9 @@ pub mod operation_status { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/operations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -998,6 +1010,9 @@ pub mod operation_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1380,9 +1395,9 @@ pub mod flux_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1401,6 +1416,9 @@ pub mod flux_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1773,9 +1791,9 @@ pub mod source_control_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1794,6 +1812,9 @@ pub mod source_control_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1854,9 +1875,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1875,6 +1896,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs index 00e61fd23b..12373fd1d8 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs @@ -227,7 +227,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -425,8 +425,8 @@ pub struct ExtensionsList { pub next_link: Option, } impl azure_core::Continuable for ExtensionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtensionsList { @@ -613,8 +613,8 @@ pub struct FluxConfigurationsList { pub next_link: Option, } impl azure_core::Continuable for FluxConfigurationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FluxConfigurationsList { @@ -780,8 +780,8 @@ pub struct KubernetesConfigurationPrivateLinkScopeListResult { pub next_link: Option, } impl azure_core::Continuable for KubernetesConfigurationPrivateLinkScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KubernetesConfigurationPrivateLinkScopeListResult { @@ -1009,8 +1009,8 @@ pub struct OperationStatusList { pub next_link: Option, } impl azure_core::Continuable for OperationStatusList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationStatusList { @@ -1548,8 +1548,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { @@ -1765,8 +1765,8 @@ pub struct SourceControlConfigurationList { pub next_link: Option, } impl azure_core::Continuable for SourceControlConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlConfigurationList { diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/operations.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/operations.rs index 115cbc21fd..b00f29f220 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/operations.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/operations.rs @@ -458,9 +458,9 @@ pub mod extensions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/extensions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -479,6 +479,9 @@ pub mod extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -626,9 +629,9 @@ pub mod operation_status { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/operations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -647,6 +650,9 @@ pub mod operation_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1038,9 +1044,9 @@ pub mod flux_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1059,6 +1065,9 @@ pub mod flux_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1431,9 +1440,9 @@ pub mod source_control_configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_rp , & this . cluster_resource_name , & this . cluster_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1452,6 +1461,9 @@ pub mod source_control_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1512,9 +1524,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1533,6 +1545,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1665,9 +1680,9 @@ pub mod private_link_scopes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1686,6 +1701,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1742,9 +1760,9 @@ pub mod private_link_scopes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1763,6 +1781,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/models.rs b/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/models.rs index ac6f656a73..a830a71910 100644 --- a/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/models.rs +++ b/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/models.rs @@ -223,7 +223,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -306,7 +306,7 @@ pub struct ClusterListResult { pub value: Vec, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -510,7 +510,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -657,7 +657,7 @@ pub struct DatabasePrincipalListResult { pub value: Vec, } impl azure_core::Continuable for DatabasePrincipalListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -793,7 +793,7 @@ pub struct EventHubConnectionListResult { pub value: Vec, } impl azure_core::Continuable for EventHubConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -940,7 +940,7 @@ pub struct ListResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ListResourceSkusResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -957,7 +957,7 @@ pub struct ListSkusResult { pub value: Vec, } impl azure_core::Continuable for ListSkusResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1011,8 +1011,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/operations.rs b/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/operations.rs index 82467874e7..4716780e5d 100644 --- a/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/operations.rs +++ b/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/operations.rs @@ -1954,9 +1954,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Kusto/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1975,6 +1975,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/kusto/src/schema_2018_09_07_preview/models.rs b/services/mgmt/kusto/src/schema_2018_09_07_preview/models.rs index ac6f656a73..a830a71910 100644 --- a/services/mgmt/kusto/src/schema_2018_09_07_preview/models.rs +++ b/services/mgmt/kusto/src/schema_2018_09_07_preview/models.rs @@ -223,7 +223,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -306,7 +306,7 @@ pub struct ClusterListResult { pub value: Vec, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -510,7 +510,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -657,7 +657,7 @@ pub struct DatabasePrincipalListResult { pub value: Vec, } impl azure_core::Continuable for DatabasePrincipalListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -793,7 +793,7 @@ pub struct EventHubConnectionListResult { pub value: Vec, } impl azure_core::Continuable for EventHubConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -940,7 +940,7 @@ pub struct ListResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ListResourceSkusResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -957,7 +957,7 @@ pub struct ListSkusResult { pub value: Vec, } impl azure_core::Continuable for ListSkusResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1011,8 +1011,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/kusto/src/schema_2018_09_07_preview/operations.rs b/services/mgmt/kusto/src/schema_2018_09_07_preview/operations.rs index a5546a104d..9b1d165437 100644 --- a/services/mgmt/kusto/src/schema_2018_09_07_preview/operations.rs +++ b/services/mgmt/kusto/src/schema_2018_09_07_preview/operations.rs @@ -1954,9 +1954,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Kusto/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1975,6 +1975,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/kusto/src/schema_2019_01_21/models.rs b/services/mgmt/kusto/src/schema_2019_01_21/models.rs index eac89fc52d..1837e194e2 100644 --- a/services/mgmt/kusto/src/schema_2019_01_21/models.rs +++ b/services/mgmt/kusto/src/schema_2019_01_21/models.rs @@ -288,7 +288,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -369,7 +369,7 @@ pub struct ClusterListResult { pub value: Vec, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -613,7 +613,7 @@ pub struct DataConnectionListResult { pub value: Vec, } impl azure_core::Continuable for DataConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -775,7 +775,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -923,7 +923,7 @@ pub struct DatabasePrincipalListResult { pub value: Vec, } impl azure_core::Continuable for DatabasePrincipalListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1140,7 +1140,7 @@ pub struct ListResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ListResourceSkusResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1157,7 +1157,7 @@ pub struct ListSkusResult { pub value: Vec, } impl azure_core::Continuable for ListSkusResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1211,8 +1211,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/kusto/src/schema_2019_01_21/operations.rs b/services/mgmt/kusto/src/schema_2019_01_21/operations.rs index 54eb403d89..4d12467bc9 100644 --- a/services/mgmt/kusto/src/schema_2019_01_21/operations.rs +++ b/services/mgmt/kusto/src/schema_2019_01_21/operations.rs @@ -2052,9 +2052,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Kusto/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2073,6 +2073,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/kusto/src/schema_2019_05_15/models.rs b/services/mgmt/kusto/src/schema_2019_05_15/models.rs index 4805385d31..67c1db2ad6 100644 --- a/services/mgmt/kusto/src/schema_2019_05_15/models.rs +++ b/services/mgmt/kusto/src/schema_2019_05_15/models.rs @@ -288,7 +288,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -373,7 +373,7 @@ pub struct ClusterListResult { pub value: Vec, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -633,7 +633,7 @@ pub struct DataConnectionListResult { pub value: Vec, } impl azure_core::Continuable for DataConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -798,7 +798,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -950,7 +950,7 @@ pub struct DatabasePrincipalListResult { pub value: Vec, } impl azure_core::Continuable for DatabasePrincipalListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1228,7 +1228,7 @@ pub struct ListResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ListResourceSkusResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1282,8 +1282,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1378,7 +1378,7 @@ pub struct SkuDescriptionList { pub value: Vec, } impl azure_core::Continuable for SkuDescriptionList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/kusto/src/schema_2019_05_15/operations.rs b/services/mgmt/kusto/src/schema_2019_05_15/operations.rs index da0f76839d..f39881b029 100644 --- a/services/mgmt/kusto/src/schema_2019_05_15/operations.rs +++ b/services/mgmt/kusto/src/schema_2019_05_15/operations.rs @@ -2052,9 +2052,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Kusto/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2073,6 +2073,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/kusto/src/schema_2019_09_07/models.rs b/services/mgmt/kusto/src/schema_2019_09_07/models.rs index 6817261a64..a5c5efb254 100644 --- a/services/mgmt/kusto/src/schema_2019_09_07/models.rs +++ b/services/mgmt/kusto/src/schema_2019_09_07/models.rs @@ -29,7 +29,7 @@ pub struct AttachedDatabaseConfigurationListResult { pub value: Vec, } impl azure_core::Continuable for AttachedDatabaseConfigurationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -468,7 +468,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -557,7 +557,7 @@ pub struct ClusterListResult { pub value: Vec, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -823,7 +823,7 @@ pub struct DataConnectionListResult { pub value: Vec, } impl azure_core::Continuable for DataConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1005,7 +1005,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1157,7 +1157,7 @@ pub struct DatabasePrincipalListResult { pub value: Vec, } impl azure_core::Continuable for DatabasePrincipalListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1316,7 +1316,7 @@ pub struct FollowerDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for FollowerDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1445,7 +1445,7 @@ pub struct ListResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ListResourceSkusResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1499,8 +1499,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1809,7 +1809,7 @@ pub struct SkuDescriptionList { pub value: Vec, } impl azure_core::Continuable for SkuDescriptionList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/kusto/src/schema_2019_09_07/operations.rs b/services/mgmt/kusto/src/schema_2019_09_07/operations.rs index 69b998b287..df0800b6ec 100644 --- a/services/mgmt/kusto/src/schema_2019_09_07/operations.rs +++ b/services/mgmt/kusto/src/schema_2019_09_07/operations.rs @@ -2518,9 +2518,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Kusto/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2539,6 +2539,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/labservices/src/package_2018_10/models.rs b/services/mgmt/labservices/src/package_2018_10/models.rs index b22d76497c..dacecda0f5 100644 --- a/services/mgmt/labservices/src/package_2018_10/models.rs +++ b/services/mgmt/labservices/src/package_2018_10/models.rs @@ -24,7 +24,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1342,8 +1342,8 @@ pub struct ProviderOperationResult { pub next_link: Option, } impl azure_core::Continuable for ProviderOperationResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderOperationResult { @@ -1740,8 +1740,8 @@ pub struct ResponseWithContinuationEnvironmentSetting { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationEnvironmentSetting { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationEnvironmentSetting { @@ -1760,8 +1760,8 @@ pub struct ResponseWithContinuationEnvironment { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationEnvironment { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationEnvironment { @@ -1780,8 +1780,8 @@ pub struct ResponseWithContinuationGalleryImage { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationGalleryImage { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationGalleryImage { @@ -1800,8 +1800,8 @@ pub struct ResponseWithContinuationLabAccount { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationLabAccount { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationLabAccount { @@ -1820,8 +1820,8 @@ pub struct ResponseWithContinuationLab { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationLab { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationLab { @@ -1840,8 +1840,8 @@ pub struct ResponseWithContinuationUser { pub next_link: Option, } impl azure_core::Continuable for ResponseWithContinuationUser { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResponseWithContinuationUser { diff --git a/services/mgmt/labservices/src/package_2018_10/operations.rs b/services/mgmt/labservices/src/package_2018_10/operations.rs index 06ebd040ff..2785b105c9 100644 --- a/services/mgmt/labservices/src/package_2018_10/operations.rs +++ b/services/mgmt/labservices/src/package_2018_10/operations.rs @@ -125,9 +125,9 @@ pub mod provider_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.LabServices/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -146,6 +146,9 @@ pub mod provider_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -952,9 +955,9 @@ pub mod lab_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -973,6 +976,9 @@ pub mod lab_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1060,9 +1066,9 @@ pub mod lab_accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1081,6 +1087,9 @@ pub mod lab_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1663,9 +1672,9 @@ pub mod gallery_images { &this.lab_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1684,6 +1693,9 @@ pub mod gallery_images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2131,9 +2143,9 @@ pub mod labs { &this.lab_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2152,6 +2164,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2746,9 +2761,9 @@ pub mod environment_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.LabServices/labaccounts/{}/labs/{}/environmentsettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . lab_account_name , & this . lab_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2767,6 +2782,9 @@ pub mod environment_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3447,9 +3465,9 @@ pub mod environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.LabServices/labaccounts/{}/labs/{}/environmentsettings/{}/environments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . lab_account_name , & this . lab_name , & this . environment_setting_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3468,6 +3486,9 @@ pub mod environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4079,9 +4100,9 @@ pub mod users { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4100,6 +4121,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/labservices/src/package_preview_2021_10/models.rs b/services/mgmt/labservices/src/package_preview_2021_10/models.rs index d6277dac73..c7dce14048 100644 --- a/services/mgmt/labservices/src/package_preview_2021_10/models.rs +++ b/services/mgmt/labservices/src/package_preview_2021_10/models.rs @@ -113,7 +113,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -631,8 +631,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -700,8 +700,8 @@ pub struct PagedImages { pub next_link: Option, } impl azure_core::Continuable for PagedImages { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedImages { @@ -720,8 +720,8 @@ pub struct PagedLabPlans { pub next_link: Option, } impl azure_core::Continuable for PagedLabPlans { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedLabPlans { @@ -740,8 +740,8 @@ pub struct PagedLabs { pub next_link: Option, } impl azure_core::Continuable for PagedLabs { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedLabs { @@ -760,8 +760,8 @@ pub struct PagedSchedules { pub next_link: Option, } impl azure_core::Continuable for PagedSchedules { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedSchedules { @@ -780,8 +780,8 @@ pub struct PagedUsers { pub next_link: Option, } impl azure_core::Continuable for PagedUsers { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedUsers { @@ -800,8 +800,8 @@ pub struct PagedVirtualMachines { pub next_link: Option, } impl azure_core::Continuable for PagedVirtualMachines { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedVirtualMachines { diff --git a/services/mgmt/labservices/src/package_preview_2021_10/operations.rs b/services/mgmt/labservices/src/package_preview_2021_10/operations.rs index e5d0260f92..be72b7fcfb 100644 --- a/services/mgmt/labservices/src/package_preview_2021_10/operations.rs +++ b/services/mgmt/labservices/src/package_preview_2021_10/operations.rs @@ -123,9 +123,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.LabServices/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -144,6 +144,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -373,9 +376,9 @@ pub mod lab_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -394,6 +397,9 @@ pub mod lab_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -452,9 +458,9 @@ pub mod lab_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -473,6 +479,9 @@ pub mod lab_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -906,9 +915,9 @@ pub mod images { &this.lab_plan_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -927,6 +936,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1268,9 +1280,9 @@ pub mod labs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1289,6 +1301,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1347,9 +1362,9 @@ pub mod labs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1368,6 +1383,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1889,9 +1907,9 @@ pub mod users { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1910,6 +1928,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2402,9 +2423,9 @@ pub mod virtual_machines { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2423,6 +2444,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2910,9 +2934,9 @@ pub mod schedules { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2931,6 +2955,9 @@ pub mod schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/labservices/src/package_preview_2021_11/models.rs b/services/mgmt/labservices/src/package_preview_2021_11/models.rs index 6090e5b233..5dcd66367e 100644 --- a/services/mgmt/labservices/src/package_preview_2021_11/models.rs +++ b/services/mgmt/labservices/src/package_preview_2021_11/models.rs @@ -113,7 +113,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -774,8 +774,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -919,8 +919,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -988,8 +988,8 @@ pub struct PagedImages { pub next_link: Option, } impl azure_core::Continuable for PagedImages { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedImages { @@ -1008,8 +1008,8 @@ pub struct PagedLabPlans { pub next_link: Option, } impl azure_core::Continuable for PagedLabPlans { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedLabPlans { @@ -1028,8 +1028,8 @@ pub struct PagedLabServicesSkus { pub next_link: Option, } impl azure_core::Continuable for PagedLabServicesSkus { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedLabServicesSkus { @@ -1048,8 +1048,8 @@ pub struct PagedLabs { pub next_link: Option, } impl azure_core::Continuable for PagedLabs { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedLabs { @@ -1068,8 +1068,8 @@ pub struct PagedSchedules { pub next_link: Option, } impl azure_core::Continuable for PagedSchedules { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedSchedules { @@ -1088,8 +1088,8 @@ pub struct PagedUsers { pub next_link: Option, } impl azure_core::Continuable for PagedUsers { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedUsers { @@ -1108,8 +1108,8 @@ pub struct PagedVirtualMachines { pub next_link: Option, } impl azure_core::Continuable for PagedVirtualMachines { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedVirtualMachines { diff --git a/services/mgmt/labservices/src/package_preview_2021_11/operations.rs b/services/mgmt/labservices/src/package_preview_2021_11/operations.rs index 19e98b510f..e358962ed6 100644 --- a/services/mgmt/labservices/src/package_preview_2021_11/operations.rs +++ b/services/mgmt/labservices/src/package_preview_2021_11/operations.rs @@ -205,9 +205,9 @@ pub mod images { &this.lab_plan_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -226,6 +226,9 @@ pub mod images { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -555,9 +558,9 @@ pub mod lab_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -576,6 +579,9 @@ pub mod lab_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -634,9 +640,9 @@ pub mod lab_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -655,6 +661,9 @@ pub mod lab_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1012,9 +1021,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.LabServices/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1033,6 +1042,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1205,9 +1217,9 @@ pub mod labs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1226,6 +1238,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1284,9 +1299,9 @@ pub mod labs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1305,6 +1320,9 @@ pub mod labs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1877,9 +1895,9 @@ pub mod schedules { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1898,6 +1916,9 @@ pub mod schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2303,9 +2324,9 @@ pub mod users { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2324,6 +2345,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2816,9 +2840,9 @@ pub mod virtual_machines { &this.lab_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2837,6 +2861,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3248,9 +3275,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3269,6 +3296,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3344,9 +3374,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3365,6 +3395,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/loadtestservice/src/package_2021_12_01_preview/models.rs b/services/mgmt/loadtestservice/src/package_2021_12_01_preview/models.rs index 003649a33d..9db0d69570 100644 --- a/services/mgmt/loadtestservice/src/package_2021_12_01_preview/models.rs +++ b/services/mgmt/loadtestservice/src/package_2021_12_01_preview/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -110,8 +110,8 @@ pub struct LoadTestResourcePageList { pub next_link: Option, } impl azure_core::Continuable for LoadTestResourcePageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadTestResourcePageList { @@ -288,8 +288,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/loadtestservice/src/package_2021_12_01_preview/operations.rs b/services/mgmt/loadtestservice/src/package_2021_12_01_preview/operations.rs index 78c30c8f24..4940b7181d 100644 --- a/services/mgmt/loadtestservice/src/package_2021_12_01_preview/operations.rs +++ b/services/mgmt/loadtestservice/src/package_2021_12_01_preview/operations.rs @@ -106,9 +106,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -127,6 +127,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -259,9 +262,9 @@ pub mod load_tests { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -280,6 +283,9 @@ pub mod load_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -335,9 +341,9 @@ pub mod load_tests { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -356,6 +362,9 @@ pub mod load_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/loadtestservice/src/package_2022_04_15_preview/models.rs b/services/mgmt/loadtestservice/src/package_2022_04_15_preview/models.rs index 855b18e292..d9bed16e06 100644 --- a/services/mgmt/loadtestservice/src/package_2022_04_15_preview/models.rs +++ b/services/mgmt/loadtestservice/src/package_2022_04_15_preview/models.rs @@ -124,7 +124,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -186,8 +186,8 @@ pub struct LoadTestResourcePageList { pub next_link: Option, } impl azure_core::Continuable for LoadTestResourcePageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadTestResourcePageList { @@ -437,8 +437,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/loadtestservice/src/package_2022_04_15_preview/operations.rs b/services/mgmt/loadtestservice/src/package_2022_04_15_preview/operations.rs index 08e2091189..08eed7aa6d 100644 --- a/services/mgmt/loadtestservice/src/package_2022_04_15_preview/operations.rs +++ b/services/mgmt/loadtestservice/src/package_2022_04_15_preview/operations.rs @@ -106,9 +106,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -127,6 +127,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -259,9 +262,9 @@ pub mod load_tests { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -280,6 +283,9 @@ pub mod load_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -335,9 +341,9 @@ pub mod load_tests { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -356,6 +362,9 @@ pub mod load_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/logic/src/package_2018_07_preview/models.rs b/services/mgmt/logic/src/package_2018_07_preview/models.rs index 86bbdec106..92378a9f95 100644 --- a/services/mgmt/logic/src/package_2018_07_preview/models.rs +++ b/services/mgmt/logic/src/package_2018_07_preview/models.rs @@ -447,7 +447,7 @@ pub struct AssemblyCollection { pub value: Vec, } impl azure_core::Continuable for AssemblyCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -556,7 +556,7 @@ pub struct BatchConfigurationCollection { pub value: Vec, } impl azure_core::Continuable for BatchConfigurationCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1604,7 +1604,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1659,7 +1659,7 @@ pub struct ExpressionTraces { pub inputs: Vec, } impl azure_core::Continuable for ExpressionTraces { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1799,8 +1799,8 @@ pub struct IntegrationAccountAgreementListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountAgreementListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountAgreementListResult { @@ -1886,8 +1886,8 @@ pub struct IntegrationAccountCertificateListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountCertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountCertificateListResult { @@ -1930,8 +1930,8 @@ pub struct IntegrationAccountListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountListResult { @@ -1977,8 +1977,8 @@ pub struct IntegrationAccountMapListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountMapListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountMapListResult { @@ -2080,8 +2080,8 @@ pub struct IntegrationAccountPartnerListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountPartnerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountPartnerListResult { @@ -2162,8 +2162,8 @@ pub struct IntegrationAccountSchemaListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountSchemaListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountSchemaListResult { @@ -2259,8 +2259,8 @@ pub struct IntegrationAccountSessionListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountSessionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountSessionListResult { @@ -2435,7 +2435,7 @@ pub struct KeyVaultKeyCollection { pub skip_token: Option, } impl azure_core::Continuable for KeyVaultKeyCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2653,8 +2653,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2974,8 +2974,8 @@ pub struct RequestHistoryListResult { pub next_link: Option, } impl azure_core::Continuable for RequestHistoryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RequestHistoryListResult { @@ -3582,8 +3582,8 @@ pub struct WorkflowListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowListResult { @@ -3788,8 +3788,8 @@ pub struct WorkflowRunActionListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowRunActionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowRunActionListResult { @@ -3859,7 +3859,7 @@ pub struct WorkflowRunActionRepetitionDefinitionCollection { pub value: Vec, } impl azure_core::Continuable for WorkflowRunActionRepetitionDefinitionCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3904,8 +3904,8 @@ pub struct WorkflowRunListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowRunListResult { @@ -4204,8 +4204,8 @@ pub struct WorkflowTriggerHistoryListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowTriggerHistoryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowTriggerHistoryListResult { @@ -4288,8 +4288,8 @@ pub struct WorkflowTriggerListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowTriggerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowTriggerListResult { @@ -4449,8 +4449,8 @@ pub struct WorkflowVersionListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowVersionListResult { diff --git a/services/mgmt/logic/src/package_2018_07_preview/operations.rs b/services/mgmt/logic/src/package_2018_07_preview/operations.rs index 606b2b5e48..4fee93cc81 100644 --- a/services/mgmt/logic/src/package_2018_07_preview/operations.rs +++ b/services/mgmt/logic/src/package_2018_07_preview/operations.rs @@ -383,9 +383,9 @@ pub mod workflows { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -404,6 +404,9 @@ pub mod workflows { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -475,9 +478,9 @@ pub mod workflows { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -496,6 +499,9 @@ pub mod workflows { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1287,9 +1293,9 @@ pub mod workflow_versions { &this.workflow_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1308,6 +1314,9 @@ pub mod workflow_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1545,9 +1554,9 @@ pub mod workflow_triggers { &this.workflow_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1566,6 +1575,9 @@ pub mod workflow_triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2097,9 +2109,9 @@ pub mod workflow_trigger_histories { &this.trigger_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2118,6 +2130,9 @@ pub mod workflow_trigger_histories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2358,9 +2373,9 @@ pub mod workflow_runs { &this.workflow_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2379,6 +2394,9 @@ pub mod workflow_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2671,9 +2689,9 @@ pub mod workflow_run_actions { &this.run_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2692,6 +2710,9 @@ pub mod workflow_run_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3122,9 +3143,9 @@ pub mod workflow_run_action_repetitions_request_histories { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Logic/workflows/{}/runs/{}/actions/{}/repetitions/{}/requestHistories" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workflow_name , & this . run_name , & this . action_name , & this . repetition_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3143,6 +3164,9 @@ pub mod workflow_run_action_repetitions_request_histories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3288,9 +3312,9 @@ pub mod workflow_run_action_request_histories { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Logic/workflows/{}/runs/{}/actions/{}/requestHistories" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workflow_name , & this . run_name , & this . action_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3309,6 +3333,9 @@ pub mod workflow_run_action_request_histories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3775,9 +3802,9 @@ pub mod integration_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3796,6 +3823,9 @@ pub mod integration_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3859,9 +3889,9 @@ pub mod integration_accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3880,6 +3910,9 @@ pub mod integration_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5119,9 +5152,9 @@ pub mod integration_account_schemas { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5140,6 +5173,9 @@ pub mod integration_account_schemas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5521,9 +5557,9 @@ pub mod integration_account_maps { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5542,6 +5578,9 @@ pub mod integration_account_maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5923,9 +5962,9 @@ pub mod integration_account_partners { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5944,6 +5983,9 @@ pub mod integration_account_partners { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6325,9 +6367,9 @@ pub mod integration_account_agreements { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6346,6 +6388,9 @@ pub mod integration_account_agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6704,9 +6749,9 @@ pub mod integration_account_certificates { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6725,6 +6770,9 @@ pub mod integration_account_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7037,9 +7085,9 @@ pub mod integration_account_sessions { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7058,6 +7106,9 @@ pub mod integration_account_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7295,9 +7346,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Logic/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7316,6 +7367,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/logic/src/package_2019_05/models.rs b/services/mgmt/logic/src/package_2019_05/models.rs index aad1bb0a98..7d44cbccb1 100644 --- a/services/mgmt/logic/src/package_2019_05/models.rs +++ b/services/mgmt/logic/src/package_2019_05/models.rs @@ -529,8 +529,8 @@ pub struct ApiOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ApiOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiOperationListResult { @@ -891,7 +891,7 @@ pub struct AssemblyCollection { pub value: Vec, } impl azure_core::Continuable for AssemblyCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1041,7 +1041,7 @@ pub struct BatchConfigurationCollection { pub value: Vec, } impl azure_core::Continuable for BatchConfigurationCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2101,7 +2101,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2204,7 +2204,7 @@ pub struct ExpressionTraces { pub inputs: Vec, } impl azure_core::Continuable for ExpressionTraces { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2437,8 +2437,8 @@ pub struct IntegrationAccountAgreementListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountAgreementListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountAgreementListResult { @@ -2525,8 +2525,8 @@ pub struct IntegrationAccountCertificateListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountCertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountCertificateListResult { @@ -2569,8 +2569,8 @@ pub struct IntegrationAccountListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountListResult { @@ -2617,8 +2617,8 @@ pub struct IntegrationAccountMapListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountMapListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountMapListResult { @@ -2722,8 +2722,8 @@ pub struct IntegrationAccountPartnerListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountPartnerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountPartnerListResult { @@ -2814,8 +2814,8 @@ pub struct IntegrationAccountSchemaListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountSchemaListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountSchemaListResult { @@ -2912,8 +2912,8 @@ pub struct IntegrationAccountSessionListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationAccountSessionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationAccountSessionListResult { @@ -3103,8 +3103,8 @@ pub struct IntegrationServiceEnvironmentListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationServiceEnvironmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationServiceEnvironmentListResult { @@ -3149,8 +3149,8 @@ pub struct IntegrationServiceEnvironmentManagedApiListResult { pub next_link: Option, } impl azure_core::Continuable for IntegrationServiceEnvironmentManagedApiListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationServiceEnvironmentManagedApiListResult { @@ -3540,8 +3540,8 @@ pub struct IntegrationServiceEnvironmentSkuList { pub next_link: Option, } impl azure_core::Continuable for IntegrationServiceEnvironmentSkuList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationServiceEnvironmentSkuList { @@ -3774,7 +3774,7 @@ pub struct KeyVaultKeyCollection { pub skip_token: Option, } impl azure_core::Continuable for KeyVaultKeyCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4195,8 +4195,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -4522,8 +4522,8 @@ pub struct RequestHistoryListResult { pub next_link: Option, } impl azure_core::Continuable for RequestHistoryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RequestHistoryListResult { @@ -5500,8 +5500,8 @@ pub struct WorkflowListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowListResult { @@ -5742,8 +5742,8 @@ pub struct WorkflowRunActionListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowRunActionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowRunActionListResult { @@ -5817,7 +5817,7 @@ pub struct WorkflowRunActionRepetitionDefinitionCollection { pub value: Vec, } impl azure_core::Continuable for WorkflowRunActionRepetitionDefinitionCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5863,8 +5863,8 @@ pub struct WorkflowRunListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowRunListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowRunListResult { @@ -6169,8 +6169,8 @@ pub struct WorkflowTriggerHistoryListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowTriggerHistoryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowTriggerHistoryListResult { @@ -6257,8 +6257,8 @@ pub struct WorkflowTriggerListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowTriggerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowTriggerListResult { @@ -6443,8 +6443,8 @@ pub struct WorkflowVersionListResult { pub next_link: Option, } impl azure_core::Continuable for WorkflowVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkflowVersionListResult { diff --git a/services/mgmt/logic/src/package_2019_05/operations.rs b/services/mgmt/logic/src/package_2019_05/operations.rs index 5dec86ceba..207b70adde 100644 --- a/services/mgmt/logic/src/package_2019_05/operations.rs +++ b/services/mgmt/logic/src/package_2019_05/operations.rs @@ -396,9 +396,9 @@ pub mod workflows { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -417,6 +417,9 @@ pub mod workflows { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -488,9 +491,9 @@ pub mod workflows { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -509,6 +512,9 @@ pub mod workflows { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1299,9 +1305,9 @@ pub mod workflow_versions { &this.workflow_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1320,6 +1326,9 @@ pub mod workflow_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1557,9 +1566,9 @@ pub mod workflow_triggers { &this.workflow_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1578,6 +1587,9 @@ pub mod workflow_triggers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2114,9 +2126,9 @@ pub mod workflow_trigger_histories { &this.trigger_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2135,6 +2147,9 @@ pub mod workflow_trigger_histories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2360,9 +2375,9 @@ pub mod workflow_runs { &this.workflow_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2381,6 +2396,9 @@ pub mod workflow_runs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2618,9 +2636,9 @@ pub mod workflow_run_actions { &this.run_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2639,6 +2657,9 @@ pub mod workflow_run_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3069,9 +3090,9 @@ pub mod workflow_run_action_repetitions_request_histories { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Logic/workflows/{}/runs/{}/actions/{}/repetitions/{}/requestHistories" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workflow_name , & this . run_name , & this . action_name , & this . repetition_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3090,6 +3111,9 @@ pub mod workflow_run_action_repetitions_request_histories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3235,9 +3259,9 @@ pub mod workflow_run_action_request_histories { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Logic/workflows/{}/runs/{}/actions/{}/requestHistories" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workflow_name , & this . run_name , & this . action_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3256,6 +3280,9 @@ pub mod workflow_run_action_request_histories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3723,9 +3750,9 @@ pub mod integration_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3744,6 +3771,9 @@ pub mod integration_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3807,9 +3837,9 @@ pub mod integration_accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3828,6 +3858,9 @@ pub mod integration_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5067,9 +5100,9 @@ pub mod integration_account_schemas { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5088,6 +5121,9 @@ pub mod integration_account_schemas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5469,9 +5505,9 @@ pub mod integration_account_maps { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5490,6 +5526,9 @@ pub mod integration_account_maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5871,9 +5910,9 @@ pub mod integration_account_partners { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5892,6 +5931,9 @@ pub mod integration_account_partners { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6273,9 +6315,9 @@ pub mod integration_account_agreements { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6294,6 +6336,9 @@ pub mod integration_account_agreements { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6652,9 +6697,9 @@ pub mod integration_account_certificates { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6673,6 +6718,9 @@ pub mod integration_account_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6985,9 +7033,9 @@ pub mod integration_account_sessions { &this.integration_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7006,6 +7054,9 @@ pub mod integration_account_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7338,9 +7389,9 @@ pub mod integration_service_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7359,6 +7410,9 @@ pub mod integration_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7422,9 +7476,9 @@ pub mod integration_service_environments { &this.resource_group ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7443,6 +7497,9 @@ pub mod integration_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7795,9 +7852,9 @@ pub mod integration_service_environment_skus { &this.integration_service_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7816,6 +7873,9 @@ pub mod integration_service_environment_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8004,9 +8064,9 @@ pub mod integration_service_environment_managed_apis { &this.integration_service_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8025,6 +8085,9 @@ pub mod integration_service_environment_managed_apis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8254,9 +8317,9 @@ pub mod integration_service_environment_managed_api_operations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Logic/integrationServiceEnvironments/{}/managedApis/{}/apiOperations" , this . client . endpoint () , & this . subscription_id , & this . resource_group , & this . integration_service_environment_name , & this . api_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8275,6 +8338,9 @@ pub mod integration_service_environment_managed_api_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8332,9 +8398,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Logic/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8353,6 +8419,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/logz/src/package_2020_10_01/models.rs b/services/mgmt/logz/src/package_2020_10_01/models.rs index 0fd91d437f..d4489b23b3 100644 --- a/services/mgmt/logz/src/package_2020_10_01/models.rs +++ b/services/mgmt/logz/src/package_2020_10_01/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -199,8 +199,8 @@ pub struct LogzMonitorResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for LogzMonitorResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogzMonitorResourceListResponse { @@ -296,8 +296,8 @@ pub struct LogzSingleSignOnResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for LogzSingleSignOnResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogzSingleSignOnResourceListResponse { @@ -462,8 +462,8 @@ pub struct MonitoredResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoredResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoredResourceListResponse { @@ -548,8 +548,8 @@ pub struct MonitoringTagRulesListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoringTagRulesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringTagRulesListResponse { @@ -607,8 +607,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -856,8 +856,8 @@ pub struct UserRoleListResponse { pub next_link: Option, } impl azure_core::Continuable for UserRoleListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserRoleListResponse { @@ -982,8 +982,8 @@ pub struct VmResourcesListResponse { pub next_link: Option, } impl azure_core::Continuable for VmResourcesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VmResourcesListResponse { diff --git a/services/mgmt/logz/src/package_2020_10_01/operations.rs b/services/mgmt/logz/src/package_2020_10_01/operations.rs index 8691011e77..984dca1e62 100644 --- a/services/mgmt/logz/src/package_2020_10_01/operations.rs +++ b/services/mgmt/logz/src/package_2020_10_01/operations.rs @@ -230,9 +230,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -251,6 +251,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -305,9 +308,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -326,6 +329,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -381,9 +387,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -402,6 +408,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -706,9 +715,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -727,6 +736,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -790,9 +802,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Logz/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -811,6 +823,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -937,9 +952,9 @@ pub mod tag_rules { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -958,6 +973,9 @@ pub mod tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1243,9 +1261,9 @@ pub mod single_sign_on { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1264,6 +1282,9 @@ pub mod single_sign_on { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1600,9 +1621,9 @@ pub mod sub_account { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1621,6 +1642,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1930,9 +1954,9 @@ pub mod sub_account { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1951,6 +1975,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2071,9 +2098,9 @@ pub mod sub_account { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2092,6 +2119,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2156,9 +2186,9 @@ pub mod sub_account { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2177,6 +2207,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2314,9 +2347,9 @@ pub mod sub_account_tag_rules { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2335,6 +2368,9 @@ pub mod sub_account_tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2680,9 +2716,9 @@ pub mod monitor { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2701,6 +2737,9 @@ pub mod monitor { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2763,9 +2802,9 @@ pub mod monitor { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2784,6 +2823,9 @@ pub mod monitor { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/logz/src/package_2020_10_01_preview/models.rs b/services/mgmt/logz/src/package_2020_10_01_preview/models.rs index 0fd91d437f..d4489b23b3 100644 --- a/services/mgmt/logz/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/logz/src/package_2020_10_01_preview/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -199,8 +199,8 @@ pub struct LogzMonitorResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for LogzMonitorResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogzMonitorResourceListResponse { @@ -296,8 +296,8 @@ pub struct LogzSingleSignOnResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for LogzSingleSignOnResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogzSingleSignOnResourceListResponse { @@ -462,8 +462,8 @@ pub struct MonitoredResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoredResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoredResourceListResponse { @@ -548,8 +548,8 @@ pub struct MonitoringTagRulesListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoringTagRulesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringTagRulesListResponse { @@ -607,8 +607,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -856,8 +856,8 @@ pub struct UserRoleListResponse { pub next_link: Option, } impl azure_core::Continuable for UserRoleListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserRoleListResponse { @@ -982,8 +982,8 @@ pub struct VmResourcesListResponse { pub next_link: Option, } impl azure_core::Continuable for VmResourcesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VmResourcesListResponse { diff --git a/services/mgmt/logz/src/package_2020_10_01_preview/operations.rs b/services/mgmt/logz/src/package_2020_10_01_preview/operations.rs index ec1852c474..2a22382de6 100644 --- a/services/mgmt/logz/src/package_2020_10_01_preview/operations.rs +++ b/services/mgmt/logz/src/package_2020_10_01_preview/operations.rs @@ -230,9 +230,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -251,6 +251,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -305,9 +308,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -326,6 +329,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -381,9 +387,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -402,6 +408,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -706,9 +715,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -727,6 +736,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -790,9 +802,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Logz/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -811,6 +823,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -937,9 +952,9 @@ pub mod tag_rules { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -958,6 +973,9 @@ pub mod tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1243,9 +1261,9 @@ pub mod single_sign_on { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1264,6 +1282,9 @@ pub mod single_sign_on { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1600,9 +1621,9 @@ pub mod sub_account { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1621,6 +1642,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1930,9 +1954,9 @@ pub mod sub_account { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1951,6 +1975,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2071,9 +2098,9 @@ pub mod sub_account { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2092,6 +2119,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2156,9 +2186,9 @@ pub mod sub_account { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2177,6 +2207,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2314,9 +2347,9 @@ pub mod sub_account_tag_rules { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2335,6 +2368,9 @@ pub mod sub_account_tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2680,9 +2716,9 @@ pub mod monitor { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2701,6 +2737,9 @@ pub mod monitor { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2763,9 +2802,9 @@ pub mod monitor { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2784,6 +2823,9 @@ pub mod monitor { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/logz/src/package_2022_01_01_preview/models.rs b/services/mgmt/logz/src/package_2022_01_01_preview/models.rs index 7b53ce8437..48ba981bcc 100644 --- a/services/mgmt/logz/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/logz/src/package_2022_01_01_preview/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -266,8 +266,8 @@ pub struct LogzMonitorResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for LogzMonitorResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogzMonitorResourceListResponse { @@ -363,8 +363,8 @@ pub struct LogzSingleSignOnResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for LogzSingleSignOnResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogzSingleSignOnResourceListResponse { @@ -500,8 +500,8 @@ pub struct MetricsTagRulesListResponse { pub next_link: Option, } impl azure_core::Continuable for MetricsTagRulesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetricsTagRulesListResponse { @@ -608,8 +608,8 @@ pub struct MonitoredResourceListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoredResourceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoredResourceListResponse { @@ -694,8 +694,8 @@ pub struct MonitoringTagRulesListResponse { pub next_link: Option, } impl azure_core::Continuable for MonitoringTagRulesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitoringTagRulesListResponse { @@ -753,8 +753,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1002,8 +1002,8 @@ pub struct UserRoleListResponse { pub next_link: Option, } impl azure_core::Continuable for UserRoleListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserRoleListResponse { @@ -1128,8 +1128,8 @@ pub struct VmResourcesListResponse { pub next_link: Option, } impl azure_core::Continuable for VmResourcesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VmResourcesListResponse { diff --git a/services/mgmt/logz/src/package_2022_01_01_preview/operations.rs b/services/mgmt/logz/src/package_2022_01_01_preview/operations.rs index 842107b1d2..0130ebfefc 100644 --- a/services/mgmt/logz/src/package_2022_01_01_preview/operations.rs +++ b/services/mgmt/logz/src/package_2022_01_01_preview/operations.rs @@ -236,9 +236,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -257,6 +257,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -311,9 +314,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -332,6 +335,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -387,9 +393,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -408,6 +414,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -712,9 +721,9 @@ pub mod monitors { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -733,6 +742,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -796,9 +808,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Logz/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -817,6 +829,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -943,9 +958,9 @@ pub mod tag_rules { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -964,6 +979,9 @@ pub mod tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1249,9 +1267,9 @@ pub mod single_sign_on { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1270,6 +1288,9 @@ pub mod single_sign_on { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1606,9 +1627,9 @@ pub mod sub_account { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1627,6 +1648,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1936,9 +1960,9 @@ pub mod sub_account { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1957,6 +1981,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2077,9 +2104,9 @@ pub mod sub_account { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2098,6 +2125,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2162,9 +2192,9 @@ pub mod sub_account { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2183,6 +2213,9 @@ pub mod sub_account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2320,9 +2353,9 @@ pub mod sub_account_tag_rules { &this.sub_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2341,6 +2374,9 @@ pub mod sub_account_tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2665,9 +2701,9 @@ pub mod metrics_source { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2686,6 +2722,9 @@ pub mod metrics_source { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3072,9 +3111,9 @@ pub mod metrics_source_tag_rules { &this.metrics_source_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3093,6 +3132,9 @@ pub mod metrics_source_tag_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3438,9 +3480,9 @@ pub mod monitor { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3459,6 +3501,9 @@ pub mod monitor { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3521,9 +3566,9 @@ pub mod monitor { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3542,6 +3587,9 @@ pub mod monitor { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/models.rs b/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/models.rs index 4dfa0a5a85..d91da22bcb 100644 --- a/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/models.rs +++ b/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/models.rs @@ -12,7 +12,7 @@ pub struct ErrorDetails { pub error: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -92,8 +92,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -211,8 +211,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -418,8 +418,8 @@ pub struct PrivateLinkServicesForEdmUploadDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForEdmUploadDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForEdmUploadDescriptionListResult { @@ -455,8 +455,8 @@ pub struct PrivateLinkServicesForM365ComplianceCenterDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForM365ComplianceCenterDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForM365ComplianceCenterDescriptionListResult { @@ -492,8 +492,8 @@ pub struct PrivateLinkServicesForM365SecurityCenterDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForM365SecurityCenterDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForM365SecurityCenterDescriptionListResult { @@ -529,8 +529,8 @@ pub struct PrivateLinkServicesForMipPolicySyncDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForMipPolicySyncDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForMipPolicySyncDescriptionListResult { @@ -566,8 +566,8 @@ pub struct PrivateLinkServicesForO365ManagementActivityApiDescriptionListResult pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForO365ManagementActivityApiDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForO365ManagementActivityApiDescriptionListResult { @@ -603,8 +603,8 @@ pub struct PrivateLinkServicesForSccPowershellDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForSccPowershellDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForSccPowershellDescriptionListResult { diff --git a/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/operations.rs b/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/operations.rs index c79d32f69b..37ad82c21d 100644 --- a/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/operations.rs +++ b/services/mgmt/m365securityandcompliance/src/package_2021_03_25_preview/operations.rs @@ -163,9 +163,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -184,6 +184,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -536,9 +539,9 @@ pub mod private_link_services_for_edm_upload { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -557,6 +560,9 @@ pub mod private_link_services_for_edm_upload { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -608,9 +614,9 @@ pub mod private_link_services_for_edm_upload { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -629,6 +635,9 @@ pub mod private_link_services_for_edm_upload { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -816,9 +825,9 @@ pub mod private_endpoint_connections_for_edm { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForEDMUpload/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -837,6 +846,9 @@ pub mod private_endpoint_connections_for_edm { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1474,9 +1486,9 @@ pub mod private_link_services_for_m365_compliance_center { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1495,6 +1507,9 @@ pub mod private_link_services_for_m365_compliance_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1546,9 +1561,9 @@ pub mod private_link_services_for_m365_compliance_center { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1567,6 +1582,9 @@ pub mod private_link_services_for_m365_compliance_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1685,9 +1703,9 @@ pub mod private_endpoint_connections_comp { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1706,6 +1724,9 @@ pub mod private_endpoint_connections_comp { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2341,9 +2362,9 @@ pub mod private_link_services_for_m365_security_center { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2362,6 +2383,9 @@ pub mod private_link_services_for_m365_security_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2413,9 +2437,9 @@ pub mod private_link_services_for_m365_security_center { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2434,6 +2458,9 @@ pub mod private_link_services_for_m365_security_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2552,9 +2579,9 @@ pub mod private_endpoint_connections_sec { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2573,6 +2600,9 @@ pub mod private_endpoint_connections_sec { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3206,9 +3236,9 @@ pub mod private_link_services_for_o365_management_activity_api { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI" , this . client . endpoint () , & this . subscription_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3227,6 +3257,9 @@ pub mod private_link_services_for_o365_management_activity_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3278,9 +3311,9 @@ pub mod private_link_services_for_o365_management_activity_api { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3299,6 +3332,9 @@ pub mod private_link_services_for_o365_management_activity_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3417,9 +3453,9 @@ pub mod private_endpoint_connections_adt_api { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3438,6 +3474,9 @@ pub mod private_endpoint_connections_adt_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4066,9 +4105,9 @@ pub mod private_link_services_for_scc_powershell { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4087,6 +4126,9 @@ pub mod private_link_services_for_scc_powershell { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4138,9 +4180,9 @@ pub mod private_link_services_for_scc_powershell { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4159,6 +4201,9 @@ pub mod private_link_services_for_scc_powershell { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4277,9 +4322,9 @@ pub mod private_endpoint_connections_for_scc_powershell { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForSCCPowershell/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4298,6 +4343,9 @@ pub mod private_endpoint_connections_for_scc_powershell { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4926,9 +4974,9 @@ pub mod private_link_services_for_mip_policy_sync { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4947,6 +4995,9 @@ pub mod private_link_services_for_mip_policy_sync { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4998,9 +5049,9 @@ pub mod private_link_services_for_mip_policy_sync { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5019,6 +5070,9 @@ pub mod private_link_services_for_mip_policy_sync { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5137,9 +5191,9 @@ pub mod private_endpoint_connections_for_mip_policy_sync { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5158,6 +5212,9 @@ pub mod private_endpoint_connections_for_mip_policy_sync { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/models.rs b/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/models.rs index 9ab3c40e9d..8416778364 100644 --- a/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/models.rs +++ b/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/models.rs @@ -69,8 +69,8 @@ pub struct CommitmentAssociationListResult { pub value: Vec, } impl azure_core::Continuable for CommitmentAssociationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommitmentAssociationListResult { @@ -132,8 +132,8 @@ pub struct CommitmentPlanListResult { pub value: Vec, } impl azure_core::Continuable for CommitmentPlanListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommitmentPlanListResult { @@ -251,7 +251,7 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -322,8 +322,8 @@ pub struct PlanUsageHistoryListResult { pub value: Vec, } impl azure_core::Continuable for PlanUsageHistoryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PlanUsageHistoryListResult { @@ -481,7 +481,7 @@ pub struct SkuListResult { pub value: Vec, } impl azure_core::Continuable for SkuListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/operations.rs b/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/operations.rs index 73fb700426..7c7ccd1dfb 100644 --- a/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/operations.rs +++ b/services/mgmt/machinelearning/src/package_commitmentplans_2016_05_preview/operations.rs @@ -327,9 +327,9 @@ pub mod commitment_associations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearning/commitmentPlans/{}/commitmentAssociations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . commitment_plan_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -348,6 +348,9 @@ pub mod commitment_associations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -756,9 +759,9 @@ pub mod commitment_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -777,6 +780,9 @@ pub mod commitment_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -840,9 +846,9 @@ pub mod commitment_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -861,6 +867,9 @@ pub mod commitment_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -946,9 +955,9 @@ pub mod usage_history { &this.commitment_plan_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -967,6 +976,9 @@ pub mod usage_history { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/models.rs b/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/models.rs index 107106219e..3ecdc2100f 100644 --- a/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/models.rs +++ b/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/models.rs @@ -645,8 +645,8 @@ pub struct PaginatedWebServicesList { pub next_link: Option, } impl azure_core::Continuable for PaginatedWebServicesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaginatedWebServicesList { diff --git a/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/operations.rs b/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/operations.rs index 8379d0bfb0..689d2f2058 100644 --- a/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/operations.rs +++ b/services/mgmt/machinelearning/src/package_webservices_2016_05_preview/operations.rs @@ -474,9 +474,9 @@ pub mod web_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -495,6 +495,9 @@ pub mod web_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -556,9 +559,9 @@ pub mod web_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -577,6 +580,9 @@ pub mod web_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearning/src/package_webservices_2017_01/models.rs b/services/mgmt/machinelearning/src/package_webservices_2017_01/models.rs index 6736cf4574..67eea30f00 100644 --- a/services/mgmt/machinelearning/src/package_webservices_2017_01/models.rs +++ b/services/mgmt/machinelearning/src/package_webservices_2017_01/models.rs @@ -718,7 +718,7 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -793,8 +793,8 @@ pub struct PaginatedWebServicesList { pub next_link: Option, } impl azure_core::Continuable for PaginatedWebServicesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaginatedWebServicesList { diff --git a/services/mgmt/machinelearning/src/package_webservices_2017_01/operations.rs b/services/mgmt/machinelearning/src/package_webservices_2017_01/operations.rs index e3744f91ea..c284b24df6 100644 --- a/services/mgmt/machinelearning/src/package_webservices_2017_01/operations.rs +++ b/services/mgmt/machinelearning/src/package_webservices_2017_01/operations.rs @@ -619,9 +619,9 @@ pub mod web_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -640,6 +640,9 @@ pub mod web_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -701,9 +704,9 @@ pub mod web_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -722,6 +725,9 @@ pub mod web_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearning/src/package_workspaces_2016_04/models.rs b/services/mgmt/machinelearning/src/package_workspaces_2016_04/models.rs index 57abda2e38..a1d6e31278 100644 --- a/services/mgmt/machinelearning/src/package_workspaces_2016_04/models.rs +++ b/services/mgmt/machinelearning/src/package_workspaces_2016_04/models.rs @@ -13,7 +13,7 @@ pub struct ErrorResponse { pub message: String, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -69,7 +69,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -150,8 +150,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { diff --git a/services/mgmt/machinelearning/src/package_workspaces_2016_04/operations.rs b/services/mgmt/machinelearning/src/package_workspaces_2016_04/operations.rs index a3d8f31f4e..4a568b61f4 100644 --- a/services/mgmt/machinelearning/src/package_workspaces_2016_04/operations.rs +++ b/services/mgmt/machinelearning/src/package_workspaces_2016_04/operations.rs @@ -577,9 +577,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -598,6 +598,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -651,9 +654,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -672,6 +675,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearning/src/package_workspaces_2019_10/models.rs b/services/mgmt/machinelearning/src/package_workspaces_2019_10/models.rs index 133a7fe7df..245357555f 100644 --- a/services/mgmt/machinelearning/src/package_workspaces_2019_10/models.rs +++ b/services/mgmt/machinelearning/src/package_workspaces_2019_10/models.rs @@ -13,7 +13,7 @@ pub struct ErrorResponse { pub message: String, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -69,7 +69,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -169,8 +169,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { diff --git a/services/mgmt/machinelearning/src/package_workspaces_2019_10/operations.rs b/services/mgmt/machinelearning/src/package_workspaces_2019_10/operations.rs index bc977aada7..3b0d385292 100644 --- a/services/mgmt/machinelearning/src/package_workspaces_2019_10/operations.rs +++ b/services/mgmt/machinelearning/src/package_workspaces_2019_10/operations.rs @@ -577,9 +577,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -598,6 +598,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -651,9 +654,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -672,6 +675,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearningcompute/src/package_2017_06_preview/models.rs b/services/mgmt/machinelearningcompute/src/package_2017_06_preview/models.rs index 39a99bfcf4..2d06036c0f 100644 --- a/services/mgmt/machinelearningcompute/src/package_2017_06_preview/models.rs +++ b/services/mgmt/machinelearningcompute/src/package_2017_06_preview/models.rs @@ -813,8 +813,8 @@ pub struct PaginatedOperationalizationClustersList { pub next_link: Option, } impl azure_core::Continuable for PaginatedOperationalizationClustersList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaginatedOperationalizationClustersList { diff --git a/services/mgmt/machinelearningcompute/src/package_2017_06_preview/operations.rs b/services/mgmt/machinelearningcompute/src/package_2017_06_preview/operations.rs index bebe721a3a..545d9bf887 100644 --- a/services/mgmt/machinelearningcompute/src/package_2017_06_preview/operations.rs +++ b/services/mgmt/machinelearningcompute/src/package_2017_06_preview/operations.rs @@ -587,9 +587,9 @@ pub mod operationalization_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -608,6 +608,9 @@ pub mod operationalization_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -669,9 +672,9 @@ pub mod operationalization_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -690,6 +693,9 @@ pub mod operationalization_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearningcompute/src/package_2017_08_preview/models.rs b/services/mgmt/machinelearningcompute/src/package_2017_08_preview/models.rs index 9e1d8e4e42..d9c6e1b27f 100644 --- a/services/mgmt/machinelearningcompute/src/package_2017_08_preview/models.rs +++ b/services/mgmt/machinelearningcompute/src/package_2017_08_preview/models.rs @@ -759,8 +759,8 @@ pub struct PaginatedOperationalizationClustersList { pub next_link: Option, } impl azure_core::Continuable for PaginatedOperationalizationClustersList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaginatedOperationalizationClustersList { diff --git a/services/mgmt/machinelearningcompute/src/package_2017_08_preview/operations.rs b/services/mgmt/machinelearningcompute/src/package_2017_08_preview/operations.rs index c2230f7cd0..883528f1e1 100644 --- a/services/mgmt/machinelearningcompute/src/package_2017_08_preview/operations.rs +++ b/services/mgmt/machinelearningcompute/src/package_2017_08_preview/operations.rs @@ -582,9 +582,9 @@ pub mod operationalization_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -603,6 +603,9 @@ pub mod operationalization_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -664,9 +667,9 @@ pub mod operationalization_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -685,6 +688,9 @@ pub mod operationalization_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/models.rs b/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/models.rs index 6565300464..c607bc5a05 100644 --- a/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/models.rs +++ b/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/models.rs @@ -32,8 +32,8 @@ pub struct AccountListResult { pub next_link: Option, } impl azure_core::Continuable for AccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountListResult { @@ -148,7 +148,7 @@ pub struct ErrorResponse { pub message: String, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -204,7 +204,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -241,8 +241,8 @@ pub struct ProjectListResult { pub next_link: Option, } impl azure_core::Continuable for ProjectListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProjectListResult { @@ -412,8 +412,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { diff --git a/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/operations.rs b/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/operations.rs index 1ea6819d52..7d943d0331 100644 --- a/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/operations.rs +++ b/services/mgmt/machinelearningexperimentation/src/package_2017_05_preview/operations.rs @@ -464,9 +464,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -485,6 +485,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -538,9 +541,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -559,6 +562,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -895,9 +901,9 @@ pub mod workspaces { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningExperimentation/accounts/{}/workspaces" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -916,6 +922,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1267,9 +1276,9 @@ pub mod projects { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningExperimentation/accounts/{}/workspaces/{}/projects" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1288,6 +1297,9 @@ pub mod projects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs b/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs index ee38c14789..a8560d6461 100644 --- a/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs @@ -307,8 +307,8 @@ pub struct AmlComputeNodesInformation { pub next_link: Option, } impl azure_core::Continuable for AmlComputeNodesInformation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AmlComputeNodesInformation { @@ -1641,7 +1641,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2115,8 +2115,8 @@ pub struct ListAmlUserFeatureResult { pub next_link: Option, } impl azure_core::Continuable for ListAmlUserFeatureResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListAmlUserFeatureResult { @@ -2157,8 +2157,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -2195,8 +2195,8 @@ pub struct ListWorkspaceQuotas { pub next_link: Option, } impl azure_core::Continuable for ListWorkspaceQuotas { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListWorkspaceQuotas { @@ -2329,7 +2329,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2349,8 +2349,8 @@ pub struct PaginatedComputeResourcesList { pub next_link: Option, } impl azure_core::Continuable for PaginatedComputeResourcesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaginatedComputeResourcesList { @@ -2369,7 +2369,7 @@ pub struct PaginatedWorkspaceConnectionsList { pub next_link: Option, } impl azure_core::Continuable for PaginatedWorkspaceConnectionsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2454,7 +2454,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3117,8 +3117,8 @@ pub struct SkuListResult { pub next_link: Option, } impl azure_core::Continuable for SkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuListResult { @@ -3763,8 +3763,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { diff --git a/services/mgmt/machinelearningservices/src/package_2021_07_01/operations.rs b/services/mgmt/machinelearningservices/src/package_2021_07_01/operations.rs index 5fda3b0d92..25eb7f7f51 100644 --- a/services/mgmt/machinelearningservices/src/package_2021_07_01/operations.rs +++ b/services/mgmt/machinelearningservices/src/package_2021_07_01/operations.rs @@ -599,9 +599,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -620,6 +620,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -857,9 +860,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -878,6 +881,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1189,9 +1195,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1210,6 +1216,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1406,9 +1415,9 @@ pub mod quotas { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1427,6 +1436,9 @@ pub mod quotas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1650,9 +1662,9 @@ pub mod compute { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1671,6 +1683,9 @@ pub mod compute { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1964,9 +1979,9 @@ pub mod compute { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/computes/{}/listNodes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . compute_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1985,6 +2000,9 @@ pub mod compute { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2848,9 +2866,9 @@ pub mod workspace_features { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2869,6 +2887,9 @@ pub mod workspace_features { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2934,9 +2955,9 @@ pub mod workspace_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2955,6 +2976,9 @@ pub mod workspace_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/models.rs b/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/models.rs index 9d9435c816..4be6212fb6 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/models.rs @@ -307,8 +307,8 @@ pub struct AmlComputeNodesInformation { pub next_link: Option, } impl azure_core::Continuable for AmlComputeNodesInformation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AmlComputeNodesInformation { @@ -1653,7 +1653,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2127,8 +2127,8 @@ pub struct ListAmlUserFeatureResult { pub next_link: Option, } impl azure_core::Continuable for ListAmlUserFeatureResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListAmlUserFeatureResult { @@ -2169,8 +2169,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -2207,8 +2207,8 @@ pub struct ListWorkspaceQuotas { pub next_link: Option, } impl azure_core::Continuable for ListWorkspaceQuotas { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListWorkspaceQuotas { @@ -2341,7 +2341,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2361,8 +2361,8 @@ pub struct PaginatedComputeResourcesList { pub next_link: Option, } impl azure_core::Continuable for PaginatedComputeResourcesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaginatedComputeResourcesList { @@ -2381,7 +2381,7 @@ pub struct PaginatedWorkspaceConnectionsList { pub next_link: Option, } impl azure_core::Continuable for PaginatedWorkspaceConnectionsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2466,7 +2466,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3129,8 +3129,8 @@ pub struct SkuListResult { pub next_link: Option, } impl azure_core::Continuable for SkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuListResult { @@ -3775,8 +3775,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { diff --git a/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/operations.rs b/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/operations.rs index 2d1a3472fd..390996d85f 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/operations.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_01_01_preview/operations.rs @@ -599,9 +599,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -620,6 +620,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -857,9 +860,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -878,6 +881,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1189,9 +1195,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1210,6 +1216,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1406,9 +1415,9 @@ pub mod quotas { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1427,6 +1436,9 @@ pub mod quotas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1650,9 +1662,9 @@ pub mod compute { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1671,6 +1683,9 @@ pub mod compute { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1964,9 +1979,9 @@ pub mod compute { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/computes/{}/listNodes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . compute_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1985,6 +2000,9 @@ pub mod compute { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2848,9 +2866,9 @@ pub mod workspace_features { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2869,6 +2887,9 @@ pub mod workspace_features { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2934,9 +2955,9 @@ pub mod workspace_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2955,6 +2976,9 @@ pub mod workspace_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/models.rs b/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/models.rs index 5854eed7f1..72ded5c61c 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/models.rs @@ -355,8 +355,8 @@ pub struct AmlComputeNodesInformation { pub next_link: Option, } impl azure_core::Continuable for AmlComputeNodesInformation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AmlComputeNodesInformation { @@ -649,7 +649,7 @@ pub struct AmlOperationListResult { pub value: Vec, } impl azure_core::Continuable for AmlOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1128,8 +1128,8 @@ pub struct BatchDeploymentTrackedResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for BatchDeploymentTrackedResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BatchDeploymentTrackedResourceArmPaginatedResult { @@ -1208,8 +1208,8 @@ pub struct BatchEndpointTrackedResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for BatchEndpointTrackedResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BatchEndpointTrackedResourceArmPaginatedResult { @@ -1667,8 +1667,8 @@ pub struct CodeContainerResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for CodeContainerResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CodeContainerResourceArmPaginatedResult { @@ -1717,8 +1717,8 @@ pub struct CodeVersionResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for CodeVersionResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CodeVersionResourceArmPaginatedResult { @@ -1841,8 +1841,8 @@ pub struct ComponentContainerResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for ComponentContainerResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComponentContainerResourceArmPaginatedResult { @@ -1891,8 +1891,8 @@ pub struct ComponentVersionResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for ComponentVersionResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComponentVersionResourceArmPaginatedResult { @@ -3409,8 +3409,8 @@ pub struct DataContainerResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for DataContainerResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataContainerResourceArmPaginatedResult { @@ -3600,8 +3600,8 @@ pub struct DataVersionBaseResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for DataVersionBaseResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataVersionBaseResourceArmPaginatedResult { @@ -3742,8 +3742,8 @@ pub struct DatastoreResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for DatastoreResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatastoreResourceArmPaginatedResult { @@ -4517,8 +4517,8 @@ pub struct EnvironmentContainerResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for EnvironmentContainerResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnvironmentContainerResourceArmPaginatedResult { @@ -4618,8 +4618,8 @@ pub struct EnvironmentVersionResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for EnvironmentVersionResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnvironmentVersionResourceArmPaginatedResult { @@ -4674,7 +4674,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6270,8 +6270,8 @@ pub struct JobBaseResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for JobBaseResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobBaseResourceArmPaginatedResult { @@ -6854,8 +6854,8 @@ pub struct ListAmlUserFeatureResult { pub next_link: Option, } impl azure_core::Continuable for ListAmlUserFeatureResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListAmlUserFeatureResult { @@ -6896,8 +6896,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -6972,8 +6972,8 @@ pub struct ListWorkspaceQuotas { pub next_link: Option, } impl azure_core::Continuable for ListWorkspaceQuotas { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListWorkspaceQuotas { @@ -7269,8 +7269,8 @@ pub struct ModelContainerResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for ModelContainerResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModelContainerResourceArmPaginatedResult { @@ -7411,8 +7411,8 @@ pub struct ModelVersionResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for ModelVersionResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModelVersionResourceArmPaginatedResult { @@ -7791,8 +7791,8 @@ pub struct OnlineDeploymentTrackedResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for OnlineDeploymentTrackedResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OnlineDeploymentTrackedResourceArmPaginatedResult { @@ -7871,8 +7871,8 @@ pub struct OnlineEndpointTrackedResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for OnlineEndpointTrackedResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OnlineEndpointTrackedResourceArmPaginatedResult { @@ -8055,8 +8055,8 @@ pub struct PaginatedComputeResourcesList { pub next_link: Option, } impl azure_core::Continuable for PaginatedComputeResourcesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaginatedComputeResourcesList { @@ -8075,7 +8075,7 @@ pub struct PaginatedWorkspaceConnectionsList { pub next_link: Option, } impl azure_core::Continuable for PaginatedWorkspaceConnectionsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8556,7 +8556,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10053,8 +10053,8 @@ pub struct SkuResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for SkuResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuResourceArmPaginatedResult { @@ -11766,8 +11766,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { diff --git a/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/operations.rs b/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/operations.rs index e52b30ee4e..ba85196b70 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/operations.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_02_01_preview/operations.rs @@ -650,9 +650,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -671,6 +671,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -908,9 +911,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -929,6 +932,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1240,9 +1246,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1261,6 +1267,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1457,9 +1466,9 @@ pub mod quotas { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1478,6 +1487,9 @@ pub mod quotas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1701,9 +1713,9 @@ pub mod compute { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1722,6 +1734,9 @@ pub mod compute { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2017,9 +2032,9 @@ pub mod compute { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/computes/{}/listNodes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . compute_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2038,6 +2053,9 @@ pub mod compute { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2992,9 +3010,9 @@ pub mod batch_endpoints { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/batchEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3013,6 +3031,9 @@ pub mod batch_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3447,9 +3468,9 @@ pub mod batch_deployments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/batchEndpoints/{}/deployments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . endpoint_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3468,6 +3489,9 @@ pub mod batch_deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3827,9 +3851,9 @@ pub mod code_containers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3848,6 +3872,9 @@ pub mod code_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4173,9 +4200,9 @@ pub mod code_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/codes/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4194,6 +4221,9 @@ pub mod code_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4498,9 +4528,9 @@ pub mod component_containers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4519,6 +4549,9 @@ pub mod component_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4853,9 +4886,9 @@ pub mod component_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/components/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4874,6 +4907,9 @@ pub mod component_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5181,9 +5217,9 @@ pub mod data_containers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5202,6 +5238,9 @@ pub mod data_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5542,9 +5581,9 @@ pub mod data_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/data/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5563,6 +5602,9 @@ pub mod data_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5920,9 +5962,9 @@ pub mod datastores { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5941,6 +5983,9 @@ pub mod datastores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6330,9 +6375,9 @@ pub mod environment_containers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6351,6 +6396,9 @@ pub mod environment_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6664,9 +6712,9 @@ pub mod environment_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/environments/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6685,6 +6733,9 @@ pub mod environment_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7032,9 +7083,9 @@ pub mod jobs { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7053,6 +7104,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7437,9 +7491,9 @@ pub mod model_containers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7458,6 +7512,9 @@ pub mod model_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7831,9 +7888,9 @@ pub mod model_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/models/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7852,6 +7909,9 @@ pub mod model_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8269,9 +8329,9 @@ pub mod online_endpoints { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/onlineEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8290,6 +8350,9 @@ pub mod online_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8878,9 +8941,9 @@ pub mod online_deployments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/onlineEndpoints/{}/deployments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . endpoint_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8899,6 +8962,9 @@ pub mod online_deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9238,9 +9304,9 @@ pub mod online_deployments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/onlineEndpoints/{}/deployments/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . endpoint_name , & this . deployment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9259,6 +9325,9 @@ pub mod online_deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9341,9 +9410,9 @@ pub mod workspace_features { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9362,6 +9431,9 @@ pub mod workspace_features { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs b/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs index ba4d24be70..1a4d33f3e8 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs @@ -355,8 +355,8 @@ pub struct AmlComputeNodesInformation { pub next_link: Option, } impl azure_core::Continuable for AmlComputeNodesInformation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AmlComputeNodesInformation { @@ -649,7 +649,7 @@ pub struct AmlOperationListResult { pub value: Vec, } impl azure_core::Continuable for AmlOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1023,8 +1023,8 @@ pub struct BatchDeploymentTrackedResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for BatchDeploymentTrackedResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BatchDeploymentTrackedResourceArmPaginatedResult { @@ -1103,8 +1103,8 @@ pub struct BatchEndpointTrackedResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for BatchEndpointTrackedResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BatchEndpointTrackedResourceArmPaginatedResult { @@ -1370,8 +1370,8 @@ pub struct CodeContainerResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for CodeContainerResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CodeContainerResourceArmPaginatedResult { @@ -1420,8 +1420,8 @@ pub struct CodeVersionResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for CodeVersionResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CodeVersionResourceArmPaginatedResult { @@ -1529,8 +1529,8 @@ pub struct ComponentContainerResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for ComponentContainerResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComponentContainerResourceArmPaginatedResult { @@ -1579,8 +1579,8 @@ pub struct ComponentVersionResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for ComponentVersionResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComponentVersionResourceArmPaginatedResult { @@ -3095,8 +3095,8 @@ pub struct DataContainerResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for DataContainerResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataContainerResourceArmPaginatedResult { @@ -3266,8 +3266,8 @@ pub struct DataVersionBaseResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for DataVersionBaseResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataVersionBaseResourceArmPaginatedResult { @@ -3408,8 +3408,8 @@ pub struct DatastoreResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for DatastoreResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatastoreResourceArmPaginatedResult { @@ -4144,8 +4144,8 @@ pub struct EnvironmentContainerResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for EnvironmentContainerResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnvironmentContainerResourceArmPaginatedResult { @@ -4245,8 +4245,8 @@ pub struct EnvironmentVersionResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for EnvironmentVersionResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnvironmentVersionResourceArmPaginatedResult { @@ -4301,7 +4301,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4921,8 +4921,8 @@ pub struct JobBaseResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for JobBaseResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobBaseResourceArmPaginatedResult { @@ -5375,8 +5375,8 @@ pub struct ListAmlUserFeatureResult { pub next_link: Option, } impl azure_core::Continuable for ListAmlUserFeatureResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListAmlUserFeatureResult { @@ -5417,8 +5417,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -5493,8 +5493,8 @@ pub struct ListWorkspaceQuotas { pub next_link: Option, } impl azure_core::Continuable for ListWorkspaceQuotas { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListWorkspaceQuotas { @@ -5760,8 +5760,8 @@ pub struct ModelContainerResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for ModelContainerResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModelContainerResourceArmPaginatedResult { @@ -5819,8 +5819,8 @@ pub struct ModelVersionResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for ModelVersionResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModelVersionResourceArmPaginatedResult { @@ -6049,8 +6049,8 @@ pub struct OnlineDeploymentTrackedResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for OnlineDeploymentTrackedResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OnlineDeploymentTrackedResourceArmPaginatedResult { @@ -6121,8 +6121,8 @@ pub struct OnlineEndpointTrackedResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for OnlineEndpointTrackedResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OnlineEndpointTrackedResourceArmPaginatedResult { @@ -6320,8 +6320,8 @@ pub struct PaginatedComputeResourcesList { pub next_link: Option, } impl azure_core::Continuable for PaginatedComputeResourcesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaginatedComputeResourcesList { @@ -6544,7 +6544,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7694,8 +7694,8 @@ pub struct SkuResourceArmPaginatedResult { pub value: Vec, } impl azure_core::Continuable for SkuResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuResourceArmPaginatedResult { @@ -8799,8 +8799,8 @@ pub struct WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { @@ -8841,8 +8841,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { diff --git a/services/mgmt/machinelearningservices/src/package_2022_05_01/operations.rs b/services/mgmt/machinelearningservices/src/package_2022_05_01/operations.rs index 3941fe54e3..59e944c409 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_05_01/operations.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_05_01/operations.rs @@ -650,9 +650,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -671,6 +671,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -908,9 +911,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -929,6 +932,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1240,9 +1246,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1261,6 +1267,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1457,9 +1466,9 @@ pub mod quotas { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1478,6 +1487,9 @@ pub mod quotas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1701,9 +1713,9 @@ pub mod compute { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1722,6 +1734,9 @@ pub mod compute { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2017,9 +2032,9 @@ pub mod compute { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/computes/{}/listNodes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . compute_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2038,6 +2053,9 @@ pub mod compute { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2823,9 +2841,9 @@ pub mod workspace_connections { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2844,6 +2862,9 @@ pub mod workspace_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3018,9 +3039,9 @@ pub mod batch_endpoints { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/batchEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3039,6 +3060,9 @@ pub mod batch_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3473,9 +3497,9 @@ pub mod batch_deployments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/batchEndpoints/{}/deployments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . endpoint_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3494,6 +3518,9 @@ pub mod batch_deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3853,9 +3880,9 @@ pub mod code_containers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3874,6 +3901,9 @@ pub mod code_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4199,9 +4229,9 @@ pub mod code_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/codes/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4220,6 +4250,9 @@ pub mod code_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4524,9 +4557,9 @@ pub mod component_containers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4545,6 +4578,9 @@ pub mod component_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4879,9 +4915,9 @@ pub mod component_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/components/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4900,6 +4936,9 @@ pub mod component_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5207,9 +5246,9 @@ pub mod data_containers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5228,6 +5267,9 @@ pub mod data_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5568,9 +5610,9 @@ pub mod data_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/data/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5589,6 +5631,9 @@ pub mod data_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5946,9 +5991,9 @@ pub mod datastores { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5967,6 +6012,9 @@ pub mod datastores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6356,9 +6404,9 @@ pub mod environment_containers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6377,6 +6425,9 @@ pub mod environment_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6690,9 +6741,9 @@ pub mod environment_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/environments/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6711,6 +6762,9 @@ pub mod environment_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7046,9 +7100,9 @@ pub mod jobs { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7067,6 +7121,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7451,9 +7508,9 @@ pub mod model_containers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7472,6 +7529,9 @@ pub mod model_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7845,9 +7905,9 @@ pub mod model_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/models/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7866,6 +7926,9 @@ pub mod model_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8283,9 +8346,9 @@ pub mod online_endpoints { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/onlineEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8304,6 +8367,9 @@ pub mod online_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8892,9 +8958,9 @@ pub mod online_deployments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/onlineEndpoints/{}/deployments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . endpoint_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8913,6 +8979,9 @@ pub mod online_deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9252,9 +9321,9 @@ pub mod online_deployments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/onlineEndpoints/{}/deployments/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . endpoint_name , & this . deployment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9273,6 +9342,9 @@ pub mod online_deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9355,9 +9427,9 @@ pub mod workspace_features { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9376,6 +9448,9 @@ pub mod workspace_features { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/machinelearningservices/src/package_preview_2020_05/models.rs b/services/mgmt/machinelearningservices/src/package_preview_2020_05/models.rs index c3d8470a50..bcee74ff36 100644 --- a/services/mgmt/machinelearningservices/src/package_preview_2020_05/models.rs +++ b/services/mgmt/machinelearningservices/src/package_preview_2020_05/models.rs @@ -1905,8 +1905,8 @@ pub struct ListAmlUserFeatureResult { pub next_link: Option, } impl azure_core::Continuable for ListAmlUserFeatureResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListAmlUserFeatureResult { @@ -1925,8 +1925,8 @@ pub struct ListUsagesResult { pub next_link: Option, } impl azure_core::Continuable for ListUsagesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListUsagesResult { @@ -1961,8 +1961,8 @@ pub struct ListWorkspaceQuotas { pub next_link: Option, } impl azure_core::Continuable for ListWorkspaceQuotas { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListWorkspaceQuotas { @@ -2002,7 +2002,7 @@ pub struct MachineLearningServiceError { pub error: Option, } impl azure_core::Continuable for MachineLearningServiceError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2326,7 +2326,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2346,8 +2346,8 @@ pub struct PaginatedComputeResourcesList { pub next_link: Option, } impl azure_core::Continuable for PaginatedComputeResourcesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaginatedComputeResourcesList { @@ -2366,8 +2366,8 @@ pub struct PaginatedServiceList { pub next_link: Option, } impl azure_core::Continuable for PaginatedServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PaginatedServiceList { @@ -3268,8 +3268,8 @@ pub struct SkuListResult { pub next_link: Option, } impl azure_core::Continuable for SkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuListResult { @@ -3773,8 +3773,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { diff --git a/services/mgmt/machinelearningservices/src/package_preview_2020_05/operations.rs b/services/mgmt/machinelearningservices/src/package_preview_2020_05/operations.rs index 95c7104e54..9af7e871d5 100644 --- a/services/mgmt/machinelearningservices/src/package_preview_2020_05/operations.rs +++ b/services/mgmt/machinelearningservices/src/package_preview_2020_05/operations.rs @@ -524,9 +524,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -545,6 +545,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -708,9 +711,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -729,6 +732,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -808,9 +814,9 @@ pub mod workspace_features { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -829,6 +835,9 @@ pub mod workspace_features { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -897,9 +906,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -918,6 +927,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1114,9 +1126,9 @@ pub mod quotas { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1135,6 +1147,9 @@ pub mod quotas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1313,9 +1328,9 @@ pub mod machine_learning_compute { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1334,6 +1349,9 @@ pub mod machine_learning_compute { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1733,9 +1751,9 @@ pub mod list_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1754,6 +1772,9 @@ pub mod list_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2449,9 +2470,9 @@ pub mod machine_learning_service { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2470,6 +2491,9 @@ pub mod machine_learning_service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/maintenance/src/package_2020_04/models.rs b/services/mgmt/maintenance/src/package_2020_04/models.rs index f42bf31331..b0db3ce4b5 100644 --- a/services/mgmt/maintenance/src/package_2020_04/models.rs +++ b/services/mgmt/maintenance/src/package_2020_04/models.rs @@ -137,7 +137,7 @@ pub struct ListConfigurationAssignmentsResult { pub value: Vec, } impl azure_core::Continuable for ListConfigurationAssignmentsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -154,7 +154,7 @@ pub struct ListMaintenanceConfigurationsResult { pub value: Vec, } impl azure_core::Continuable for ListMaintenanceConfigurationsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -171,7 +171,7 @@ pub struct ListUpdatesResult { pub value: Vec, } impl azure_core::Continuable for ListUpdatesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -270,7 +270,7 @@ pub struct MaintenanceError { pub error: Option, } impl azure_core::Continuable for MaintenanceError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -329,7 +329,7 @@ pub struct OperationsListResult { pub value: Vec, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/maintenance/src/package_2021_05/models.rs b/services/mgmt/maintenance/src/package_2021_05/models.rs index 586649e5e6..71f14af957 100644 --- a/services/mgmt/maintenance/src/package_2021_05/models.rs +++ b/services/mgmt/maintenance/src/package_2021_05/models.rs @@ -137,7 +137,7 @@ pub struct ListApplyUpdate { pub value: Vec, } impl azure_core::Continuable for ListApplyUpdate { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -154,7 +154,7 @@ pub struct ListConfigurationAssignmentsResult { pub value: Vec, } impl azure_core::Continuable for ListConfigurationAssignmentsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -171,7 +171,7 @@ pub struct ListMaintenanceConfigurationsResult { pub value: Vec, } impl azure_core::Continuable for ListMaintenanceConfigurationsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -188,7 +188,7 @@ pub struct ListUpdatesResult { pub value: Vec, } impl azure_core::Continuable for ListUpdatesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -337,7 +337,7 @@ pub struct MaintenanceError { pub error: Option, } impl azure_core::Continuable for MaintenanceError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -423,7 +423,7 @@ pub struct OperationsListResult { pub value: Vec, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/maintenance/src/package_preview_2020_07/models.rs b/services/mgmt/maintenance/src/package_preview_2020_07/models.rs index 76dd01ec14..56fb2d8864 100644 --- a/services/mgmt/maintenance/src/package_preview_2020_07/models.rs +++ b/services/mgmt/maintenance/src/package_preview_2020_07/models.rs @@ -137,7 +137,7 @@ pub struct ListConfigurationAssignmentsResult { pub value: Vec, } impl azure_core::Continuable for ListConfigurationAssignmentsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -154,7 +154,7 @@ pub struct ListMaintenanceConfigurationsResult { pub value: Vec, } impl azure_core::Continuable for ListMaintenanceConfigurationsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -171,7 +171,7 @@ pub struct ListUpdatesResult { pub value: Vec, } impl azure_core::Continuable for ListUpdatesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -326,7 +326,7 @@ pub struct MaintenanceError { pub error: Option, } impl azure_core::Continuable for MaintenanceError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -409,7 +409,7 @@ pub struct OperationsListResult { pub value: Vec, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/maintenance/src/package_preview_2021_04/models.rs b/services/mgmt/maintenance/src/package_preview_2021_04/models.rs index 994d76ab70..722f63c688 100644 --- a/services/mgmt/maintenance/src/package_preview_2021_04/models.rs +++ b/services/mgmt/maintenance/src/package_preview_2021_04/models.rs @@ -239,7 +239,7 @@ pub struct ListApplyUpdate { pub value: Vec, } impl azure_core::Continuable for ListApplyUpdate { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -256,7 +256,7 @@ pub struct ListConfigurationAssignmentsResult { pub value: Vec, } impl azure_core::Continuable for ListConfigurationAssignmentsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -273,7 +273,7 @@ pub struct ListMaintenanceConfigurationsResult { pub value: Vec, } impl azure_core::Continuable for ListMaintenanceConfigurationsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -290,7 +290,7 @@ pub struct ListUpdatesResult { pub value: Vec, } impl azure_core::Continuable for ListUpdatesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -442,7 +442,7 @@ pub struct MaintenanceError { pub error: Option, } impl azure_core::Continuable for MaintenanceError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -528,7 +528,7 @@ pub struct OperationsListResult { pub value: Vec, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/maintenance/src/package_preview_2021_09/models.rs b/services/mgmt/maintenance/src/package_preview_2021_09/models.rs index ac95e36d92..5e4c6be932 100644 --- a/services/mgmt/maintenance/src/package_preview_2021_09/models.rs +++ b/services/mgmt/maintenance/src/package_preview_2021_09/models.rs @@ -244,7 +244,7 @@ pub struct ListApplyUpdate { pub value: Vec, } impl azure_core::Continuable for ListApplyUpdate { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -261,7 +261,7 @@ pub struct ListConfigurationAssignmentsResult { pub value: Vec, } impl azure_core::Continuable for ListConfigurationAssignmentsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -278,7 +278,7 @@ pub struct ListMaintenanceConfigurationsResult { pub value: Vec, } impl azure_core::Continuable for ListMaintenanceConfigurationsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -295,7 +295,7 @@ pub struct ListUpdatesResult { pub value: Vec, } impl azure_core::Continuable for ListUpdatesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -447,7 +447,7 @@ pub struct MaintenanceError { pub error: Option, } impl azure_core::Continuable for MaintenanceError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -533,7 +533,7 @@ pub struct OperationsListResult { pub value: Vec, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/managednetwork/src/package_2019_06_01_preview/models.rs b/services/mgmt/managednetwork/src/package_2019_06_01_preview/models.rs index 9b8b7c2de0..51765c99b7 100644 --- a/services/mgmt/managednetwork/src/package_2019_06_01_preview/models.rs +++ b/services/mgmt/managednetwork/src/package_2019_06_01_preview/models.rs @@ -30,7 +30,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -143,8 +143,8 @@ pub struct ManagedNetworkGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedNetworkGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedNetworkGroupListResult { @@ -186,8 +186,8 @@ pub struct ManagedNetworkListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedNetworkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedNetworkListResult { @@ -220,8 +220,8 @@ pub struct ManagedNetworkPeeringPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedNetworkPeeringPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedNetworkPeeringPolicyListResult { @@ -391,8 +391,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -549,8 +549,8 @@ pub struct ScopeAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for ScopeAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScopeAssignmentListResult { diff --git a/services/mgmt/managednetwork/src/package_2019_06_01_preview/operations.rs b/services/mgmt/managednetwork/src/package_2019_06_01_preview/operations.rs index 3402779c79..24e0009de6 100644 --- a/services/mgmt/managednetwork/src/package_2019_06_01_preview/operations.rs +++ b/services/mgmt/managednetwork/src/package_2019_06_01_preview/operations.rs @@ -438,9 +438,9 @@ pub mod managed_networks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -459,6 +459,9 @@ pub mod managed_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -528,9 +531,9 @@ pub mod managed_networks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -549,6 +552,9 @@ pub mod managed_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -804,9 +810,9 @@ pub mod scope_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -825,6 +831,9 @@ pub mod scope_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1111,9 +1120,9 @@ pub mod managed_network_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ManagedNetwork/managedNetworks/{}/managedNetworkGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_network_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1132,6 +1141,9 @@ pub mod managed_network_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1424,9 +1436,9 @@ pub mod managed_network_peering_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ManagedNetwork/managedNetworks/{}/managedNetworkPeeringPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_network_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1445,6 +1457,9 @@ pub mod managed_network_peering_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1509,9 +1524,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ManagedNetwork/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1530,6 +1545,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/managedservices/src/package_2019_04_preview/models.rs b/services/mgmt/managedservices/src/package_2019_04_preview/models.rs index 3806f735de..13354ca3c6 100644 --- a/services/mgmt/managedservices/src/package_2019_04_preview/models.rs +++ b/services/mgmt/managedservices/src/package_2019_04_preview/models.rs @@ -58,7 +58,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -172,8 +172,8 @@ pub struct RegistrationAssignmentList { pub next_link: Option, } impl azure_core::Continuable for RegistrationAssignmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationAssignmentList { @@ -418,8 +418,8 @@ pub struct RegistrationDefinitionList { pub next_link: Option, } impl azure_core::Continuable for RegistrationDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationDefinitionList { diff --git a/services/mgmt/managedservices/src/package_2019_04_preview/operations.rs b/services/mgmt/managedservices/src/package_2019_04_preview/operations.rs index 7c930b89d3..f0e82a18f9 100644 --- a/services/mgmt/managedservices/src/package_2019_04_preview/operations.rs +++ b/services/mgmt/managedservices/src/package_2019_04_preview/operations.rs @@ -304,9 +304,9 @@ pub mod registration_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -325,6 +325,9 @@ pub mod registration_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -600,9 +603,9 @@ pub mod registration_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -621,6 +624,9 @@ pub mod registration_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/managedservices/src/package_2019_06/models.rs b/services/mgmt/managedservices/src/package_2019_06/models.rs index 3806f735de..13354ca3c6 100644 --- a/services/mgmt/managedservices/src/package_2019_06/models.rs +++ b/services/mgmt/managedservices/src/package_2019_06/models.rs @@ -58,7 +58,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -172,8 +172,8 @@ pub struct RegistrationAssignmentList { pub next_link: Option, } impl azure_core::Continuable for RegistrationAssignmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationAssignmentList { @@ -418,8 +418,8 @@ pub struct RegistrationDefinitionList { pub next_link: Option, } impl azure_core::Continuable for RegistrationDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationDefinitionList { diff --git a/services/mgmt/managedservices/src/package_2019_06/operations.rs b/services/mgmt/managedservices/src/package_2019_06/operations.rs index 03fe6e911a..6ebc1e1b2e 100644 --- a/services/mgmt/managedservices/src/package_2019_06/operations.rs +++ b/services/mgmt/managedservices/src/package_2019_06/operations.rs @@ -304,9 +304,9 @@ pub mod registration_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -325,6 +325,9 @@ pub mod registration_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -600,9 +603,9 @@ pub mod registration_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -621,6 +624,9 @@ pub mod registration_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/managedservices/src/package_2019_09/models.rs b/services/mgmt/managedservices/src/package_2019_09/models.rs index ce5412f198..6c44260a0a 100644 --- a/services/mgmt/managedservices/src/package_2019_09/models.rs +++ b/services/mgmt/managedservices/src/package_2019_09/models.rs @@ -58,7 +58,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -101,8 +101,8 @@ pub struct MarketplaceRegistrationDefinitionList { pub next_link: Option, } impl azure_core::Continuable for MarketplaceRegistrationDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MarketplaceRegistrationDefinitionList { @@ -244,8 +244,8 @@ pub struct RegistrationAssignmentList { pub next_link: Option, } impl azure_core::Continuable for RegistrationAssignmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationAssignmentList { @@ -490,8 +490,8 @@ pub struct RegistrationDefinitionList { pub next_link: Option, } impl azure_core::Continuable for RegistrationDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationDefinitionList { diff --git a/services/mgmt/managedservices/src/package_2019_09/operations.rs b/services/mgmt/managedservices/src/package_2019_09/operations.rs index 9c542ecc02..fcd3c1f0e2 100644 --- a/services/mgmt/managedservices/src/package_2019_09/operations.rs +++ b/services/mgmt/managedservices/src/package_2019_09/operations.rs @@ -310,9 +310,9 @@ pub mod registration_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -331,6 +331,9 @@ pub mod registration_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -606,9 +609,9 @@ pub mod registration_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -627,6 +630,9 @@ pub mod registration_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -710,9 +716,9 @@ pub mod marketplace_registration_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -731,6 +737,9 @@ pub mod marketplace_registration_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -858,9 +867,9 @@ pub mod marketplace_registration_definitions_without_scope { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -879,6 +888,9 @@ pub mod marketplace_registration_definitions_without_scope { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/managedservices/src/package_2020_02_preview/models.rs b/services/mgmt/managedservices/src/package_2020_02_preview/models.rs index b86068a136..e1be031e4f 100644 --- a/services/mgmt/managedservices/src/package_2020_02_preview/models.rs +++ b/services/mgmt/managedservices/src/package_2020_02_preview/models.rs @@ -102,7 +102,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -212,8 +212,8 @@ pub struct MarketplaceRegistrationDefinitionList { pub next_link: Option, } impl azure_core::Continuable for MarketplaceRegistrationDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MarketplaceRegistrationDefinitionList { @@ -359,8 +359,8 @@ pub struct RegistrationAssignmentList { pub next_link: Option, } impl azure_core::Continuable for RegistrationAssignmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationAssignmentList { @@ -608,8 +608,8 @@ pub struct RegistrationDefinitionList { pub next_link: Option, } impl azure_core::Continuable for RegistrationDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationDefinitionList { diff --git a/services/mgmt/managedservices/src/package_2020_02_preview/operations.rs b/services/mgmt/managedservices/src/package_2020_02_preview/operations.rs index 505f594477..703df934c0 100644 --- a/services/mgmt/managedservices/src/package_2020_02_preview/operations.rs +++ b/services/mgmt/managedservices/src/package_2020_02_preview/operations.rs @@ -310,9 +310,9 @@ pub mod registration_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -331,6 +331,9 @@ pub mod registration_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -606,9 +609,9 @@ pub mod registration_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -627,6 +630,9 @@ pub mod registration_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -710,9 +716,9 @@ pub mod marketplace_registration_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -731,6 +737,9 @@ pub mod marketplace_registration_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -858,9 +867,9 @@ pub mod marketplace_registration_definitions_without_scope { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -879,6 +888,9 @@ pub mod marketplace_registration_definitions_without_scope { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/managedservices/src/package_preview_2022_01/models.rs b/services/mgmt/managedservices/src/package_preview_2022_01/models.rs index 3011a92ca6..011908f0c0 100644 --- a/services/mgmt/managedservices/src/package_preview_2022_01/models.rs +++ b/services/mgmt/managedservices/src/package_preview_2022_01/models.rs @@ -102,7 +102,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -212,8 +212,8 @@ pub struct MarketplaceRegistrationDefinitionList { pub next_link: Option, } impl azure_core::Continuable for MarketplaceRegistrationDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MarketplaceRegistrationDefinitionList { @@ -362,8 +362,8 @@ pub struct RegistrationAssignmentList { pub next_link: Option, } impl azure_core::Continuable for RegistrationAssignmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationAssignmentList { @@ -617,8 +617,8 @@ pub struct RegistrationDefinitionList { pub next_link: Option, } impl azure_core::Continuable for RegistrationDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationDefinitionList { diff --git a/services/mgmt/managedservices/src/package_preview_2022_01/operations.rs b/services/mgmt/managedservices/src/package_preview_2022_01/operations.rs index 5c3237db3c..02d97b98a5 100644 --- a/services/mgmt/managedservices/src/package_preview_2022_01/operations.rs +++ b/services/mgmt/managedservices/src/package_preview_2022_01/operations.rs @@ -319,9 +319,9 @@ pub mod registration_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -340,6 +340,9 @@ pub mod registration_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -624,9 +627,9 @@ pub mod registration_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -645,6 +648,9 @@ pub mod registration_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -731,9 +737,9 @@ pub mod marketplace_registration_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -752,6 +758,9 @@ pub mod marketplace_registration_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -879,9 +888,9 @@ pub mod marketplace_registration_definitions_without_scope { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -900,6 +909,9 @@ pub mod marketplace_registration_definitions_without_scope { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/managementgroups/src/package_2019_11/models.rs b/services/mgmt/managementgroups/src/package_2019_11/models.rs index 19b4e0cc47..c95bcb175d 100644 --- a/services/mgmt/managementgroups/src/package_2019_11/models.rs +++ b/services/mgmt/managementgroups/src/package_2019_11/models.rs @@ -213,8 +213,8 @@ pub struct DescendantListResult { pub next_link: Option, } impl azure_core::Continuable for DescendantListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DescendantListResult { @@ -346,8 +346,8 @@ pub struct EntityListResult { pub next_link: Option, } impl azure_core::Continuable for EntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityListResult { @@ -393,7 +393,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -526,8 +526,8 @@ pub struct ManagementGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagementGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagementGroupListResult { @@ -624,8 +624,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/managementgroups/src/package_2019_11/operations.rs b/services/mgmt/managementgroups/src/package_2019_11/operations.rs index c536dd5a58..2fc6e1870f 100644 --- a/services/mgmt/managementgroups/src/package_2019_11/operations.rs +++ b/services/mgmt/managementgroups/src/package_2019_11/operations.rs @@ -175,9 +175,9 @@ pub mod management_groups { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -196,6 +196,9 @@ pub mod management_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -533,9 +536,9 @@ pub mod management_groups { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -554,6 +557,9 @@ pub mod management_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -748,9 +754,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Management/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -769,6 +775,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1042,9 +1051,9 @@ pub mod entities { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Management/getEntities", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1063,6 +1072,9 @@ pub mod entities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/managementgroups/src/package_2020_02/models.rs b/services/mgmt/managementgroups/src/package_2020_02/models.rs index a364d3e985..eb8b85eb48 100644 --- a/services/mgmt/managementgroups/src/package_2020_02/models.rs +++ b/services/mgmt/managementgroups/src/package_2020_02/models.rs @@ -264,8 +264,8 @@ pub struct DescendantListResult { pub next_link: Option, } impl azure_core::Continuable for DescendantListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DescendantListResult { @@ -397,8 +397,8 @@ pub struct EntityListResult { pub next_link: Option, } impl azure_core::Continuable for EntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityListResult { @@ -444,7 +444,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -652,8 +652,8 @@ pub struct ManagementGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagementGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagementGroupListResult { @@ -750,8 +750,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/managementgroups/src/package_2020_02/operations.rs b/services/mgmt/managementgroups/src/package_2020_02/operations.rs index 55b5bc4be2..5b1501414c 100644 --- a/services/mgmt/managementgroups/src/package_2020_02/operations.rs +++ b/services/mgmt/managementgroups/src/package_2020_02/operations.rs @@ -178,9 +178,9 @@ pub mod management_groups { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -199,6 +199,9 @@ pub mod management_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -536,9 +539,9 @@ pub mod management_groups { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -557,6 +560,9 @@ pub mod management_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1047,9 +1053,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Management/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1068,6 +1074,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1341,9 +1350,9 @@ pub mod entities { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Management/getEntities", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1362,6 +1371,9 @@ pub mod entities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/managementgroups/src/package_2020_05/models.rs b/services/mgmt/managementgroups/src/package_2020_05/models.rs index 21d1151a0e..c7f78728bc 100644 --- a/services/mgmt/managementgroups/src/package_2020_05/models.rs +++ b/services/mgmt/managementgroups/src/package_2020_05/models.rs @@ -258,8 +258,8 @@ pub struct DescendantListResult { pub next_link: Option, } impl azure_core::Continuable for DescendantListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DescendantListResult { @@ -391,8 +391,8 @@ pub struct EntityListResult { pub next_link: Option, } impl azure_core::Continuable for EntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityListResult { @@ -438,7 +438,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -533,8 +533,8 @@ pub struct ListSubscriptionUnderManagementGroup { pub next_link: Option, } impl azure_core::Continuable for ListSubscriptionUnderManagementGroup { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListSubscriptionUnderManagementGroup { @@ -666,8 +666,8 @@ pub struct ManagementGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagementGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagementGroupListResult { @@ -758,8 +758,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/managementgroups/src/package_2020_05/operations.rs b/services/mgmt/managementgroups/src/package_2020_05/operations.rs index 31ab650662..d172ac5168 100644 --- a/services/mgmt/managementgroups/src/package_2020_05/operations.rs +++ b/services/mgmt/managementgroups/src/package_2020_05/operations.rs @@ -178,9 +178,9 @@ pub mod management_groups { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -199,6 +199,9 @@ pub mod management_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -536,9 +539,9 @@ pub mod management_groups { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -557,6 +560,9 @@ pub mod management_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -836,9 +842,9 @@ pub mod management_group_subscriptions { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -857,6 +863,9 @@ pub mod management_group_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1204,9 +1213,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Management/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1225,6 +1234,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1498,9 +1510,9 @@ pub mod entities { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Management/getEntities", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1519,6 +1531,9 @@ pub mod entities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/managementgroups/src/package_2020_10/models.rs b/services/mgmt/managementgroups/src/package_2020_10/models.rs index c943a38281..f3917a8634 100644 --- a/services/mgmt/managementgroups/src/package_2020_10/models.rs +++ b/services/mgmt/managementgroups/src/package_2020_10/models.rs @@ -258,8 +258,8 @@ pub struct DescendantListResult { pub next_link: Option, } impl azure_core::Continuable for DescendantListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DescendantListResult { @@ -391,8 +391,8 @@ pub struct EntityListResult { pub next_link: Option, } impl azure_core::Continuable for EntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityListResult { @@ -438,7 +438,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -533,8 +533,8 @@ pub struct ListSubscriptionUnderManagementGroup { pub next_link: Option, } impl azure_core::Continuable for ListSubscriptionUnderManagementGroup { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListSubscriptionUnderManagementGroup { @@ -669,8 +669,8 @@ pub struct ManagementGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagementGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagementGroupListResult { @@ -761,8 +761,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/managementgroups/src/package_2020_10/operations.rs b/services/mgmt/managementgroups/src/package_2020_10/operations.rs index f75d5eaee5..d7a68826a9 100644 --- a/services/mgmt/managementgroups/src/package_2020_10/operations.rs +++ b/services/mgmt/managementgroups/src/package_2020_10/operations.rs @@ -178,9 +178,9 @@ pub mod management_groups { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -199,6 +199,9 @@ pub mod management_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -536,9 +539,9 @@ pub mod management_groups { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -557,6 +560,9 @@ pub mod management_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -836,9 +842,9 @@ pub mod management_group_subscriptions { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -857,6 +863,9 @@ pub mod management_group_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1204,9 +1213,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Management/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1225,6 +1234,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1498,9 +1510,9 @@ pub mod entities { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Management/getEntities", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1519,6 +1531,9 @@ pub mod entities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/managementgroups/src/package_2021_04/models.rs b/services/mgmt/managementgroups/src/package_2021_04/models.rs index 718d6f2389..8764fcfcc2 100644 --- a/services/mgmt/managementgroups/src/package_2021_04/models.rs +++ b/services/mgmt/managementgroups/src/package_2021_04/models.rs @@ -258,8 +258,8 @@ pub struct DescendantListResult { pub next_link: Option, } impl azure_core::Continuable for DescendantListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DescendantListResult { @@ -391,8 +391,8 @@ pub struct EntityListResult { pub next_link: Option, } impl azure_core::Continuable for EntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityListResult { @@ -438,7 +438,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -533,8 +533,8 @@ pub struct ListSubscriptionUnderManagementGroup { pub next_link: Option, } impl azure_core::Continuable for ListSubscriptionUnderManagementGroup { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListSubscriptionUnderManagementGroup { @@ -672,8 +672,8 @@ pub struct ManagementGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagementGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagementGroupListResult { @@ -764,8 +764,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/managementgroups/src/package_2021_04/operations.rs b/services/mgmt/managementgroups/src/package_2021_04/operations.rs index 3ef12fa35f..06c5081dfe 100644 --- a/services/mgmt/managementgroups/src/package_2021_04/operations.rs +++ b/services/mgmt/managementgroups/src/package_2021_04/operations.rs @@ -178,9 +178,9 @@ pub mod management_groups { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -199,6 +199,9 @@ pub mod management_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -536,9 +539,9 @@ pub mod management_groups { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -557,6 +560,9 @@ pub mod management_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -836,9 +842,9 @@ pub mod management_group_subscriptions { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -857,6 +863,9 @@ pub mod management_group_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1204,9 +1213,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Management/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1225,6 +1234,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1498,9 +1510,9 @@ pub mod entities { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Management/getEntities", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1519,6 +1531,9 @@ pub mod entities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/managementpartner/src/package_2018_02/models.rs b/services/mgmt/managementpartner/src/package_2018_02/models.rs index 95bf3e8809..5f203909db 100644 --- a/services/mgmt/managementpartner/src/package_2018_02/models.rs +++ b/services/mgmt/managementpartner/src/package_2018_02/models.rs @@ -18,7 +18,7 @@ pub struct Error { pub message: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -112,8 +112,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/managementpartner/src/package_2018_02/operations.rs b/services/mgmt/managementpartner/src/package_2018_02/operations.rs index 109c337e1d..a94ff6f2ba 100644 --- a/services/mgmt/managementpartner/src/package_2018_02/operations.rs +++ b/services/mgmt/managementpartner/src/package_2018_02/operations.rs @@ -332,9 +332,9 @@ pub mod operation { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -353,6 +353,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/maps/src/package_2018_05/models.rs b/services/mgmt/maps/src/package_2018_05/models.rs index 47e3ebf3ee..941ffbb847 100644 --- a/services/mgmt/maps/src/package_2018_05/models.rs +++ b/services/mgmt/maps/src/package_2018_05/models.rs @@ -21,7 +21,7 @@ pub struct Error { pub details: Vec, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -122,7 +122,7 @@ pub struct MapsAccounts { pub value: Vec, } impl azure_core::Continuable for MapsAccounts { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -211,7 +211,7 @@ pub struct MapsOperations { pub value: Vec, } impl azure_core::Continuable for MapsOperations { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/maps/src/package_2021_02/models.rs b/services/mgmt/maps/src/package_2021_02/models.rs index e0f3ab535e..55e41492b5 100644 --- a/services/mgmt/maps/src/package_2021_02/models.rs +++ b/services/mgmt/maps/src/package_2021_02/models.rs @@ -31,8 +31,8 @@ pub struct CreatorList { pub next_link: Option, } impl azure_core::Continuable for CreatorList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CreatorList { @@ -147,7 +147,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -297,8 +297,8 @@ pub struct MapsAccounts { pub next_link: Option, } impl azure_core::Continuable for MapsAccounts { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MapsAccounts { @@ -371,8 +371,8 @@ pub struct MapsOperations { pub next_link: Option, } impl azure_core::Continuable for MapsOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MapsOperations { diff --git a/services/mgmt/maps/src/package_2021_02/operations.rs b/services/mgmt/maps/src/package_2021_02/operations.rs index 29ad9b7ad5..c03092e360 100644 --- a/services/mgmt/maps/src/package_2021_02/operations.rs +++ b/services/mgmt/maps/src/package_2021_02/operations.rs @@ -433,9 +433,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -454,6 +454,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -507,9 +510,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -528,6 +531,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -698,9 +704,9 @@ pub mod maps { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Maps/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -719,6 +725,9 @@ pub mod maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -772,9 +781,9 @@ pub mod maps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -793,6 +802,9 @@ pub mod maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -933,9 +945,9 @@ pub mod creators { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -954,6 +966,9 @@ pub mod creators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/maps/src/package_preview_2020_02/models.rs b/services/mgmt/maps/src/package_preview_2020_02/models.rs index 467625b344..3664744bc0 100644 --- a/services/mgmt/maps/src/package_preview_2020_02/models.rs +++ b/services/mgmt/maps/src/package_preview_2020_02/models.rs @@ -43,7 +43,7 @@ pub struct CreatorList { pub value: Vec, } impl azure_core::Continuable for CreatorList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -123,7 +123,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -226,7 +226,7 @@ pub struct MapsAccounts { pub value: Vec, } impl azure_core::Continuable for MapsAccounts { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -297,7 +297,7 @@ pub struct MapsOperations { pub value: Vec, } impl azure_core::Continuable for MapsOperations { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -345,7 +345,7 @@ pub struct PrivateAtlasList { pub value: Vec, } impl azure_core::Continuable for PrivateAtlasList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/maps/src/package_preview_2021_07/models.rs b/services/mgmt/maps/src/package_preview_2021_07/models.rs index ec95696384..6d95ba639c 100644 --- a/services/mgmt/maps/src/package_preview_2021_07/models.rs +++ b/services/mgmt/maps/src/package_preview_2021_07/models.rs @@ -31,8 +31,8 @@ pub struct CreatorList { pub next_link: Option, } impl azure_core::Continuable for CreatorList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CreatorList { @@ -147,7 +147,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -355,8 +355,8 @@ pub struct MapsAccounts { pub next_link: Option, } impl azure_core::Continuable for MapsAccounts { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MapsAccounts { @@ -429,8 +429,8 @@ pub struct MapsOperations { pub next_link: Option, } impl azure_core::Continuable for MapsOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MapsOperations { diff --git a/services/mgmt/maps/src/package_preview_2021_07/operations.rs b/services/mgmt/maps/src/package_preview_2021_07/operations.rs index 8ea4d92460..0d00a632b5 100644 --- a/services/mgmt/maps/src/package_preview_2021_07/operations.rs +++ b/services/mgmt/maps/src/package_preview_2021_07/operations.rs @@ -433,9 +433,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -454,6 +454,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -507,9 +510,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -528,6 +531,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -692,9 +698,9 @@ pub mod maps { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Maps/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -713,6 +719,9 @@ pub mod maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -853,9 +862,9 @@ pub mod creators { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -874,6 +883,9 @@ pub mod creators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/maps/src/package_preview_2021_12/models.rs b/services/mgmt/maps/src/package_preview_2021_12/models.rs index 591eae239d..c9b16aa18c 100644 --- a/services/mgmt/maps/src/package_preview_2021_12/models.rs +++ b/services/mgmt/maps/src/package_preview_2021_12/models.rs @@ -139,8 +139,8 @@ pub struct CreatorList { pub next_link: Option, } impl azure_core::Continuable for CreatorList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CreatorList { @@ -255,7 +255,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -478,8 +478,8 @@ pub struct MapsAccounts { pub next_link: Option, } impl azure_core::Continuable for MapsAccounts { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MapsAccounts { @@ -552,8 +552,8 @@ pub struct MapsOperations { pub next_link: Option, } impl azure_core::Continuable for MapsOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MapsOperations { diff --git a/services/mgmt/maps/src/package_preview_2021_12/operations.rs b/services/mgmt/maps/src/package_preview_2021_12/operations.rs index 59434d85a6..5eb23c3e69 100644 --- a/services/mgmt/maps/src/package_preview_2021_12/operations.rs +++ b/services/mgmt/maps/src/package_preview_2021_12/operations.rs @@ -448,9 +448,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -469,6 +469,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -522,9 +525,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -543,6 +546,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -767,9 +773,9 @@ pub mod maps { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Maps/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -788,6 +794,9 @@ pub mod maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -841,9 +850,9 @@ pub mod maps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -862,6 +871,9 @@ pub mod maps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1002,9 +1014,9 @@ pub mod creators { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1023,6 +1035,9 @@ pub mod creators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mariadb/src/package_2018_06_01/models.rs b/services/mgmt/mariadb/src/package_2018_06_01/models.rs index fffa99fed8..509aaa1b76 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01/models.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01/models.rs @@ -37,8 +37,8 @@ pub struct AdvisorsResultList { pub next_link: Option, } impl azure_core::Continuable for AdvisorsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AdvisorsResultList { @@ -54,7 +54,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -85,7 +85,7 @@ pub struct ConfigurationListResult { pub value: Vec, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -143,7 +143,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -230,7 +230,7 @@ pub struct FirewallRuleListResult { pub value: Vec, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -282,7 +282,7 @@ pub struct LogFileListResult { pub value: Vec, } impl azure_core::Continuable for LogFileListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -498,7 +498,7 @@ pub struct PerformanceTierListResult { pub value: Vec, } impl azure_core::Continuable for PerformanceTierListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -598,8 +598,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -659,8 +659,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -898,8 +898,8 @@ pub struct QueryTextsResultList { pub next_link: Option, } impl azure_core::Continuable for QueryTextsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QueryTextsResultList { @@ -965,8 +965,8 @@ pub struct RecommendationActionsResultList { pub next_link: Option, } impl azure_core::Continuable for RecommendationActionsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecommendationActionsResultList { @@ -1150,7 +1150,7 @@ pub struct ServerListResult { pub value: Vec, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1607,8 +1607,8 @@ pub struct ServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerSecurityAlertPolicyListResult { @@ -1956,8 +1956,8 @@ pub struct TopQueryStatisticsResultList { pub next_link: Option, } impl azure_core::Continuable for TopQueryStatisticsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopQueryStatisticsResultList { @@ -2010,8 +2010,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { @@ -2181,8 +2181,8 @@ pub struct WaitStatisticsResultList { pub next_link: Option, } impl azure_core::Continuable for WaitStatisticsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WaitStatisticsResultList { diff --git a/services/mgmt/mariadb/src/package_2018_06_01/operations.rs b/services/mgmt/mariadb/src/package_2018_06_01/operations.rs index e4515b40ff..9b180a132d 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01/operations.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01/operations.rs @@ -1266,9 +1266,9 @@ pub mod virtual_network_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1287,6 +1287,9 @@ pub mod virtual_network_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2434,9 +2437,9 @@ pub mod query_texts { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2455,6 +2458,9 @@ pub mod query_texts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2607,9 +2613,9 @@ pub mod top_query_statistics { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2628,6 +2634,9 @@ pub mod top_query_statistics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2777,9 +2786,9 @@ pub mod wait_statistics { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2798,6 +2807,9 @@ pub mod wait_statistics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3076,9 +3088,9 @@ pub mod advisors { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3097,6 +3109,9 @@ pub mod advisors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3241,9 +3256,9 @@ pub mod recommended_actions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DBforMariaDB/servers/{}/advisors/{}/recommendedActions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . advisor_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3262,6 +3277,9 @@ pub mod recommended_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3391,7 +3409,7 @@ pub mod location_based_recommended_action_sessions_result { Created201(models::RecommendationActionsResultList), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Created201(x) => x.continuation(), @@ -3412,9 +3430,9 @@ pub mod location_based_recommended_action_sessions_result { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.DBforMariaDB/locations/{}/recommendedActionSessionsOperationResults/{}" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . operation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3433,6 +3451,9 @@ pub mod location_based_recommended_action_sessions_result { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3782,9 +3803,9 @@ pub mod private_endpoint_connections { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3803,6 +3824,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3894,9 +3918,9 @@ pub mod private_link_resources { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3915,6 +3939,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4193,9 +4220,9 @@ pub mod server_security_alert_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4214,6 +4241,9 @@ pub mod server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs b/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs index 9c439fd23b..cd21955523 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -64,7 +64,7 @@ pub struct ConfigurationListResult { pub value: Vec, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -122,7 +122,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -170,7 +170,7 @@ pub struct FirewallRuleListResult { pub value: Vec, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -222,7 +222,7 @@ pub struct LogFileListResult { pub value: Vec, } impl azure_core::Continuable for LogFileListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -438,7 +438,7 @@ pub struct PerformanceTierListResult { pub value: Vec, } impl azure_core::Continuable for PerformanceTierListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -742,7 +742,7 @@ pub struct ServerListResult { pub value: Vec, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1014,8 +1014,8 @@ pub struct ServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerSecurityAlertPolicyListResult { @@ -1330,8 +1330,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { diff --git a/services/mgmt/mariadb/src/package_2018_06_01_preview/operations.rs b/services/mgmt/mariadb/src/package_2018_06_01_preview/operations.rs index b98b6bc13c..286a9fff1c 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01_preview/operations.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01_preview/operations.rs @@ -1237,9 +1237,9 @@ pub mod virtual_network_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1258,6 +1258,9 @@ pub mod virtual_network_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2428,9 +2431,9 @@ pub mod server_security_alert_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2449,6 +2452,9 @@ pub mod server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs b/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs index ac2d7ede12..16eb31daff 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs @@ -37,8 +37,8 @@ pub struct AdvisorsResultList { pub next_link: Option, } impl azure_core::Continuable for AdvisorsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AdvisorsResultList { @@ -54,7 +54,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -106,7 +106,7 @@ pub struct ConfigurationListResult { pub value: Vec, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -164,7 +164,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -212,7 +212,7 @@ pub struct FirewallRuleListResult { pub value: Vec, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -264,7 +264,7 @@ pub struct LogFileListResult { pub value: Vec, } impl azure_core::Continuable for LogFileListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -480,7 +480,7 @@ pub struct PerformanceTierListResult { pub value: Vec, } impl azure_core::Continuable for PerformanceTierListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -562,8 +562,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -623,8 +623,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -770,8 +770,8 @@ pub struct QueryTextsResultList { pub next_link: Option, } impl azure_core::Continuable for QueryTextsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QueryTextsResultList { @@ -837,8 +837,8 @@ pub struct RecommendationActionsResultList { pub next_link: Option, } impl azure_core::Continuable for RecommendationActionsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecommendationActionsResultList { @@ -1041,7 +1041,7 @@ pub struct ServerListResult { pub value: Vec, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1639,8 +1639,8 @@ pub struct TopQueryStatisticsResultList { pub next_link: Option, } impl azure_core::Continuable for TopQueryStatisticsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopQueryStatisticsResultList { @@ -1693,8 +1693,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { @@ -1864,8 +1864,8 @@ pub struct WaitStatisticsResultList { pub next_link: Option, } impl azure_core::Continuable for WaitStatisticsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WaitStatisticsResultList { diff --git a/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/operations.rs b/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/operations.rs index 0ad6fe5874..e565c8b201 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/operations.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/operations.rs @@ -1257,9 +1257,9 @@ pub mod virtual_network_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1278,6 +1278,9 @@ pub mod virtual_network_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2302,9 +2305,9 @@ pub mod query_texts { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2323,6 +2326,9 @@ pub mod query_texts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2475,9 +2481,9 @@ pub mod top_query_statistics { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2496,6 +2502,9 @@ pub mod top_query_statistics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2645,9 +2654,9 @@ pub mod wait_statistics { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2666,6 +2675,9 @@ pub mod wait_statistics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2812,9 +2824,9 @@ pub mod advisors { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2833,6 +2845,9 @@ pub mod advisors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3049,9 +3064,9 @@ pub mod recommended_actions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DBforMariaDB/servers/{}/advisors/{}/recommendedActions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . advisor_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3070,6 +3085,9 @@ pub mod recommended_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3199,7 +3217,7 @@ pub mod location_based_recommended_action_sessions_result { Created201(models::RecommendationActionsResultList), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Created201(x) => x.continuation(), @@ -3220,9 +3238,9 @@ pub mod location_based_recommended_action_sessions_result { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.DBforMariaDB/locations/{}/recommendedActionSessionsOperationResults/{}" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . operation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3241,6 +3259,9 @@ pub mod location_based_recommended_action_sessions_result { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3643,9 +3664,9 @@ pub mod private_endpoint_connections { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3664,6 +3685,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3755,9 +3779,9 @@ pub mod private_link_resources { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3776,6 +3800,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mariadb/src/package_2020_01_01/models.rs b/services/mgmt/mariadb/src/package_2020_01_01/models.rs index fffa99fed8..509aaa1b76 100644 --- a/services/mgmt/mariadb/src/package_2020_01_01/models.rs +++ b/services/mgmt/mariadb/src/package_2020_01_01/models.rs @@ -37,8 +37,8 @@ pub struct AdvisorsResultList { pub next_link: Option, } impl azure_core::Continuable for AdvisorsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AdvisorsResultList { @@ -54,7 +54,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -85,7 +85,7 @@ pub struct ConfigurationListResult { pub value: Vec, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -143,7 +143,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -230,7 +230,7 @@ pub struct FirewallRuleListResult { pub value: Vec, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -282,7 +282,7 @@ pub struct LogFileListResult { pub value: Vec, } impl azure_core::Continuable for LogFileListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -498,7 +498,7 @@ pub struct PerformanceTierListResult { pub value: Vec, } impl azure_core::Continuable for PerformanceTierListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -598,8 +598,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -659,8 +659,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -898,8 +898,8 @@ pub struct QueryTextsResultList { pub next_link: Option, } impl azure_core::Continuable for QueryTextsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QueryTextsResultList { @@ -965,8 +965,8 @@ pub struct RecommendationActionsResultList { pub next_link: Option, } impl azure_core::Continuable for RecommendationActionsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecommendationActionsResultList { @@ -1150,7 +1150,7 @@ pub struct ServerListResult { pub value: Vec, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1607,8 +1607,8 @@ pub struct ServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerSecurityAlertPolicyListResult { @@ -1956,8 +1956,8 @@ pub struct TopQueryStatisticsResultList { pub next_link: Option, } impl azure_core::Continuable for TopQueryStatisticsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopQueryStatisticsResultList { @@ -2010,8 +2010,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { @@ -2181,8 +2181,8 @@ pub struct WaitStatisticsResultList { pub next_link: Option, } impl azure_core::Continuable for WaitStatisticsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WaitStatisticsResultList { diff --git a/services/mgmt/mariadb/src/package_2020_01_01/operations.rs b/services/mgmt/mariadb/src/package_2020_01_01/operations.rs index 9261080e48..2d15d7002a 100644 --- a/services/mgmt/mariadb/src/package_2020_01_01/operations.rs +++ b/services/mgmt/mariadb/src/package_2020_01_01/operations.rs @@ -1402,9 +1402,9 @@ pub mod virtual_network_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1423,6 +1423,9 @@ pub mod virtual_network_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2570,9 +2573,9 @@ pub mod query_texts { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2591,6 +2594,9 @@ pub mod query_texts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2743,9 +2749,9 @@ pub mod top_query_statistics { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2764,6 +2770,9 @@ pub mod top_query_statistics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2913,9 +2922,9 @@ pub mod wait_statistics { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2934,6 +2943,9 @@ pub mod wait_statistics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3212,9 +3224,9 @@ pub mod advisors { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3233,6 +3245,9 @@ pub mod advisors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3377,9 +3392,9 @@ pub mod recommended_actions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DBforMariaDB/servers/{}/advisors/{}/recommendedActions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . advisor_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3398,6 +3413,9 @@ pub mod recommended_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3527,7 +3545,7 @@ pub mod location_based_recommended_action_sessions_result { Created201(models::RecommendationActionsResultList), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Created201(x) => x.continuation(), @@ -3548,9 +3566,9 @@ pub mod location_based_recommended_action_sessions_result { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.DBforMariaDB/locations/{}/recommendedActionSessionsOperationResults/{}" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . operation_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3569,6 +3587,9 @@ pub mod location_based_recommended_action_sessions_result { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3918,9 +3939,9 @@ pub mod private_endpoint_connections { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3939,6 +3960,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4030,9 +4054,9 @@ pub mod private_link_resources { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4051,6 +4075,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4329,9 +4356,9 @@ pub mod server_security_alert_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4350,6 +4377,9 @@ pub mod server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs b/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs index 7478e01d73..4adcaacae2 100644 --- a/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs +++ b/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -99,8 +99,8 @@ pub struct ServerKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerKeyListResult { diff --git a/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/operations.rs b/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/operations.rs index 6080571e93..2210895f7e 100644 --- a/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/operations.rs +++ b/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/operations.rs @@ -166,9 +166,9 @@ pub mod server_keys { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -187,6 +187,9 @@ pub mod server_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/marketplace/src/package_2021_06_01/models.rs b/services/mgmt/marketplace/src/package_2021_06_01/models.rs index 2037107e0b..003a1ee342 100644 --- a/services/mgmt/marketplace/src/package_2021_06_01/models.rs +++ b/services/mgmt/marketplace/src/package_2021_06_01/models.rs @@ -322,7 +322,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -454,8 +454,8 @@ pub struct OfferListResponse { pub next_link: Option, } impl azure_core::Continuable for OfferListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OfferListResponse { @@ -654,8 +654,8 @@ pub struct PrivateStoreList { pub next_link: Option, } impl azure_core::Continuable for PrivateStoreList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateStoreList { diff --git a/services/mgmt/marketplace/src/package_2021_06_01/operations.rs b/services/mgmt/marketplace/src/package_2021_06_01/operations.rs index d1e097d557..fb00d5d714 100644 --- a/services/mgmt/marketplace/src/package_2021_06_01/operations.rs +++ b/services/mgmt/marketplace/src/package_2021_06_01/operations.rs @@ -271,9 +271,9 @@ pub mod private_store { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Marketplace/privateStores", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -292,6 +292,9 @@ pub mod private_store { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1755,9 +1758,9 @@ pub mod private_store_collection_offer { &this.collection_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1776,6 +1779,9 @@ pub mod private_store_collection_offer { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/marketplace/src/package_2021_12/models.rs b/services/mgmt/marketplace/src/package_2021_12/models.rs index c4de091b9b..9d3344705c 100644 --- a/services/mgmt/marketplace/src/package_2021_12/models.rs +++ b/services/mgmt/marketplace/src/package_2021_12/models.rs @@ -322,7 +322,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -465,8 +465,8 @@ pub struct OfferListResponse { pub next_link: Option, } impl azure_core::Continuable for OfferListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OfferListResponse { @@ -665,8 +665,8 @@ pub struct PrivateStoreList { pub next_link: Option, } impl azure_core::Continuable for PrivateStoreList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateStoreList { diff --git a/services/mgmt/marketplace/src/package_2021_12/operations.rs b/services/mgmt/marketplace/src/package_2021_12/operations.rs index 480ced36c6..f35661f368 100644 --- a/services/mgmt/marketplace/src/package_2021_12/operations.rs +++ b/services/mgmt/marketplace/src/package_2021_12/operations.rs @@ -300,9 +300,9 @@ pub mod private_store { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Marketplace/privateStores", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -321,6 +321,9 @@ pub mod private_store { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1997,9 +2000,9 @@ pub mod private_store_collection_offer { &this.collection_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2018,6 +2021,9 @@ pub mod private_store_collection_offer { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/marketplace/src/package_2022_03/models.rs b/services/mgmt/marketplace/src/package_2022_03/models.rs index a9a32efe84..69151db2e3 100644 --- a/services/mgmt/marketplace/src/package_2022_03/models.rs +++ b/services/mgmt/marketplace/src/package_2022_03/models.rs @@ -358,7 +358,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -530,8 +530,8 @@ pub struct OfferListResponse { pub next_link: Option, } impl azure_core::Continuable for OfferListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OfferListResponse { @@ -730,8 +730,8 @@ pub struct PrivateStoreList { pub next_link: Option, } impl azure_core::Continuable for PrivateStoreList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateStoreList { diff --git a/services/mgmt/marketplace/src/package_2022_03/operations.rs b/services/mgmt/marketplace/src/package_2022_03/operations.rs index b03cd8ff50..05ec234b78 100644 --- a/services/mgmt/marketplace/src/package_2022_03/operations.rs +++ b/services/mgmt/marketplace/src/package_2022_03/operations.rs @@ -316,9 +316,9 @@ pub mod private_store { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Marketplace/privateStores", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -337,6 +337,9 @@ pub mod private_store { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2258,9 +2261,9 @@ pub mod private_store_collection_offer { &this.collection_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2279,6 +2282,9 @@ pub mod private_store_collection_offer { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/marketplacenotifications/src/package_2021_03_03/models.rs b/services/mgmt/marketplacenotifications/src/package_2021_03_03/models.rs index 408da8b15c..837b9d25ed 100644 --- a/services/mgmt/marketplacenotifications/src/package_2021_03_03/models.rs +++ b/services/mgmt/marketplacenotifications/src/package_2021_03_03/models.rs @@ -15,8 +15,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -47,7 +47,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -100,8 +100,8 @@ pub struct NotificationList { pub next_link: Option, } impl azure_core::Continuable for NotificationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationList { diff --git a/services/mgmt/marketplacenotifications/src/package_2021_03_03/operations.rs b/services/mgmt/marketplacenotifications/src/package_2021_03_03/operations.rs index cc996ae60f..bb9291d88c 100644 --- a/services/mgmt/marketplacenotifications/src/package_2021_03_03/operations.rs +++ b/services/mgmt/marketplacenotifications/src/package_2021_03_03/operations.rs @@ -113,9 +113,9 @@ pub mod notifications { &this.subscription ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -134,6 +134,9 @@ pub mod notifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -262,9 +265,9 @@ pub mod notification { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -283,6 +286,9 @@ pub mod notification { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/marketplacenotifications/src/package_composite_v1/models.rs b/services/mgmt/marketplacenotifications/src/package_composite_v1/models.rs index 408da8b15c..837b9d25ed 100644 --- a/services/mgmt/marketplacenotifications/src/package_composite_v1/models.rs +++ b/services/mgmt/marketplacenotifications/src/package_composite_v1/models.rs @@ -15,8 +15,8 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperations { @@ -47,7 +47,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -100,8 +100,8 @@ pub struct NotificationList { pub next_link: Option, } impl azure_core::Continuable for NotificationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationList { diff --git a/services/mgmt/marketplacenotifications/src/package_composite_v1/operations.rs b/services/mgmt/marketplacenotifications/src/package_composite_v1/operations.rs index cc996ae60f..bb9291d88c 100644 --- a/services/mgmt/marketplacenotifications/src/package_composite_v1/operations.rs +++ b/services/mgmt/marketplacenotifications/src/package_composite_v1/operations.rs @@ -113,9 +113,9 @@ pub mod notifications { &this.subscription ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -134,6 +134,9 @@ pub mod notifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -262,9 +265,9 @@ pub mod notification { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -283,6 +286,9 @@ pub mod notification { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/marketplaceordering/src/package_2015_06_01/models.rs b/services/mgmt/marketplaceordering/src/package_2015_06_01/models.rs index 5acf809d46..0442fb87cb 100644 --- a/services/mgmt/marketplaceordering/src/package_2015_06_01/models.rs +++ b/services/mgmt/marketplaceordering/src/package_2015_06_01/models.rs @@ -71,7 +71,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -229,8 +229,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -264,7 +264,7 @@ pub struct UnsupportedMediaTypeErrorResponse { pub message: Option, } impl azure_core::Continuable for UnsupportedMediaTypeErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/marketplaceordering/src/package_2015_06_01/operations.rs b/services/mgmt/marketplaceordering/src/package_2015_06_01/operations.rs index 52542823f3..78d2f1e14d 100644 --- a/services/mgmt/marketplaceordering/src/package_2015_06_01/operations.rs +++ b/services/mgmt/marketplaceordering/src/package_2015_06_01/operations.rs @@ -509,9 +509,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -530,6 +530,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/marketplaceordering/src/package_2021_01_01/models.rs b/services/mgmt/marketplaceordering/src/package_2021_01_01/models.rs index c657d7fae9..411e8b7ddd 100644 --- a/services/mgmt/marketplaceordering/src/package_2021_01_01/models.rs +++ b/services/mgmt/marketplaceordering/src/package_2021_01_01/models.rs @@ -65,7 +65,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -142,8 +142,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/marketplaceordering/src/package_2021_01_01/operations.rs b/services/mgmt/marketplaceordering/src/package_2021_01_01/operations.rs index 098b1a72d7..f6e73d52c4 100644 --- a/services/mgmt/marketplaceordering/src/package_2021_01_01/operations.rs +++ b/services/mgmt/marketplaceordering/src/package_2021_01_01/operations.rs @@ -509,9 +509,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -530,6 +530,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mediaservices/src/package_2020_02_preview/models.rs b/services/mgmt/mediaservices/src/package_2020_02_preview/models.rs index 89d9a05285..6b6d622b9b 100644 --- a/services/mgmt/mediaservices/src/package_2020_02_preview/models.rs +++ b/services/mgmt/mediaservices/src/package_2020_02_preview/models.rs @@ -98,8 +98,8 @@ pub struct AccountFilterCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AccountFilterCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountFilterCollection { @@ -149,7 +149,7 @@ pub struct ApiError { pub error: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -183,8 +183,8 @@ pub struct AssetCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AssetCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssetCollection { @@ -251,8 +251,8 @@ pub struct AssetFilterCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AssetFilterCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssetFilterCollection { @@ -655,8 +655,8 @@ pub struct ContentKeyPolicyCollection { pub odata_next_link: Option, } impl azure_core::Continuable for ContentKeyPolicyCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentKeyPolicyCollection { @@ -2229,8 +2229,8 @@ pub struct JobCollection { pub odata_next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -3112,8 +3112,8 @@ pub struct LiveEventListResult { pub odata_next_link: Option, } impl azure_core::Continuable for LiveEventListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LiveEventListResult { @@ -3284,8 +3284,8 @@ pub struct LiveOutputListResult { pub odata_next_link: Option, } impl azure_core::Continuable for LiveOutputListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LiveOutputListResult { @@ -3477,8 +3477,8 @@ pub struct MediaGraphCollection { pub odata_next_link: Option, } impl azure_core::Continuable for MediaGraphCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MediaGraphCollection { @@ -3827,8 +3827,8 @@ pub struct MediaServiceCollection { pub odata_next_link: Option, } impl azure_core::Continuable for MediaServiceCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MediaServiceCollection { @@ -4086,8 +4086,8 @@ pub struct OperationCollection { pub odata_next_link: Option, } impl azure_core::Continuable for OperationCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationCollection { @@ -4450,8 +4450,8 @@ pub struct StreamingEndpointListResult { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingEndpointListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingEndpointListResult { @@ -4618,8 +4618,8 @@ pub struct StreamingLocatorCollection { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingLocatorCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingLocatorCollection { @@ -4884,8 +4884,8 @@ pub struct StreamingPolicyCollection { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingPolicyCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingPolicyCollection { @@ -5023,8 +5023,8 @@ pub struct SubscriptionMediaServiceCollection { pub odata_next_link: Option, } impl azure_core::Continuable for SubscriptionMediaServiceCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionMediaServiceCollection { @@ -5196,8 +5196,8 @@ pub struct TransformCollection { pub odata_next_link: Option, } impl azure_core::Continuable for TransformCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransformCollection { diff --git a/services/mgmt/mediaservices/src/package_2020_02_preview/operations.rs b/services/mgmt/mediaservices/src/package_2020_02_preview/operations.rs index b801174c9e..949ab901f3 100644 --- a/services/mgmt/mediaservices/src/package_2020_02_preview/operations.rs +++ b/services/mgmt/mediaservices/src/package_2020_02_preview/operations.rs @@ -236,9 +236,9 @@ pub mod account_filters { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -257,6 +257,9 @@ pub mod account_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -545,9 +548,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Media/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -566,6 +569,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -746,9 +752,9 @@ pub mod mediaservices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -767,6 +773,9 @@ pub mod mediaservices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1141,9 +1150,9 @@ pub mod mediaservices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1162,6 +1171,9 @@ pub mod mediaservices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1497,9 +1509,9 @@ pub mod assets { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1518,6 +1530,9 @@ pub mod assets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2073,9 +2088,9 @@ pub mod asset_filters { &this.asset_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2094,6 +2109,9 @@ pub mod asset_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2511,9 +2529,9 @@ pub mod content_key_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2532,6 +2550,9 @@ pub mod content_key_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2976,9 +2997,9 @@ pub mod transforms { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2997,6 +3018,9 @@ pub mod transforms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3420,9 +3444,9 @@ pub mod jobs { &this.transform_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3441,6 +3465,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3886,9 +3913,9 @@ pub mod media_graphs { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3907,6 +3934,9 @@ pub mod media_graphs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4478,9 +4508,9 @@ pub mod streaming_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4499,6 +4529,9 @@ pub mod streaming_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4850,9 +4883,9 @@ pub mod streaming_locators { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4871,6 +4904,9 @@ pub mod streaming_locators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5336,9 +5372,9 @@ pub mod live_events { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5357,6 +5393,9 @@ pub mod live_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5918,9 +5957,9 @@ pub mod live_outputs { &this.live_event_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5939,6 +5978,9 @@ pub mod live_outputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6319,9 +6361,9 @@ pub mod streaming_endpoints { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6340,6 +6382,9 @@ pub mod streaming_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mediaservices/src/package_2020_05/models.rs b/services/mgmt/mediaservices/src/package_2020_05/models.rs index a62ad250d0..c5c941cc78 100644 --- a/services/mgmt/mediaservices/src/package_2020_05/models.rs +++ b/services/mgmt/mediaservices/src/package_2020_05/models.rs @@ -157,8 +157,8 @@ pub struct AccountFilterCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AccountFilterCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountFilterCollection { @@ -208,7 +208,7 @@ pub struct ApiError { pub error: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -245,8 +245,8 @@ pub struct AssetCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AssetCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssetCollection { @@ -316,8 +316,8 @@ pub struct AssetFilterCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AssetFilterCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssetFilterCollection { @@ -848,8 +848,8 @@ pub struct ContentKeyPolicyCollection { pub odata_next_link: Option, } impl azure_core::Continuable for ContentKeyPolicyCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentKeyPolicyCollection { @@ -2744,8 +2744,8 @@ pub struct JobCollection { pub odata_next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -3737,8 +3737,8 @@ pub struct LiveEventListResult { pub odata_next_link: Option, } impl azure_core::Continuable for LiveEventListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LiveEventListResult { @@ -3951,8 +3951,8 @@ pub struct LiveOutputListResult { pub odata_next_link: Option, } impl azure_core::Continuable for LiveOutputListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LiveOutputListResult { @@ -4132,8 +4132,8 @@ pub struct MediaServiceCollection { pub odata_next_link: Option, } impl azure_core::Continuable for MediaServiceCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MediaServiceCollection { @@ -4528,8 +4528,8 @@ pub struct OperationCollection { pub odata_next_link: Option, } impl azure_core::Continuable for OperationCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationCollection { @@ -5366,8 +5366,8 @@ pub struct StreamingEndpointListResult { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingEndpointListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingEndpointListResult { @@ -5537,8 +5537,8 @@ pub struct StreamingLocatorCollection { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingLocatorCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingLocatorCollection { @@ -5806,8 +5806,8 @@ pub struct StreamingPolicyCollection { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingPolicyCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingPolicyCollection { @@ -6102,8 +6102,8 @@ pub struct TransformCollection { pub odata_next_link: Option, } impl azure_core::Continuable for TransformCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransformCollection { diff --git a/services/mgmt/mediaservices/src/package_2020_05/operations.rs b/services/mgmt/mediaservices/src/package_2020_05/operations.rs index ea26592b30..0e59f7a79b 100644 --- a/services/mgmt/mediaservices/src/package_2020_05/operations.rs +++ b/services/mgmt/mediaservices/src/package_2020_05/operations.rs @@ -233,9 +233,9 @@ pub mod account_filters { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -254,6 +254,9 @@ pub mod account_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -542,9 +545,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Media/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -563,6 +566,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -743,9 +749,9 @@ pub mod mediaservices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -764,6 +770,9 @@ pub mod mediaservices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1143,9 +1152,9 @@ pub mod mediaservices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1164,6 +1173,9 @@ pub mod mediaservices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1902,9 +1914,9 @@ pub mod assets { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1923,6 +1935,9 @@ pub mod assets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2478,9 +2493,9 @@ pub mod asset_filters { &this.asset_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2499,6 +2514,9 @@ pub mod asset_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2916,9 +2934,9 @@ pub mod content_key_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2937,6 +2955,9 @@ pub mod content_key_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3381,9 +3402,9 @@ pub mod transforms { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3402,6 +3423,9 @@ pub mod transforms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3825,9 +3849,9 @@ pub mod jobs { &this.transform_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3846,6 +3870,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4271,9 +4298,9 @@ pub mod streaming_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4292,6 +4319,9 @@ pub mod streaming_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4643,9 +4673,9 @@ pub mod streaming_locators { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4664,6 +4694,9 @@ pub mod streaming_locators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5145,9 +5178,9 @@ pub mod live_events { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5166,6 +5199,9 @@ pub mod live_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5784,9 +5820,9 @@ pub mod live_outputs { &this.live_event_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5805,6 +5841,9 @@ pub mod live_outputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6185,9 +6224,9 @@ pub mod streaming_endpoints { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6206,6 +6245,9 @@ pub mod streaming_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mediaservices/src/package_2021_05/models.rs b/services/mgmt/mediaservices/src/package_2021_05/models.rs index 6d3e63b635..07371d1399 100644 --- a/services/mgmt/mediaservices/src/package_2021_05/models.rs +++ b/services/mgmt/mediaservices/src/package_2021_05/models.rs @@ -211,8 +211,8 @@ pub struct AccountFilterCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AccountFilterCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountFilterCollection { @@ -262,7 +262,7 @@ pub struct ApiError { pub error: Option, } impl azure_core::Continuable for ApiError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -299,8 +299,8 @@ pub struct AssetCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AssetCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssetCollection { @@ -370,8 +370,8 @@ pub struct AssetFilterCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AssetFilterCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssetFilterCollection { @@ -902,8 +902,8 @@ pub struct ContentKeyPolicyCollection { pub odata_next_link: Option, } impl azure_core::Continuable for ContentKeyPolicyCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentKeyPolicyCollection { @@ -2798,8 +2798,8 @@ pub struct JobCollection { pub odata_next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -3801,8 +3801,8 @@ pub struct LiveEventListResult { pub odata_next_link: Option, } impl azure_core::Continuable for LiveEventListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LiveEventListResult { @@ -4015,8 +4015,8 @@ pub struct LiveOutputListResult { pub odata_next_link: Option, } impl azure_core::Continuable for LiveOutputListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LiveOutputListResult { @@ -4196,8 +4196,8 @@ pub struct MediaServiceCollection { pub odata_next_link: Option, } impl azure_core::Continuable for MediaServiceCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MediaServiceCollection { @@ -4669,8 +4669,8 @@ pub struct OperationCollection { pub odata_next_link: Option, } impl azure_core::Continuable for OperationCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationCollection { @@ -5507,8 +5507,8 @@ pub struct StreamingEndpointListResult { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingEndpointListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingEndpointListResult { @@ -5678,8 +5678,8 @@ pub struct StreamingLocatorCollection { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingLocatorCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingLocatorCollection { @@ -5947,8 +5947,8 @@ pub struct StreamingPolicyCollection { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingPolicyCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingPolicyCollection { @@ -6243,8 +6243,8 @@ pub struct TransformCollection { pub odata_next_link: Option, } impl azure_core::Continuable for TransformCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransformCollection { diff --git a/services/mgmt/mediaservices/src/package_2021_05/operations.rs b/services/mgmt/mediaservices/src/package_2021_05/operations.rs index 605a4bce84..2cf36b5bcf 100644 --- a/services/mgmt/mediaservices/src/package_2021_05/operations.rs +++ b/services/mgmt/mediaservices/src/package_2021_05/operations.rs @@ -233,9 +233,9 @@ pub mod account_filters { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -254,6 +254,9 @@ pub mod account_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -542,9 +545,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Media/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -563,6 +566,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -731,9 +737,9 @@ pub mod mediaservices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -752,6 +758,9 @@ pub mod mediaservices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1131,9 +1140,9 @@ pub mod mediaservices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1152,6 +1161,9 @@ pub mod mediaservices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1840,9 +1852,9 @@ pub mod assets { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1861,6 +1873,9 @@ pub mod assets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2416,9 +2431,9 @@ pub mod asset_filters { &this.asset_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2437,6 +2452,9 @@ pub mod asset_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2854,9 +2872,9 @@ pub mod content_key_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2875,6 +2893,9 @@ pub mod content_key_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3319,9 +3340,9 @@ pub mod transforms { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3340,6 +3361,9 @@ pub mod transforms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3763,9 +3787,9 @@ pub mod jobs { &this.transform_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3784,6 +3808,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4209,9 +4236,9 @@ pub mod streaming_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4230,6 +4257,9 @@ pub mod streaming_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4581,9 +4611,9 @@ pub mod streaming_locators { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4602,6 +4632,9 @@ pub mod streaming_locators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5083,9 +5116,9 @@ pub mod live_events { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5104,6 +5137,9 @@ pub mod live_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5722,9 +5758,9 @@ pub mod live_outputs { &this.live_event_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5743,6 +5779,9 @@ pub mod live_outputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6123,9 +6162,9 @@ pub mod streaming_endpoints { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6144,6 +6183,9 @@ pub mod streaming_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mediaservices/src/package_2021_06/models.rs b/services/mgmt/mediaservices/src/package_2021_06/models.rs index d9aca43185..ab58253188 100644 --- a/services/mgmt/mediaservices/src/package_2021_06/models.rs +++ b/services/mgmt/mediaservices/src/package_2021_06/models.rs @@ -218,8 +218,8 @@ pub struct AccountFilterCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AccountFilterCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountFilterCollection { @@ -289,8 +289,8 @@ pub struct AssetCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AssetCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssetCollection { @@ -360,8 +360,8 @@ pub struct AssetFilterCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AssetFilterCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssetFilterCollection { @@ -899,8 +899,8 @@ pub struct ContentKeyPolicyCollection { pub odata_next_link: Option, } impl azure_core::Continuable for ContentKeyPolicyCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentKeyPolicyCollection { @@ -1953,7 +1953,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2851,8 +2851,8 @@ pub struct JobCollection { pub odata_next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -3862,8 +3862,8 @@ pub struct LiveEventListResult { pub odata_next_link: Option, } impl azure_core::Continuable for LiveEventListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LiveEventListResult { @@ -4079,8 +4079,8 @@ pub struct LiveOutputListResult { pub odata_next_link: Option, } impl azure_core::Continuable for LiveOutputListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LiveOutputListResult { @@ -4251,8 +4251,8 @@ pub struct MediaServiceCollection { pub odata_next_link: Option, } impl azure_core::Continuable for MediaServiceCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MediaServiceCollection { @@ -5664,8 +5664,8 @@ pub struct StreamingEndpointListResult { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingEndpointListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingEndpointListResult { @@ -5835,8 +5835,8 @@ pub struct StreamingLocatorCollection { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingLocatorCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingLocatorCollection { @@ -6104,8 +6104,8 @@ pub struct StreamingPolicyCollection { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingPolicyCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingPolicyCollection { @@ -6400,8 +6400,8 @@ pub struct TransformCollection { pub odata_next_link: Option, } impl azure_core::Continuable for TransformCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransformCollection { diff --git a/services/mgmt/mediaservices/src/package_2021_06/operations.rs b/services/mgmt/mediaservices/src/package_2021_06/operations.rs index f6fcc44366..d51adba409 100644 --- a/services/mgmt/mediaservices/src/package_2021_06/operations.rs +++ b/services/mgmt/mediaservices/src/package_2021_06/operations.rs @@ -309,9 +309,9 @@ pub mod mediaservices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -330,6 +330,9 @@ pub mod mediaservices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -709,9 +712,9 @@ pub mod mediaservices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -730,6 +733,9 @@ pub mod mediaservices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1355,9 +1361,9 @@ pub mod account_filters { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1376,6 +1382,9 @@ pub mod account_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1819,9 +1828,9 @@ pub mod assets { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1840,6 +1849,9 @@ pub mod assets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2395,9 +2407,9 @@ pub mod asset_filters { &this.asset_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2416,6 +2428,9 @@ pub mod asset_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2833,9 +2848,9 @@ pub mod content_key_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2854,6 +2869,9 @@ pub mod content_key_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3298,9 +3316,9 @@ pub mod transforms { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3319,6 +3337,9 @@ pub mod transforms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3742,9 +3763,9 @@ pub mod jobs { &this.transform_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3763,6 +3784,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4188,9 +4212,9 @@ pub mod streaming_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4209,6 +4233,9 @@ pub mod streaming_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4560,9 +4587,9 @@ pub mod streaming_locators { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4581,6 +4608,9 @@ pub mod streaming_locators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5062,9 +5092,9 @@ pub mod live_events { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5083,6 +5113,9 @@ pub mod live_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5701,9 +5734,9 @@ pub mod live_outputs { &this.live_event_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5722,6 +5755,9 @@ pub mod live_outputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6102,9 +6138,9 @@ pub mod streaming_endpoints { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6123,6 +6159,9 @@ pub mod streaming_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mediaservices/src/package_2021_11/models.rs b/services/mgmt/mediaservices/src/package_2021_11/models.rs index 3a324833f1..334eba3851 100644 --- a/services/mgmt/mediaservices/src/package_2021_11/models.rs +++ b/services/mgmt/mediaservices/src/package_2021_11/models.rs @@ -218,8 +218,8 @@ pub struct AccountFilterCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AccountFilterCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountFilterCollection { @@ -352,8 +352,8 @@ pub struct AssetCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AssetCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssetCollection { @@ -423,8 +423,8 @@ pub struct AssetFilterCollection { pub odata_next_link: Option, } impl azure_core::Continuable for AssetFilterCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssetFilterCollection { @@ -562,7 +562,7 @@ pub struct AssetTrackCollection { pub value: Vec, } impl azure_core::Continuable for AssetTrackCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1093,8 +1093,8 @@ pub struct ContentKeyPolicyCollection { pub odata_next_link: Option, } impl azure_core::Continuable for ContentKeyPolicyCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContentKeyPolicyCollection { @@ -2147,7 +2147,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3119,8 +3119,8 @@ pub struct JobCollection { pub odata_next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -4122,8 +4122,8 @@ pub struct LiveEventListResult { pub odata_next_link: Option, } impl azure_core::Continuable for LiveEventListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LiveEventListResult { @@ -4339,8 +4339,8 @@ pub struct LiveOutputListResult { pub odata_next_link: Option, } impl azure_core::Continuable for LiveOutputListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LiveOutputListResult { @@ -4511,8 +4511,8 @@ pub struct MediaServiceCollection { pub odata_next_link: Option, } impl azure_core::Continuable for MediaServiceCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MediaServiceCollection { @@ -5928,8 +5928,8 @@ pub struct StreamingEndpointListResult { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingEndpointListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingEndpointListResult { @@ -6110,8 +6110,8 @@ pub struct StreamingLocatorCollection { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingLocatorCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingLocatorCollection { @@ -6379,8 +6379,8 @@ pub struct StreamingPolicyCollection { pub odata_next_link: Option, } impl azure_core::Continuable for StreamingPolicyCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingPolicyCollection { @@ -6760,8 +6760,8 @@ pub struct TransformCollection { pub odata_next_link: Option, } impl azure_core::Continuable for TransformCollection { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransformCollection { diff --git a/services/mgmt/mediaservices/src/package_2021_11/operations.rs b/services/mgmt/mediaservices/src/package_2021_11/operations.rs index f31ad97791..d8242f295f 100644 --- a/services/mgmt/mediaservices/src/package_2021_11/operations.rs +++ b/services/mgmt/mediaservices/src/package_2021_11/operations.rs @@ -242,9 +242,9 @@ pub mod account_filters { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -263,6 +263,9 @@ pub mod account_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -714,9 +717,9 @@ pub mod mediaservices { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -735,6 +738,9 @@ pub mod mediaservices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1114,9 +1120,9 @@ pub mod mediaservices { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1135,6 +1141,9 @@ pub mod mediaservices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1828,9 +1837,9 @@ pub mod assets { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1849,6 +1858,9 @@ pub mod assets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2404,9 +2416,9 @@ pub mod asset_filters { &this.asset_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2425,6 +2437,9 @@ pub mod asset_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3457,9 +3472,9 @@ pub mod content_key_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3478,6 +3493,9 @@ pub mod content_key_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3922,9 +3940,9 @@ pub mod transforms { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3943,6 +3961,9 @@ pub mod transforms { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4366,9 +4387,9 @@ pub mod jobs { &this.transform_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4387,6 +4408,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4812,9 +4836,9 @@ pub mod streaming_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4833,6 +4857,9 @@ pub mod streaming_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5184,9 +5211,9 @@ pub mod streaming_locators { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5205,6 +5232,9 @@ pub mod streaming_locators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5686,9 +5716,9 @@ pub mod live_events { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5707,6 +5737,9 @@ pub mod live_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6325,9 +6358,9 @@ pub mod live_outputs { &this.live_event_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6346,6 +6379,9 @@ pub mod live_outputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6742,9 +6778,9 @@ pub mod streaming_endpoints { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6763,6 +6799,9 @@ pub mod streaming_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/migrate/src/package_2018_02/models.rs b/services/mgmt/migrate/src/package_2018_02/models.rs index da979a6c06..7d6c35f906 100644 --- a/services/mgmt/migrate/src/package_2018_02/models.rs +++ b/services/mgmt/migrate/src/package_2018_02/models.rs @@ -1032,7 +1032,7 @@ pub struct AssessedMachineResultList { pub value: Vec, } impl azure_core::Continuable for AssessedMachineResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2015,7 +2015,7 @@ pub struct AssessmentResultList { pub value: Vec, } impl azure_core::Continuable for AssessmentResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2083,7 +2083,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2205,7 +2205,7 @@ pub struct GroupResultList { pub value: Vec, } impl azure_core::Continuable for GroupResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2347,7 +2347,7 @@ pub struct MachineResultList { pub value: Vec, } impl azure_core::Continuable for MachineResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2418,7 +2418,7 @@ pub struct OperationResultList { pub value: Vec, } impl azure_core::Continuable for OperationResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2614,7 +2614,7 @@ pub struct ProjectResultList { pub value: Vec, } impl azure_core::Continuable for ProjectResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/migrate/src/package_2019_10/models.rs b/services/mgmt/migrate/src/package_2019_10/models.rs index 369bd7407b..a726bbb98f 100644 --- a/services/mgmt/migrate/src/package_2019_10/models.rs +++ b/services/mgmt/migrate/src/package_2019_10/models.rs @@ -1279,8 +1279,8 @@ pub struct AssessedMachineResultList { pub next_link: Option, } impl azure_core::Continuable for AssessedMachineResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssessedMachineResultList { @@ -1537,7 +1537,7 @@ pub struct AssessmentOptionsResultList { pub value: Vec, } impl azure_core::Continuable for AssessmentOptionsResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2484,7 +2484,7 @@ pub struct AssessmentResultList { pub value: Vec, } impl azure_core::Continuable for AssessmentResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2501,7 +2501,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2787,7 +2787,7 @@ pub struct GroupResultList { pub value: Vec, } impl azure_core::Continuable for GroupResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2822,7 +2822,7 @@ pub struct HyperVCollectorList { pub value: Vec, } impl azure_core::Continuable for HyperVCollectorList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2857,7 +2857,7 @@ pub struct ImportCollectorList { pub value: Vec, } impl azure_core::Continuable for ImportCollectorList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3015,8 +3015,8 @@ pub struct MachineResultList { pub next_link: Option, } impl azure_core::Continuable for MachineResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineResultList { @@ -3089,7 +3089,7 @@ pub struct OperationResultList { pub value: Vec, } impl azure_core::Continuable for OperationResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3432,8 +3432,8 @@ pub struct ProjectResultList { pub next_link: Option, } impl azure_core::Continuable for ProjectResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProjectResultList { @@ -3478,7 +3478,7 @@ pub struct ServerCollectorList { pub value: Vec, } impl azure_core::Continuable for ServerCollectorList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3528,7 +3528,7 @@ pub struct VMwareCollectorList { pub value: Vec, } impl azure_core::Continuable for VMwareCollectorList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/migrate/src/package_2019_10/operations.rs b/services/mgmt/migrate/src/package_2019_10/operations.rs index 2e98c434e5..2e34315146 100644 --- a/services/mgmt/migrate/src/package_2019_10/operations.rs +++ b/services/mgmt/migrate/src/package_2019_10/operations.rs @@ -238,9 +238,9 @@ pub mod projects { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -259,6 +259,9 @@ pub mod projects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -314,9 +317,9 @@ pub mod projects { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -335,6 +338,9 @@ pub mod projects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -773,9 +779,9 @@ pub mod machines { &this.project_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -794,6 +800,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1753,9 +1762,9 @@ pub mod assessed_machines { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Migrate/assessmentProjects/{}/groups/{}/assessments/{}/assessedMachines" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . project_name , & this . group_name , & this . assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1774,6 +1783,9 @@ pub mod assessed_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/migrate/src/package_2020_01/models.rs b/services/mgmt/migrate/src/package_2020_01/models.rs index 96686aa9b7..83f8eb7337 100644 --- a/services/mgmt/migrate/src/package_2020_01/models.rs +++ b/services/mgmt/migrate/src/package_2020_01/models.rs @@ -285,8 +285,8 @@ pub struct HyperVClusterCollection { pub next_link: Option, } impl azure_core::Continuable for HyperVClusterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVClusterCollection { @@ -389,8 +389,8 @@ pub struct HyperVHostCollection { pub next_link: Option, } impl azure_core::Continuable for HyperVHostCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVHostCollection { @@ -457,8 +457,8 @@ pub struct HyperVJobCollection { pub next_link: Option, } impl azure_core::Continuable for HyperVJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVJobCollection { @@ -498,8 +498,8 @@ pub struct HyperVMachineCollection { pub next_link: Option, } impl azure_core::Continuable for HyperVMachineCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVMachineCollection { @@ -690,8 +690,8 @@ pub struct HyperVRunAsAccountCollection { pub next_link: Option, } impl azure_core::Continuable for HyperVRunAsAccountCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVRunAsAccountCollection { @@ -1050,8 +1050,8 @@ pub struct OperationResultList { pub next_link: Option, } impl azure_core::Continuable for OperationResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationResultList { @@ -1328,8 +1328,8 @@ pub struct SiteHealthSummaryCollection { pub next_link: Option, } impl azure_core::Continuable for SiteHealthSummaryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteHealthSummaryCollection { @@ -1448,8 +1448,8 @@ pub struct VCenterCollection { pub next_link: Option, } impl azure_core::Continuable for VCenterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VCenterCollection { @@ -1618,8 +1618,8 @@ pub struct VMwareJobCollection { pub next_link: Option, } impl azure_core::Continuable for VMwareJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VMwareJobCollection { @@ -1659,8 +1659,8 @@ pub struct VMwareMachineCollection { pub next_link: Option, } impl azure_core::Continuable for VMwareMachineCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VMwareMachineCollection { @@ -1844,8 +1844,8 @@ pub struct VMwareRunAsAccountCollection { pub next_link: Option, } impl azure_core::Continuable for VMwareRunAsAccountCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VMwareRunAsAccountCollection { diff --git a/services/mgmt/migrate/src/package_2020_01/operations.rs b/services/mgmt/migrate/src/package_2020_01/operations.rs index 698d0d3adc..cea01ab1f4 100644 --- a/services/mgmt/migrate/src/package_2020_01/operations.rs +++ b/services/mgmt/migrate/src/package_2020_01/operations.rs @@ -305,9 +305,9 @@ pub mod hyper_v_cluster { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -326,6 +326,9 @@ pub mod hyper_v_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -552,9 +555,9 @@ pub mod hyper_v_host { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -573,6 +576,9 @@ pub mod hyper_v_host { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -723,9 +729,9 @@ pub mod hyper_v_jobs { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -744,6 +750,9 @@ pub mod hyper_v_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -915,9 +924,9 @@ pub mod hyper_v_machines { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -936,6 +945,9 @@ pub mod hyper_v_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1173,9 +1185,9 @@ pub mod hyper_v_run_as_accounts { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1194,6 +1206,9 @@ pub mod hyper_v_run_as_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1639,9 +1654,9 @@ pub mod hyper_v_sites { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1660,6 +1675,9 @@ pub mod hyper_v_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1861,9 +1879,9 @@ pub mod jobs { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1882,6 +1900,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2085,9 +2106,9 @@ pub mod machines { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2106,6 +2127,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2369,9 +2393,9 @@ pub mod run_as_accounts { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2390,6 +2414,9 @@ pub mod run_as_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2835,9 +2862,9 @@ pub mod sites { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2856,6 +2883,9 @@ pub mod sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3204,9 +3234,9 @@ pub mod v_center { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3225,6 +3255,9 @@ pub mod v_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3363,9 +3396,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.OffAzure/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3384,6 +3417,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/migrate/src/package_2020_05/models.rs b/services/mgmt/migrate/src/package_2020_05/models.rs index d6f5e05c4d..3c2b17e037 100644 --- a/services/mgmt/migrate/src/package_2020_05/models.rs +++ b/services/mgmt/migrate/src/package_2020_05/models.rs @@ -15,7 +15,7 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -32,7 +32,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -448,8 +448,8 @@ pub struct ProjectResultList { pub next_link: Option, } impl azure_core::Continuable for ProjectResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProjectResultList { diff --git a/services/mgmt/migrate/src/package_2020_05/operations.rs b/services/mgmt/migrate/src/package_2020_05/operations.rs index a0505e08f3..611ac7dd6c 100644 --- a/services/mgmt/migrate/src/package_2020_05/operations.rs +++ b/services/mgmt/migrate/src/package_2020_05/operations.rs @@ -819,9 +819,9 @@ pub mod projects { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -840,6 +840,9 @@ pub mod projects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -895,9 +898,9 @@ pub mod projects { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -916,6 +919,9 @@ pub mod projects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/migrate/src/package_2020_07/models.rs b/services/mgmt/migrate/src/package_2020_07/models.rs index 9c2aeb092c..dc9348e4a1 100644 --- a/services/mgmt/migrate/src/package_2020_07/models.rs +++ b/services/mgmt/migrate/src/package_2020_07/models.rs @@ -101,7 +101,7 @@ pub struct AvailableOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableOperations { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -133,7 +133,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -343,8 +343,8 @@ pub struct HyperVClusterCollection { pub next_link: Option, } impl azure_core::Continuable for HyperVClusterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVClusterCollection { @@ -447,8 +447,8 @@ pub struct HyperVHostCollection { pub next_link: Option, } impl azure_core::Continuable for HyperVHostCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVHostCollection { @@ -515,8 +515,8 @@ pub struct HyperVJobCollection { pub next_link: Option, } impl azure_core::Continuable for HyperVJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVJobCollection { @@ -556,8 +556,8 @@ pub struct HyperVMachineCollection { pub next_link: Option, } impl azure_core::Continuable for HyperVMachineCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVMachineCollection { @@ -748,8 +748,8 @@ pub struct HyperVRunAsAccountCollection { pub next_link: Option, } impl azure_core::Continuable for HyperVRunAsAccountCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVRunAsAccountCollection { @@ -820,8 +820,8 @@ pub struct HyperVSitesResultList { pub next_link: Option, } impl azure_core::Continuable for HyperVSitesResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HyperVSitesResultList { @@ -1036,8 +1036,8 @@ pub struct MasterSiteList { pub next_link: Option, } impl azure_core::Continuable for MasterSiteList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MasterSiteList { @@ -1622,8 +1622,8 @@ pub struct SiteHealthSummaryCollection { pub next_link: Option, } impl azure_core::Continuable for SiteHealthSummaryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteHealthSummaryCollection { @@ -1742,8 +1742,8 @@ pub struct VCenterCollection { pub next_link: Option, } impl azure_core::Continuable for VCenterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VCenterCollection { @@ -1797,8 +1797,8 @@ pub struct VmWareSitesResultList { pub next_link: Option, } impl azure_core::Continuable for VmWareSitesResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VmWareSitesResultList { @@ -1931,8 +1931,8 @@ pub struct VMwareJobCollection { pub next_link: Option, } impl azure_core::Continuable for VMwareJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VMwareJobCollection { @@ -1972,8 +1972,8 @@ pub struct VMwareMachineCollection { pub next_link: Option, } impl azure_core::Continuable for VMwareMachineCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VMwareMachineCollection { @@ -2157,8 +2157,8 @@ pub struct VMwareRunAsAccountCollection { pub next_link: Option, } impl azure_core::Continuable for VMwareRunAsAccountCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VMwareRunAsAccountCollection { diff --git a/services/mgmt/migrate/src/package_2020_07/operations.rs b/services/mgmt/migrate/src/package_2020_07/operations.rs index 1e712894e1..cea743b8d0 100644 --- a/services/mgmt/migrate/src/package_2020_07/operations.rs +++ b/services/mgmt/migrate/src/package_2020_07/operations.rs @@ -317,9 +317,9 @@ pub mod hyper_v_cluster { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -338,6 +338,9 @@ pub mod hyper_v_cluster { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -564,9 +567,9 @@ pub mod hyper_v_host { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -585,6 +588,9 @@ pub mod hyper_v_host { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -735,9 +741,9 @@ pub mod hyper_v_jobs { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -756,6 +762,9 @@ pub mod hyper_v_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -927,9 +936,9 @@ pub mod hyper_v_machines { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -948,6 +957,9 @@ pub mod hyper_v_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1185,9 +1197,9 @@ pub mod hyper_v_run_as_accounts { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1206,6 +1218,9 @@ pub mod hyper_v_run_as_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1666,9 +1681,9 @@ pub mod hyper_v_sites { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1687,6 +1702,9 @@ pub mod hyper_v_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1794,9 +1812,9 @@ pub mod hyper_v_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1815,6 +1833,9 @@ pub mod hyper_v_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1870,9 +1891,9 @@ pub mod hyper_v_sites { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1891,6 +1912,9 @@ pub mod hyper_v_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2038,9 +2062,9 @@ pub mod jobs { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2059,6 +2083,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2262,9 +2289,9 @@ pub mod machines { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2283,6 +2310,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2546,9 +2576,9 @@ pub mod run_as_accounts { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2567,6 +2597,9 @@ pub mod run_as_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3012,9 +3045,9 @@ pub mod sites { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3033,6 +3066,9 @@ pub mod sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3381,9 +3417,9 @@ pub mod v_center { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3402,6 +3438,9 @@ pub mod v_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3615,9 +3654,9 @@ pub mod master_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3636,6 +3675,9 @@ pub mod master_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3691,9 +3733,9 @@ pub mod master_sites { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3712,6 +3754,9 @@ pub mod master_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4458,9 +4503,9 @@ pub mod v_mware_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4479,6 +4524,9 @@ pub mod v_mware_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4534,9 +4582,9 @@ pub mod v_mware_sites { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4555,6 +4603,9 @@ pub mod v_mware_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/migrateprojects/src/package_2018_09/models.rs b/services/mgmt/migrateprojects/src/package_2018_09/models.rs index 07cf36ec1d..4d3e3748ff 100644 --- a/services/mgmt/migrateprojects/src/package_2018_09/models.rs +++ b/services/mgmt/migrateprojects/src/package_2018_09/models.rs @@ -1364,7 +1364,7 @@ pub struct OperationResultList { pub value: Vec, } impl azure_core::Continuable for OperationResultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/models.rs b/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/models.rs index c32cd4ccab..9d814c344d 100644 --- a/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/models.rs @@ -89,8 +89,8 @@ pub struct AttachedDataNetworkListResult { pub next_link: Option, } impl azure_core::Continuable for AttachedDataNetworkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AttachedDataNetworkListResult { @@ -345,8 +345,8 @@ pub struct DataNetworkListResult { pub next_link: Option, } impl azure_core::Continuable for DataNetworkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataNetworkListResult { @@ -427,7 +427,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -486,8 +486,8 @@ pub struct MobileNetworkListResult { pub next_link: Option, } impl azure_core::Continuable for MobileNetworkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MobileNetworkListResult { @@ -647,8 +647,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -687,8 +687,8 @@ pub struct PacketCoreControlPlaneListResult { pub next_link: Option, } impl azure_core::Continuable for PacketCoreControlPlaneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PacketCoreControlPlaneListResult { @@ -761,8 +761,8 @@ pub struct PacketCoreDataPlaneListResult { pub next_link: Option, } impl azure_core::Continuable for PacketCoreDataPlaneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PacketCoreDataPlaneListResult { @@ -1252,8 +1252,8 @@ pub struct ServiceListResult { pub next_link: Option, } impl azure_core::Continuable for ServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceListResult { @@ -1344,8 +1344,8 @@ pub struct SimListResult { pub next_link: Option, } impl azure_core::Continuable for SimListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SimListResult { @@ -1384,8 +1384,8 @@ pub struct SimPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for SimPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SimPolicyListResult { @@ -1553,8 +1553,8 @@ pub struct SiteListResult { pub next_link: Option, } impl azure_core::Continuable for SiteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteListResult { @@ -1633,8 +1633,8 @@ pub struct SliceListResult { pub next_link: Option, } impl azure_core::Continuable for SliceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SliceListResult { diff --git a/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/operations.rs b/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/operations.rs index bc7d47a304..d757590723 100644 --- a/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/operations.rs +++ b/services/mgmt/mobilenetwork/src/package_2022_01_01_preview/operations.rs @@ -428,9 +428,9 @@ pub mod attached_data_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{}/packetCoreDataPlanes/{}/attachedDataNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . packet_core_control_plane_name , & this . packet_core_data_plane_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -449,6 +449,9 @@ pub mod attached_data_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -823,9 +826,9 @@ pub mod data_networks { &this.mobile_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -844,6 +847,9 @@ pub mod data_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1215,9 +1221,9 @@ pub mod mobile_networks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1236,6 +1242,9 @@ pub mod mobile_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1291,9 +1300,9 @@ pub mod mobile_networks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1312,6 +1321,9 @@ pub mod mobile_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1749,9 +1761,9 @@ pub mod sites { &this.mobile_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1770,6 +1782,9 @@ pub mod sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2128,9 +2143,9 @@ pub mod sims { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2149,6 +2164,9 @@ pub mod sims { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2204,9 +2222,9 @@ pub mod sims { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2225,6 +2243,9 @@ pub mod sims { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2283,9 +2304,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.MobileNetwork/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2304,6 +2325,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2662,9 +2686,9 @@ pub mod packet_core_control_planes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2683,6 +2707,9 @@ pub mod packet_core_control_planes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2738,9 +2765,9 @@ pub mod packet_core_control_planes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2759,6 +2786,9 @@ pub mod packet_core_control_planes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3099,9 +3129,9 @@ pub mod packet_core_data_planes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{}/packetCoreDataPlanes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . packet_core_control_plane_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3120,6 +3150,9 @@ pub mod packet_core_data_planes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3494,9 +3527,9 @@ pub mod services { &this.mobile_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3515,6 +3548,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3889,9 +3925,9 @@ pub mod sim_policies { &this.mobile_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3910,6 +3946,9 @@ pub mod sim_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4284,9 +4323,9 @@ pub mod slices { &this.mobile_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4305,6 +4344,9 @@ pub mod slices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/models.rs b/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/models.rs index 2929507f93..96643e26d7 100644 --- a/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/models.rs +++ b/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/models.rs @@ -89,8 +89,8 @@ pub struct AttachedDataNetworkListResult { pub next_link: Option, } impl azure_core::Continuable for AttachedDataNetworkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AttachedDataNetworkListResult { @@ -308,8 +308,8 @@ pub struct DataNetworkListResult { pub next_link: Option, } impl azure_core::Continuable for DataNetworkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataNetworkListResult { @@ -390,7 +390,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -463,8 +463,8 @@ pub struct MobileNetworkListResult { pub next_link: Option, } impl azure_core::Continuable for MobileNetworkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MobileNetworkListResult { @@ -624,8 +624,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -664,8 +664,8 @@ pub struct PacketCoreControlPlaneListResult { pub next_link: Option, } impl azure_core::Continuable for PacketCoreControlPlaneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PacketCoreControlPlaneListResult { @@ -738,8 +738,8 @@ pub struct PacketCoreDataPlaneListResult { pub next_link: Option, } impl azure_core::Continuable for PacketCoreDataPlaneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PacketCoreDataPlaneListResult { @@ -1232,8 +1232,8 @@ pub struct ServiceListResult { pub next_link: Option, } impl azure_core::Continuable for ServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceListResult { @@ -1324,8 +1324,8 @@ pub struct SimListResult { pub next_link: Option, } impl azure_core::Continuable for SimListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SimListResult { @@ -1364,8 +1364,8 @@ pub struct SimPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for SimPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SimPolicyListResult { @@ -1572,8 +1572,8 @@ pub struct SiteListResult { pub next_link: Option, } impl azure_core::Continuable for SiteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteListResult { @@ -1652,8 +1652,8 @@ pub struct SliceListResult { pub next_link: Option, } impl azure_core::Continuable for SliceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SliceListResult { diff --git a/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/operations.rs b/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/operations.rs index f035ad53ff..537e7ceed6 100644 --- a/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/operations.rs +++ b/services/mgmt/mobilenetwork/src/package_2022_03_01_preview/operations.rs @@ -428,9 +428,9 @@ pub mod attached_data_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{}/packetCoreDataPlanes/{}/attachedDataNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . packet_core_control_plane_name , & this . packet_core_data_plane_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -449,6 +449,9 @@ pub mod attached_data_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -823,9 +826,9 @@ pub mod data_networks { &this.mobile_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -844,6 +847,9 @@ pub mod data_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1215,9 +1221,9 @@ pub mod mobile_networks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1236,6 +1242,9 @@ pub mod mobile_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1291,9 +1300,9 @@ pub mod mobile_networks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1312,6 +1321,9 @@ pub mod mobile_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1749,9 +1761,9 @@ pub mod sites { &this.mobile_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1770,6 +1782,9 @@ pub mod sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2128,9 +2143,9 @@ pub mod sims { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2149,6 +2164,9 @@ pub mod sims { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2204,9 +2222,9 @@ pub mod sims { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2225,6 +2243,9 @@ pub mod sims { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2283,9 +2304,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.MobileNetwork/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2304,6 +2325,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2662,9 +2686,9 @@ pub mod packet_core_control_planes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2683,6 +2707,9 @@ pub mod packet_core_control_planes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2738,9 +2765,9 @@ pub mod packet_core_control_planes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2759,6 +2786,9 @@ pub mod packet_core_control_planes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3099,9 +3129,9 @@ pub mod packet_core_data_planes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{}/packetCoreDataPlanes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . packet_core_control_plane_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3120,6 +3150,9 @@ pub mod packet_core_data_planes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3494,9 +3527,9 @@ pub mod services { &this.mobile_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3515,6 +3548,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3889,9 +3925,9 @@ pub mod sim_policies { &this.mobile_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3910,6 +3946,9 @@ pub mod sim_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4284,9 +4323,9 @@ pub mod slices { &this.mobile_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4305,6 +4344,9 @@ pub mod slices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/monitor/src/package_2019_11/models.rs b/services/mgmt/monitor/src/package_2019_11/models.rs index b28320679d..7d2324171f 100644 --- a/services/mgmt/monitor/src/package_2019_11/models.rs +++ b/services/mgmt/monitor/src/package_2019_11/models.rs @@ -84,7 +84,7 @@ pub struct ActionGroupList { pub next_link: Option, } impl azure_core::Continuable for ActionGroupList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -230,7 +230,7 @@ pub struct ActivityLogAlertList { pub next_link: Option, } impl azure_core::Continuable for ActivityLogAlertList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -354,7 +354,7 @@ pub struct AlertRuleResourceCollection { pub value: Vec, } impl azure_core::Continuable for AlertRuleResourceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -624,8 +624,8 @@ pub struct AutoscaleSettingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for AutoscaleSettingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutoscaleSettingResourceCollection { @@ -735,8 +735,8 @@ pub struct AzureMonitorPrivateLinkScopeListResult { pub next_link: Option, } impl azure_core::Continuable for AzureMonitorPrivateLinkScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureMonitorPrivateLinkScopeListResult { @@ -1277,7 +1277,7 @@ pub struct ErrorContract { pub error: Option, } impl azure_core::Continuable for ErrorContract { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1297,7 +1297,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1330,7 +1330,7 @@ pub struct EventCategoryCollection { pub value: Vec, } impl azure_core::Continuable for EventCategoryCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1442,8 +1442,8 @@ pub struct EventDataCollection { pub next_link: Option, } impl azure_core::Continuable for EventDataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventDataCollection { @@ -1504,7 +1504,7 @@ pub struct IncidentListResult { pub value: Vec, } impl azure_core::Continuable for IncidentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1607,7 +1607,7 @@ pub struct LogProfileCollection { pub value: Vec, } impl azure_core::Continuable for LogProfileCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1882,7 +1882,7 @@ pub struct LogSearchRuleResourceCollection { pub value: Vec, } impl azure_core::Continuable for LogSearchRuleResourceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2282,7 +2282,7 @@ pub struct MetricAlertResourceCollection { pub value: Vec, } impl azure_core::Continuable for MetricAlertResourceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2420,7 +2420,7 @@ pub struct MetricBaselinesResponse { pub value: Vec, } impl azure_core::Continuable for MetricBaselinesResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2592,7 +2592,7 @@ pub struct MetricDefinitionCollection { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2647,7 +2647,7 @@ pub struct MetricNamespaceCollection { pub value: Vec, } impl azure_core::Continuable for MetricNamespaceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3145,8 +3145,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -3209,8 +3209,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -3856,8 +3856,8 @@ pub struct ScopedResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ScopedResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScopedResourceListResult { diff --git a/services/mgmt/monitor/src/package_2019_11/operations.rs b/services/mgmt/monitor/src/package_2019_11/operations.rs index 74cc13977e..4f023b9852 100644 --- a/services/mgmt/monitor/src/package_2019_11/operations.rs +++ b/services/mgmt/monitor/src/package_2019_11/operations.rs @@ -252,9 +252,9 @@ pub mod autoscale_settings { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -273,6 +273,9 @@ pub mod autoscale_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -548,9 +551,9 @@ pub mod autoscale_settings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -569,6 +572,9 @@ pub mod autoscale_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3011,9 +3017,9 @@ pub mod activity_logs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3032,6 +3038,9 @@ pub mod activity_logs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3165,9 +3174,9 @@ pub mod tenant_activity_logs { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3186,6 +3195,9 @@ pub mod tenant_activity_logs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4749,9 +4761,9 @@ pub mod private_link_scopes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4770,6 +4782,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4825,9 +4840,9 @@ pub mod private_link_scopes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4846,6 +4861,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5233,9 +5251,9 @@ pub mod private_link_resources { &this.scope_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5254,6 +5272,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5571,9 +5592,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/privateLinkScopes/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5592,6 +5613,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5895,9 +5919,9 @@ pub mod private_link_scoped_resources { &this.scope_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5916,6 +5940,9 @@ pub mod private_link_scoped_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/monitor/src/package_2020_03/models.rs b/services/mgmt/monitor/src/package_2020_03/models.rs index 38872c7fa4..e52e9794ac 100644 --- a/services/mgmt/monitor/src/package_2020_03/models.rs +++ b/services/mgmt/monitor/src/package_2020_03/models.rs @@ -84,7 +84,7 @@ pub struct ActionGroupList { pub next_link: Option, } impl azure_core::Continuable for ActionGroupList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -230,7 +230,7 @@ pub struct ActivityLogAlertList { pub next_link: Option, } impl azure_core::Continuable for ActivityLogAlertList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -354,7 +354,7 @@ pub struct AlertRuleResourceCollection { pub value: Vec, } impl azure_core::Continuable for AlertRuleResourceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -624,8 +624,8 @@ pub struct AutoscaleSettingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for AutoscaleSettingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutoscaleSettingResourceCollection { @@ -735,8 +735,8 @@ pub struct AzureMonitorPrivateLinkScopeListResult { pub next_link: Option, } impl azure_core::Continuable for AzureMonitorPrivateLinkScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureMonitorPrivateLinkScopeListResult { @@ -1277,7 +1277,7 @@ pub struct ErrorContract { pub error: Option, } impl azure_core::Continuable for ErrorContract { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1297,7 +1297,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1330,7 +1330,7 @@ pub struct EventCategoryCollection { pub value: Vec, } impl azure_core::Continuable for EventCategoryCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1442,8 +1442,8 @@ pub struct EventDataCollection { pub next_link: Option, } impl azure_core::Continuable for EventDataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventDataCollection { @@ -1504,7 +1504,7 @@ pub struct IncidentListResult { pub value: Vec, } impl azure_core::Continuable for IncidentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1607,7 +1607,7 @@ pub struct LogProfileCollection { pub value: Vec, } impl azure_core::Continuable for LogProfileCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1882,7 +1882,7 @@ pub struct LogSearchRuleResourceCollection { pub value: Vec, } impl azure_core::Continuable for LogSearchRuleResourceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2282,7 +2282,7 @@ pub struct MetricAlertResourceCollection { pub value: Vec, } impl azure_core::Continuable for MetricAlertResourceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2420,7 +2420,7 @@ pub struct MetricBaselinesResponse { pub value: Vec, } impl azure_core::Continuable for MetricBaselinesResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2592,7 +2592,7 @@ pub struct MetricDefinitionCollection { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2647,7 +2647,7 @@ pub struct MetricNamespaceCollection { pub value: Vec, } impl azure_core::Continuable for MetricNamespaceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3145,8 +3145,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -3209,8 +3209,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -3856,8 +3856,8 @@ pub struct ScopedResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ScopedResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScopedResourceListResult { diff --git a/services/mgmt/monitor/src/package_2020_03/operations.rs b/services/mgmt/monitor/src/package_2020_03/operations.rs index e6cb8fd451..8af773a34f 100644 --- a/services/mgmt/monitor/src/package_2020_03/operations.rs +++ b/services/mgmt/monitor/src/package_2020_03/operations.rs @@ -249,9 +249,9 @@ pub mod autoscale_settings { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -270,6 +270,9 @@ pub mod autoscale_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -545,9 +548,9 @@ pub mod autoscale_settings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -566,6 +569,9 @@ pub mod autoscale_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2767,9 +2773,9 @@ pub mod activity_logs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2788,6 +2794,9 @@ pub mod activity_logs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2921,9 +2930,9 @@ pub mod tenant_activity_logs { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2942,6 +2951,9 @@ pub mod tenant_activity_logs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4505,9 +4517,9 @@ pub mod private_link_scopes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4526,6 +4538,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4581,9 +4596,9 @@ pub mod private_link_scopes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4602,6 +4617,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4989,9 +5007,9 @@ pub mod private_link_resources { &this.scope_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5010,6 +5028,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5327,9 +5348,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/privateLinkScopes/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5348,6 +5369,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5651,9 +5675,9 @@ pub mod private_link_scoped_resources { &this.scope_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5672,6 +5696,9 @@ pub mod private_link_scoped_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/monitor/src/package_2021_04/models.rs b/services/mgmt/monitor/src/package_2021_04/models.rs index 5114a8da68..0c9e341f0a 100644 --- a/services/mgmt/monitor/src/package_2021_04/models.rs +++ b/services/mgmt/monitor/src/package_2021_04/models.rs @@ -84,7 +84,7 @@ pub struct ActionGroupList { pub next_link: Option, } impl azure_core::Continuable for ActionGroupList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -230,7 +230,7 @@ pub struct ActivityLogAlertList { pub next_link: Option, } impl azure_core::Continuable for ActivityLogAlertList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -354,7 +354,7 @@ pub struct AlertRuleResourceCollection { pub value: Vec, } impl azure_core::Continuable for AlertRuleResourceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -624,8 +624,8 @@ pub struct AutoscaleSettingResourceCollection { pub next_link: Option, } impl azure_core::Continuable for AutoscaleSettingResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutoscaleSettingResourceCollection { @@ -747,8 +747,8 @@ pub struct AzureMonitorPrivateLinkScopeListResult { pub next_link: Option, } impl azure_core::Continuable for AzureMonitorPrivateLinkScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureMonitorPrivateLinkScopeListResult { @@ -1075,8 +1075,8 @@ pub struct DataCollectionEndpointResourceListResult { pub next_link: Option, } impl azure_core::Continuable for DataCollectionEndpointResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataCollectionEndpointResourceListResult { @@ -1261,8 +1261,8 @@ pub struct DataCollectionRuleAssociationProxyOnlyResourceListResult { pub next_link: Option, } impl azure_core::Continuable for DataCollectionRuleAssociationProxyOnlyResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataCollectionRuleAssociationProxyOnlyResourceListResult { @@ -1365,8 +1365,8 @@ pub struct DataCollectionRuleResourceListResult { pub next_link: Option, } impl azure_core::Continuable for DataCollectionRuleResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataCollectionRuleResourceListResult { @@ -1819,7 +1819,7 @@ pub struct ErrorContract { pub error: Option, } impl azure_core::Continuable for ErrorContract { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1863,7 +1863,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1897,7 +1897,7 @@ pub struct ErrorResponseCommonV2 { pub error: Option, } impl azure_core::Continuable for ErrorResponseCommonV2 { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1913,7 +1913,7 @@ pub struct EventCategoryCollection { pub value: Vec, } impl azure_core::Continuable for EventCategoryCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2025,8 +2025,8 @@ pub struct EventDataCollection { pub next_link: Option, } impl azure_core::Continuable for EventDataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventDataCollection { @@ -2117,7 +2117,7 @@ pub struct IncidentListResult { pub value: Vec, } impl azure_core::Continuable for IncidentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2238,7 +2238,7 @@ pub struct LogProfileCollection { pub value: Vec, } impl azure_core::Continuable for LogProfileCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2513,7 +2513,7 @@ pub struct LogSearchRuleResourceCollection { pub value: Vec, } impl azure_core::Continuable for LogSearchRuleResourceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2925,7 +2925,7 @@ pub struct MetricAlertResourceCollection { pub value: Vec, } impl azure_core::Continuable for MetricAlertResourceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3063,7 +3063,7 @@ pub struct MetricBaselinesResponse { pub value: Vec, } impl azure_core::Continuable for MetricBaselinesResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3235,7 +3235,7 @@ pub struct MetricDefinitionCollection { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3290,7 +3290,7 @@ pub struct MetricNamespaceCollection { pub value: Vec, } impl azure_core::Continuable for MetricNamespaceCollection { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3861,8 +3861,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -3925,8 +3925,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -4584,8 +4584,8 @@ pub struct ScopedResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ScopedResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScopedResourceListResult { diff --git a/services/mgmt/monitor/src/package_2021_04/operations.rs b/services/mgmt/monitor/src/package_2021_04/operations.rs index a1e9be7a5c..589d3fd2f5 100644 --- a/services/mgmt/monitor/src/package_2021_04/operations.rs +++ b/services/mgmt/monitor/src/package_2021_04/operations.rs @@ -258,9 +258,9 @@ pub mod autoscale_settings { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -279,6 +279,9 @@ pub mod autoscale_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -554,9 +557,9 @@ pub mod autoscale_settings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -575,6 +578,9 @@ pub mod autoscale_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2375,9 +2381,9 @@ pub mod activity_logs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2396,6 +2402,9 @@ pub mod activity_logs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2529,9 +2538,9 @@ pub mod tenant_activity_logs { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2550,6 +2559,9 @@ pub mod tenant_activity_logs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4113,9 +4125,9 @@ pub mod private_link_scopes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4134,6 +4146,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4189,9 +4204,9 @@ pub mod private_link_scopes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4210,6 +4225,9 @@ pub mod private_link_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4597,9 +4615,9 @@ pub mod private_link_resources { &this.scope_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4618,6 +4636,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4935,9 +4956,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/privateLinkScopes/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . scope_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4956,6 +4977,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5259,9 +5283,9 @@ pub mod private_link_scoped_resources { &this.scope_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5280,6 +5304,9 @@ pub mod private_link_scoped_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5819,9 +5846,9 @@ pub mod data_collection_endpoints { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5840,6 +5867,9 @@ pub mod data_collection_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5893,9 +5923,9 @@ pub mod data_collection_endpoints { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5914,6 +5944,9 @@ pub mod data_collection_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6290,9 +6323,9 @@ pub mod data_collection_rules { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6311,6 +6344,9 @@ pub mod data_collection_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6364,9 +6400,9 @@ pub mod data_collection_rules { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6385,6 +6421,9 @@ pub mod data_collection_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6728,9 +6767,9 @@ pub mod data_collection_rule_associations { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6749,6 +6788,9 @@ pub mod data_collection_rule_associations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6807,9 +6849,9 @@ pub mod data_collection_rule_associations { &this.data_collection_rule_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6828,6 +6870,9 @@ pub mod data_collection_rule_associations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/msi/src/package_2015_08_31_preview/models.rs b/services/mgmt/msi/src/package_2015_08_31_preview/models.rs index 2d89c38d66..7f1be343a2 100644 --- a/services/mgmt/msi/src/package_2015_08_31_preview/models.rs +++ b/services/mgmt/msi/src/package_2015_08_31_preview/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -127,8 +127,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -220,8 +220,8 @@ pub struct UserAssignedIdentitiesListResult { pub next_link: Option, } impl azure_core::Continuable for UserAssignedIdentitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserAssignedIdentitiesListResult { diff --git a/services/mgmt/msi/src/package_2015_08_31_preview/operations.rs b/services/mgmt/msi/src/package_2015_08_31_preview/operations.rs index b0b2ce4225..92a475c988 100644 --- a/services/mgmt/msi/src/package_2015_08_31_preview/operations.rs +++ b/services/mgmt/msi/src/package_2015_08_31_preview/operations.rs @@ -169,9 +169,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -190,6 +190,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -322,9 +325,9 @@ pub mod user_assigned_identities { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -343,6 +346,9 @@ pub mod user_assigned_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -398,9 +404,9 @@ pub mod user_assigned_identities { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -419,6 +425,9 @@ pub mod user_assigned_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/msi/src/package_2018_11_30/models.rs b/services/mgmt/msi/src/package_2018_11_30/models.rs index ada8938b85..4fe563fe26 100644 --- a/services/mgmt/msi/src/package_2018_11_30/models.rs +++ b/services/mgmt/msi/src/package_2018_11_30/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -126,8 +126,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -240,8 +240,8 @@ pub struct UserAssignedIdentitiesListResult { pub next_link: Option, } impl azure_core::Continuable for UserAssignedIdentitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserAssignedIdentitiesListResult { diff --git a/services/mgmt/msi/src/package_2018_11_30/operations.rs b/services/mgmt/msi/src/package_2018_11_30/operations.rs index eb06d12937..ddf5a607c0 100644 --- a/services/mgmt/msi/src/package_2018_11_30/operations.rs +++ b/services/mgmt/msi/src/package_2018_11_30/operations.rs @@ -169,9 +169,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -190,6 +190,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -322,9 +325,9 @@ pub mod user_assigned_identities { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -343,6 +346,9 @@ pub mod user_assigned_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -398,9 +404,9 @@ pub mod user_assigned_identities { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -419,6 +425,9 @@ pub mod user_assigned_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/msi/src/package_preview_2021_09_30/models.rs b/services/mgmt/msi/src/package_preview_2021_09_30/models.rs index 26753009ce..a67b7a6c29 100644 --- a/services/mgmt/msi/src/package_preview_2021_09_30/models.rs +++ b/services/mgmt/msi/src/package_preview_2021_09_30/models.rs @@ -18,8 +18,8 @@ pub struct AssociatedResourcesListResult { pub next_link: Option, } impl azure_core::Continuable for AssociatedResourcesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssociatedResourcesListResult { @@ -62,7 +62,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -176,8 +176,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -290,8 +290,8 @@ pub struct UserAssignedIdentitiesListResult { pub next_link: Option, } impl azure_core::Continuable for UserAssignedIdentitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserAssignedIdentitiesListResult { diff --git a/services/mgmt/msi/src/package_preview_2021_09_30/operations.rs b/services/mgmt/msi/src/package_preview_2021_09_30/operations.rs index 5f2fcf5f55..38ee9b19dd 100644 --- a/services/mgmt/msi/src/package_preview_2021_09_30/operations.rs +++ b/services/mgmt/msi/src/package_preview_2021_09_30/operations.rs @@ -169,9 +169,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -190,6 +190,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -340,9 +343,9 @@ pub mod user_assigned_identities { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -361,6 +364,9 @@ pub mod user_assigned_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -416,9 +422,9 @@ pub mod user_assigned_identities { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -437,6 +443,9 @@ pub mod user_assigned_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -513,9 +522,9 @@ pub mod user_assigned_identities { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{}/listAssociatedResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -534,6 +543,9 @@ pub mod user_assigned_identities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/mysql/src/package_2020_01_01_privatepreview/models.rs b/services/mgmt/mysql/src/package_2020_01_01_privatepreview/models.rs index 62391ec06f..a2d3e762c9 100644 --- a/services/mgmt/mysql/src/package_2020_01_01_privatepreview/models.rs +++ b/services/mgmt/mysql/src/package_2020_01_01_privatepreview/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -99,8 +99,8 @@ pub struct ServerKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerKeyListResult { diff --git a/services/mgmt/mysql/src/package_2020_01_01_privatepreview/operations.rs b/services/mgmt/mysql/src/package_2020_01_01_privatepreview/operations.rs index 10f28d5d01..cddfa06cce 100644 --- a/services/mgmt/mysql/src/package_2020_01_01_privatepreview/operations.rs +++ b/services/mgmt/mysql/src/package_2020_01_01_privatepreview/operations.rs @@ -166,9 +166,9 @@ pub mod server_keys { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -187,6 +187,9 @@ pub mod server_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mysql/src/package_2020_07_01_preview/models.rs b/services/mgmt/mysql/src/package_2020_07_01_preview/models.rs index fc3f346409..a67e809419 100644 --- a/services/mgmt/mysql/src/package_2020_07_01_preview/models.rs +++ b/services/mgmt/mysql/src/package_2020_07_01_preview/models.rs @@ -15,8 +15,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -50,7 +50,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -84,8 +84,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -268,8 +268,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -385,8 +385,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -827,8 +827,8 @@ pub struct ServerKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerKeyListResult { @@ -907,8 +907,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { diff --git a/services/mgmt/mysql/src/package_2020_07_01_preview/operations.rs b/services/mgmt/mysql/src/package_2020_07_01_preview/operations.rs index a013adf053..645ee2437d 100644 --- a/services/mgmt/mysql/src/package_2020_07_01_preview/operations.rs +++ b/services/mgmt/mysql/src/package_2020_07_01_preview/operations.rs @@ -477,9 +477,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -498,6 +498,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -551,9 +554,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -572,6 +575,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -813,9 +819,9 @@ pub mod replicas { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -834,6 +840,9 @@ pub mod replicas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1137,9 +1146,9 @@ pub mod server_keys { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1158,6 +1167,9 @@ pub mod server_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1461,9 +1473,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1482,6 +1494,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1785,9 +1800,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1806,6 +1821,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2105,9 +2123,9 @@ pub mod configurations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2126,6 +2144,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2194,9 +2215,9 @@ pub mod location_based_capabilities { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2215,6 +2236,9 @@ pub mod location_based_capabilities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mysql/src/package_2020_07_01_privatepreview/models.rs b/services/mgmt/mysql/src/package_2020_07_01_privatepreview/models.rs index 6a445ae481..51e8e15920 100644 --- a/services/mgmt/mysql/src/package_2020_07_01_privatepreview/models.rs +++ b/services/mgmt/mysql/src/package_2020_07_01_privatepreview/models.rs @@ -15,8 +15,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -50,7 +50,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -84,8 +84,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -268,8 +268,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -385,8 +385,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -821,8 +821,8 @@ pub struct ServerKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerKeyListResult { @@ -901,8 +901,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { diff --git a/services/mgmt/mysql/src/package_2020_07_01_privatepreview/operations.rs b/services/mgmt/mysql/src/package_2020_07_01_privatepreview/operations.rs index b1f919dcfc..7e44df823c 100644 --- a/services/mgmt/mysql/src/package_2020_07_01_privatepreview/operations.rs +++ b/services/mgmt/mysql/src/package_2020_07_01_privatepreview/operations.rs @@ -480,9 +480,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -501,6 +501,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -554,9 +557,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -575,6 +578,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -816,9 +822,9 @@ pub mod replicas { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -837,6 +843,9 @@ pub mod replicas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1140,9 +1149,9 @@ pub mod server_keys { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1161,6 +1170,9 @@ pub mod server_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1464,9 +1476,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1485,6 +1497,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1788,9 +1803,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1809,6 +1824,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2033,9 +2051,9 @@ pub mod configurations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2054,6 +2072,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2203,9 +2224,9 @@ pub mod location_based_capabilities { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2224,6 +2245,9 @@ pub mod location_based_capabilities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/models.rs b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/models.rs index c9ad65d3fa..1c68b89454 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/models.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/models.rs @@ -33,8 +33,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -71,7 +71,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -153,8 +153,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -412,8 +412,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -558,8 +558,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -853,8 +853,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -987,8 +987,8 @@ pub struct ServerBackupListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBackupListResult { @@ -1064,8 +1064,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { diff --git a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/operations.rs b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/operations.rs index 56c34fa9cb..5f13a848ab 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/operations.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01/operations.rs @@ -495,9 +495,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -516,6 +516,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -569,9 +572,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -590,6 +593,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -887,9 +893,9 @@ pub mod replicas { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -908,6 +914,9 @@ pub mod replicas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1053,9 +1062,9 @@ pub mod backups { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1074,6 +1083,9 @@ pub mod backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1377,9 +1389,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1398,6 +1410,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1701,9 +1716,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1722,6 +1737,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2021,9 +2039,9 @@ pub mod configurations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2042,6 +2060,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2110,9 +2131,9 @@ pub mod location_based_capabilities { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2131,6 +2152,9 @@ pub mod location_based_capabilities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2387,9 +2411,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DBforMySQL/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2408,6 +2432,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/models.rs b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/models.rs index c4946836a5..99eba83fd1 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/models.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/models.rs @@ -33,8 +33,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -71,7 +71,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -153,8 +153,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -379,8 +379,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -525,8 +525,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -819,8 +819,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -953,8 +953,8 @@ pub struct ServerBackupListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBackupListResult { @@ -1027,8 +1027,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { diff --git a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/operations.rs b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/operations.rs index c45cc5ac42..ff269a40af 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/operations.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2021_05_01_preview/operations.rs @@ -495,9 +495,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -516,6 +516,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -569,9 +572,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -590,6 +593,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -887,9 +893,9 @@ pub mod replicas { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -908,6 +914,9 @@ pub mod replicas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1053,9 +1062,9 @@ pub mod backups { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1074,6 +1083,9 @@ pub mod backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1377,9 +1389,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1398,6 +1410,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1701,9 +1716,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1722,6 +1737,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2021,9 +2039,9 @@ pub mod configurations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2042,6 +2060,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2110,9 +2131,9 @@ pub mod location_based_capabilities { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2131,6 +2152,9 @@ pub mod location_based_capabilities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2387,9 +2411,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.DBforMySQL/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2408,6 +2432,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/netapp/src/package_netapp_2021_04_01_preview/models.rs b/services/mgmt/netapp/src/package_netapp_2021_04_01_preview/models.rs index dcfb8e304c..1b192a2141 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_04_01_preview/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_04_01_preview/models.rs @@ -166,7 +166,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -554,7 +554,7 @@ pub struct BackupPoliciesList { pub value: Vec, } impl azure_core::Continuable for BackupPoliciesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -872,7 +872,7 @@ pub struct BackupsList { pub value: Vec, } impl azure_core::Continuable for BackupsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -936,8 +936,8 @@ pub struct CapacityPoolList { pub next_link: Option, } impl azure_core::Continuable for CapacityPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityPoolList { @@ -1219,8 +1219,8 @@ pub struct NetAppAccountList { pub next_link: Option, } impl azure_core::Continuable for NetAppAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetAppAccountList { @@ -1797,7 +1797,7 @@ pub struct SnapshotPoliciesList { pub value: Vec, } impl azure_core::Continuable for SnapshotPoliciesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1957,7 +1957,7 @@ pub struct SnapshotsList { pub value: Vec, } impl azure_core::Continuable for SnapshotsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2114,7 +2114,7 @@ pub struct VaultList { pub value: Vec, } impl azure_core::Continuable for VaultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2217,8 +2217,8 @@ pub struct VolumeList { pub next_link: Option, } impl azure_core::Continuable for VolumeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VolumeList { diff --git a/services/mgmt/netapp/src/package_netapp_2021_04_01_preview/operations.rs b/services/mgmt/netapp/src/package_netapp_2021_04_01_preview/operations.rs index 85ce5d7cd8..6acdc92bc6 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_04_01_preview/operations.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_04_01_preview/operations.rs @@ -527,9 +527,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -548,6 +548,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -927,9 +930,9 @@ pub mod pools { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -948,6 +951,9 @@ pub mod pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1494,9 +1500,9 @@ pub mod volumes { &this.pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1515,6 +1521,9 @@ pub mod volumes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/netapp/src/package_netapp_2021_06_01/models.rs b/services/mgmt/netapp/src/package_netapp_2021_06_01/models.rs index f340fe4824..1300c11abb 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_06_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_06_01/models.rs @@ -216,7 +216,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -456,7 +456,7 @@ pub struct SubscriptionQuotaItemList { pub value: Vec, } impl azure_core::Continuable for SubscriptionQuotaItemList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -688,7 +688,7 @@ pub struct BackupPoliciesList { pub value: Vec, } impl azure_core::Continuable for BackupPoliciesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1019,7 +1019,7 @@ pub struct BackupsList { pub value: Vec, } impl azure_core::Continuable for BackupsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1087,8 +1087,8 @@ pub struct CapacityPoolList { pub next_link: Option, } impl azure_core::Continuable for CapacityPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityPoolList { @@ -1422,8 +1422,8 @@ pub struct NetAppAccountList { pub next_link: Option, } impl azure_core::Continuable for NetAppAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetAppAccountList { @@ -2103,7 +2103,7 @@ pub struct SnapshotPoliciesList { pub value: Vec, } impl azure_core::Continuable for SnapshotPoliciesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2267,7 +2267,7 @@ pub struct SnapshotsList { pub value: Vec, } impl azure_core::Continuable for SnapshotsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2424,7 +2424,7 @@ pub struct VaultList { pub value: Vec, } impl azure_core::Continuable for VaultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2531,8 +2531,8 @@ pub struct VolumeList { pub next_link: Option, } impl azure_core::Continuable for VolumeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VolumeList { diff --git a/services/mgmt/netapp/src/package_netapp_2021_06_01/operations.rs b/services/mgmt/netapp/src/package_netapp_2021_06_01/operations.rs index 2f35ba9b1f..d77c40b5b8 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_06_01/operations.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_06_01/operations.rs @@ -599,9 +599,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -620,6 +620,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -675,9 +678,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -696,6 +699,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1075,9 +1081,9 @@ pub mod pools { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1096,6 +1102,9 @@ pub mod pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1642,9 +1651,9 @@ pub mod volumes { &this.pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1663,6 +1672,9 @@ pub mod volumes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/netapp/src/package_netapp_2021_08_01/models.rs b/services/mgmt/netapp/src/package_netapp_2021_08_01/models.rs index bbec371553..b8dee74144 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_08_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_08_01/models.rs @@ -216,7 +216,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -456,7 +456,7 @@ pub struct SubscriptionQuotaItemList { pub value: Vec, } impl azure_core::Continuable for SubscriptionQuotaItemList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -711,7 +711,7 @@ pub struct BackupPoliciesList { pub value: Vec, } impl azure_core::Continuable for BackupPoliciesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1023,7 +1023,7 @@ pub struct BackupsList { pub value: Vec, } impl azure_core::Continuable for BackupsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1075,8 +1075,8 @@ pub struct CapacityPoolList { pub next_link: Option, } impl azure_core::Continuable for CapacityPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityPoolList { @@ -1390,8 +1390,8 @@ pub struct NetAppAccountList { pub next_link: Option, } impl azure_core::Continuable for NetAppAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetAppAccountList { @@ -2084,7 +2084,7 @@ pub struct SnapshotPoliciesList { pub value: Vec, } impl azure_core::Continuable for SnapshotPoliciesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2232,7 +2232,7 @@ pub struct SnapshotsList { pub value: Vec, } impl azure_core::Continuable for SnapshotsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2389,7 +2389,7 @@ pub struct VaultList { pub value: Vec, } impl azure_core::Continuable for VaultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2528,7 +2528,7 @@ pub struct VolumeGroupList { pub value: Vec, } impl azure_core::Continuable for VolumeGroupList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2676,8 +2676,8 @@ pub struct VolumeList { pub next_link: Option, } impl azure_core::Continuable for VolumeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VolumeList { diff --git a/services/mgmt/netapp/src/package_netapp_2021_08_01/operations.rs b/services/mgmt/netapp/src/package_netapp_2021_08_01/operations.rs index b1e2766db7..99785f3a51 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_08_01/operations.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_08_01/operations.rs @@ -602,9 +602,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -623,6 +623,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -678,9 +681,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -699,6 +702,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1078,9 +1084,9 @@ pub mod pools { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1099,6 +1105,9 @@ pub mod pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1645,9 +1654,9 @@ pub mod volumes { &this.pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1666,6 +1675,9 @@ pub mod volumes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/netapp/src/package_netapp_2021_10_01/models.rs b/services/mgmt/netapp/src/package_netapp_2021_10_01/models.rs index e6841ff179..30fc5b9f2b 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_10_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_10_01/models.rs @@ -216,7 +216,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -456,7 +456,7 @@ pub struct SubscriptionQuotaItemList { pub value: Vec, } impl azure_core::Continuable for SubscriptionQuotaItemList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -714,7 +714,7 @@ pub struct BackupPoliciesList { pub value: Vec, } impl azure_core::Continuable for BackupPoliciesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1026,7 +1026,7 @@ pub struct BackupsList { pub value: Vec, } impl azure_core::Continuable for BackupsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1078,8 +1078,8 @@ pub struct CapacityPoolList { pub next_link: Option, } impl azure_core::Continuable for CapacityPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityPoolList { @@ -1431,8 +1431,8 @@ pub struct NetAppAccountList { pub next_link: Option, } impl azure_core::Continuable for NetAppAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetAppAccountList { @@ -2125,7 +2125,7 @@ pub struct SnapshotPoliciesList { pub value: Vec, } impl azure_core::Continuable for SnapshotPoliciesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2291,7 +2291,7 @@ pub struct SnapshotsList { pub value: Vec, } impl azure_core::Continuable for SnapshotsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2436,8 +2436,8 @@ pub struct SubvolumesList { pub next_link: Option, } impl azure_core::Continuable for SubvolumesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubvolumesList { @@ -2593,7 +2593,7 @@ pub struct VaultList { pub value: Vec, } impl azure_core::Continuable for VaultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2732,7 +2732,7 @@ pub struct VolumeGroupList { pub value: Vec, } impl azure_core::Continuable for VolumeGroupList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2880,8 +2880,8 @@ pub struct VolumeList { pub next_link: Option, } impl azure_core::Continuable for VolumeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VolumeList { diff --git a/services/mgmt/netapp/src/package_netapp_2021_10_01/operations.rs b/services/mgmt/netapp/src/package_netapp_2021_10_01/operations.rs index cb575dee51..e71558176a 100644 --- a/services/mgmt/netapp/src/package_netapp_2021_10_01/operations.rs +++ b/services/mgmt/netapp/src/package_netapp_2021_10_01/operations.rs @@ -605,9 +605,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -626,6 +626,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -681,9 +684,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -702,6 +705,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1081,9 +1087,9 @@ pub mod pools { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1102,6 +1108,9 @@ pub mod pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1649,9 +1658,9 @@ pub mod volumes { &this.pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1670,6 +1679,9 @@ pub mod volumes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4875,9 +4887,9 @@ pub mod subvolumes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.NetApp/netAppAccounts/{}/capacityPools/{}/volumes/{}/subvolumes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . pool_name , & this . volume_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4896,6 +4908,9 @@ pub mod subvolumes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/netapp/src/package_netapp_2022_01_01/models.rs b/services/mgmt/netapp/src/package_netapp_2022_01_01/models.rs index 1857a9ea44..7c026ce241 100644 --- a/services/mgmt/netapp/src/package_netapp_2022_01_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2022_01_01/models.rs @@ -216,7 +216,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -456,7 +456,7 @@ pub struct SubscriptionQuotaItemList { pub value: Vec, } impl azure_core::Continuable for SubscriptionQuotaItemList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -714,7 +714,7 @@ pub struct BackupPoliciesList { pub value: Vec, } impl azure_core::Continuable for BackupPoliciesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1026,7 +1026,7 @@ pub struct BackupsList { pub value: Vec, } impl azure_core::Continuable for BackupsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1078,8 +1078,8 @@ pub struct CapacityPoolList { pub next_link: Option, } impl azure_core::Continuable for CapacityPoolList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapacityPoolList { @@ -1423,8 +1423,8 @@ pub struct NetAppAccountList { pub next_link: Option, } impl azure_core::Continuable for NetAppAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetAppAccountList { @@ -2238,7 +2238,7 @@ pub struct SnapshotPoliciesList { pub value: Vec, } impl azure_core::Continuable for SnapshotPoliciesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2404,7 +2404,7 @@ pub struct SnapshotsList { pub value: Vec, } impl azure_core::Continuable for SnapshotsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2546,8 +2546,8 @@ pub struct SubvolumesList { pub next_link: Option, } impl azure_core::Continuable for SubvolumesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubvolumesList { @@ -2703,7 +2703,7 @@ pub struct VaultList { pub value: Vec, } impl azure_core::Continuable for VaultList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2843,7 +2843,7 @@ pub struct VolumeGroupList { pub value: Vec, } impl azure_core::Continuable for VolumeGroupList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2991,8 +2991,8 @@ pub struct VolumeList { pub next_link: Option, } impl azure_core::Continuable for VolumeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VolumeList { @@ -3593,7 +3593,7 @@ pub struct VolumeQuotaRulesList { pub value: Vec, } impl azure_core::Continuable for VolumeQuotaRulesList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/netapp/src/package_netapp_2022_01_01/operations.rs b/services/mgmt/netapp/src/package_netapp_2022_01_01/operations.rs index ae21e9e512..5654ddbc63 100644 --- a/services/mgmt/netapp/src/package_netapp_2022_01_01/operations.rs +++ b/services/mgmt/netapp/src/package_netapp_2022_01_01/operations.rs @@ -608,9 +608,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -629,6 +629,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -684,9 +687,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -705,6 +708,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1084,9 +1090,9 @@ pub mod pools { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1105,6 +1111,9 @@ pub mod pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1742,9 +1751,9 @@ pub mod volumes { &this.pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1763,6 +1772,9 @@ pub mod volumes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5596,9 +5608,9 @@ pub mod subvolumes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.NetApp/netAppAccounts/{}/capacityPools/{}/volumes/{}/subvolumes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name , & this . pool_name , & this . volume_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5617,6 +5629,9 @@ pub mod subvolumes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/network/src/package_2021_05/models.rs b/services/mgmt/network/src/package_2021_05/models.rs index bdfecd171c..75ff3b9340 100644 --- a/services/mgmt/network/src/package_2021_05/models.rs +++ b/services/mgmt/network/src/package_2021_05/models.rs @@ -199,8 +199,8 @@ pub struct ApplicationGatewayAvailableSslPredefinedPolicies { pub next_link: Option, } impl azure_core::Continuable for ApplicationGatewayAvailableSslPredefinedPolicies { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGatewayAvailableSslPredefinedPolicies { @@ -948,8 +948,8 @@ pub struct ApplicationGatewayListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationGatewayListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGatewayListResult { @@ -1198,8 +1198,8 @@ pub struct ApplicationGatewayPrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationGatewayPrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGatewayPrivateEndpointConnectionListResult { @@ -1347,8 +1347,8 @@ pub struct ApplicationGatewayPrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationGatewayPrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGatewayPrivateLinkResourceListResult { @@ -2526,8 +2526,8 @@ pub struct ApplicationSecurityGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationSecurityGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationSecurityGroupListResult { @@ -2600,8 +2600,8 @@ pub struct AuthorizationListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationListResult { @@ -2690,8 +2690,8 @@ pub struct AutoApprovedPrivateLinkServicesResult { pub next_link: Option, } impl azure_core::Continuable for AutoApprovedPrivateLinkServicesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutoApprovedPrivateLinkServicesResult { @@ -2752,8 +2752,8 @@ pub struct AvailableDelegationsResult { pub next_link: Option, } impl azure_core::Continuable for AvailableDelegationsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableDelegationsResult { @@ -2796,8 +2796,8 @@ pub struct AvailablePrivateEndpointTypesResult { pub next_link: Option, } impl azure_core::Continuable for AvailablePrivateEndpointTypesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailablePrivateEndpointTypesResult { @@ -2920,8 +2920,8 @@ pub struct AvailableServiceAliasesResult { pub next_link: Option, } impl azure_core::Continuable for AvailableServiceAliasesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableServiceAliasesResult { @@ -3167,8 +3167,8 @@ pub struct AzureFirewallFqdnTagListResult { pub next_link: Option, } impl azure_core::Continuable for AzureFirewallFqdnTagListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureFirewallFqdnTagListResult { @@ -3261,8 +3261,8 @@ pub struct AzureFirewallListResult { pub next_link: Option, } impl azure_core::Continuable for AzureFirewallListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureFirewallListResult { @@ -3909,8 +3909,8 @@ pub struct AzureWebCategoryListResult { pub next_link: Option, } impl azure_core::Continuable for AzureWebCategoryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureWebCategoryListResult { @@ -4123,8 +4123,8 @@ pub struct BastionActiveSessionListResult { pub next_link: Option, } impl azure_core::Continuable for BastionActiveSessionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BastionActiveSessionListResult { @@ -4211,8 +4211,8 @@ pub struct BastionHostListResult { pub next_link: Option, } impl azure_core::Continuable for BastionHostListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BastionHostListResult { @@ -4267,8 +4267,8 @@ pub struct BastionSessionDeleteResult { pub next_link: Option, } impl azure_core::Continuable for BastionSessionDeleteResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BastionSessionDeleteResult { @@ -4342,8 +4342,8 @@ pub struct BastionShareableLinkListResult { pub next_link: Option, } impl azure_core::Continuable for BastionShareableLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BastionShareableLinkListResult { @@ -4558,8 +4558,8 @@ pub struct BgpServiceCommunityListResult { pub next_link: Option, } impl azure_core::Continuable for BgpServiceCommunityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BgpServiceCommunityListResult { @@ -4847,7 +4847,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5269,7 +5269,7 @@ pub struct ConnectionMonitorListResult { pub value: Vec, } impl azure_core::Continuable for ConnectionMonitorListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6500,8 +6500,8 @@ pub struct CustomIpPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for CustomIpPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomIpPrefixListResult { @@ -6675,8 +6675,8 @@ pub struct DdosProtectionPlanListResult { pub next_link: Option, } impl azure_core::Continuable for DdosProtectionPlanListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DdosProtectionPlanListResult { @@ -6982,8 +6982,8 @@ pub struct DscpConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for DscpConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscpConfigurationListResult { @@ -7406,8 +7406,8 @@ pub struct EndpointServicesListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointServicesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointServicesListResult { @@ -7435,7 +7435,7 @@ pub struct Error { pub inner_error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7470,7 +7470,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7674,8 +7674,8 @@ pub struct ExpressRouteCircuitConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteCircuitConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteCircuitConnectionListResult { @@ -7724,8 +7724,8 @@ pub struct ExpressRouteCircuitListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteCircuitListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteCircuitListResult { @@ -7850,8 +7850,8 @@ pub struct ExpressRouteCircuitPeeringListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteCircuitPeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteCircuitPeeringListResult { @@ -8332,8 +8332,8 @@ pub struct ExpressRouteCrossConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteCrossConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteCrossConnectionListResult { @@ -8372,8 +8372,8 @@ pub struct ExpressRouteCrossConnectionPeeringList { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteCrossConnectionPeeringList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteCrossConnectionPeeringList { @@ -8629,8 +8629,8 @@ pub struct ExpressRouteLinkListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteLinkListResult { @@ -8959,8 +8959,8 @@ pub struct ExpressRoutePortListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRoutePortListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRoutePortListResult { @@ -9090,8 +9090,8 @@ pub struct ExpressRoutePortsLocationListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRoutePortsLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRoutePortsLocationListResult { @@ -9160,8 +9160,8 @@ pub struct ExpressRouteServiceProviderListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteServiceProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteServiceProviderListResult { @@ -9549,8 +9549,8 @@ pub struct FirewallPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallPolicyListResult { @@ -9927,8 +9927,8 @@ pub struct FirewallPolicyRuleCollectionGroupListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallPolicyRuleCollectionGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallPolicyRuleCollectionGroupListResult { @@ -10206,8 +10206,8 @@ pub struct FlowLogListResult { pub next_link: Option, } impl azure_core::Continuable for FlowLogListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FlowLogListResult { @@ -11334,8 +11334,8 @@ pub struct InboundNatRuleListResult { pub next_link: Option, } impl azure_core::Continuable for InboundNatRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InboundNatRuleListResult { @@ -11535,8 +11535,8 @@ pub struct IpAllocationListResult { pub next_link: Option, } impl azure_core::Continuable for IpAllocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IpAllocationListResult { @@ -11642,8 +11642,8 @@ pub struct IpGroupListResult { pub next_link: Option, } impl azure_core::Continuable for IpGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IpGroupListResult { @@ -11947,8 +11947,8 @@ pub struct ListHubRouteTablesResult { pub next_link: Option, } impl azure_core::Continuable for ListHubRouteTablesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListHubRouteTablesResult { @@ -11967,8 +11967,8 @@ pub struct ListHubVirtualNetworkConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListHubVirtualNetworkConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListHubVirtualNetworkConnectionsResult { @@ -11987,8 +11987,8 @@ pub struct ListP2sVpnGatewaysResult { pub next_link: Option, } impl azure_core::Continuable for ListP2sVpnGatewaysResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListP2sVpnGatewaysResult { @@ -12007,8 +12007,8 @@ pub struct ListRoutingIntentResult { pub next_link: Option, } impl azure_core::Continuable for ListRoutingIntentResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListRoutingIntentResult { @@ -12027,8 +12027,8 @@ pub struct ListVirtualHubBgpConnectionResults { pub next_link: Option, } impl azure_core::Continuable for ListVirtualHubBgpConnectionResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualHubBgpConnectionResults { @@ -12047,8 +12047,8 @@ pub struct ListVirtualHubIpConfigurationResults { pub next_link: Option, } impl azure_core::Continuable for ListVirtualHubIpConfigurationResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualHubIpConfigurationResults { @@ -12067,8 +12067,8 @@ pub struct ListVirtualHubRouteTableV2sResult { pub next_link: Option, } impl azure_core::Continuable for ListVirtualHubRouteTableV2sResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualHubRouteTableV2sResult { @@ -12087,8 +12087,8 @@ pub struct ListVirtualHubsResult { pub next_link: Option, } impl azure_core::Continuable for ListVirtualHubsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualHubsResult { @@ -12107,8 +12107,8 @@ pub struct ListVirtualNetworkGatewayNatRulesResult { pub next_link: Option, } impl azure_core::Continuable for ListVirtualNetworkGatewayNatRulesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualNetworkGatewayNatRulesResult { @@ -12127,8 +12127,8 @@ pub struct ListVirtualWaNsResult { pub next_link: Option, } impl azure_core::Continuable for ListVirtualWaNsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualWaNsResult { @@ -12147,8 +12147,8 @@ pub struct ListVpnConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnConnectionsResult { @@ -12167,8 +12167,8 @@ pub struct ListVpnGatewayNatRulesResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnGatewayNatRulesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnGatewayNatRulesResult { @@ -12187,8 +12187,8 @@ pub struct ListVpnGatewaysResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnGatewaysResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnGatewaysResult { @@ -12207,8 +12207,8 @@ pub struct ListVpnServerConfigurationsResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnServerConfigurationsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnServerConfigurationsResult { @@ -12227,8 +12227,8 @@ pub struct ListVpnSiteLinkConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnSiteLinkConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnSiteLinkConnectionsResult { @@ -12247,8 +12247,8 @@ pub struct ListVpnSiteLinksResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnSiteLinksResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnSiteLinksResult { @@ -12267,8 +12267,8 @@ pub struct ListVpnSitesResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnSitesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnSitesResult { @@ -12325,8 +12325,8 @@ pub struct LoadBalancerBackendAddressPoolListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerBackendAddressPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerBackendAddressPoolListResult { @@ -12372,8 +12372,8 @@ pub struct LoadBalancerFrontendIpConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerFrontendIpConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerFrontendIpConfigurationListResult { @@ -12392,8 +12392,8 @@ pub struct LoadBalancerListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerListResult { @@ -12412,8 +12412,8 @@ pub struct LoadBalancerLoadBalancingRuleListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerLoadBalancingRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerLoadBalancingRuleListResult { @@ -12432,8 +12432,8 @@ pub struct LoadBalancerOutboundRuleListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerOutboundRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerOutboundRuleListResult { @@ -12452,8 +12452,8 @@ pub struct LoadBalancerProbeListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerProbeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerProbeListResult { @@ -12789,8 +12789,8 @@ pub struct LocalNetworkGatewayListResult { pub next_link: Option, } impl azure_core::Continuable for LocalNetworkGatewayListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LocalNetworkGatewayListResult { @@ -13245,8 +13245,8 @@ pub struct NatGatewayListResult { pub next_link: Option, } impl azure_core::Continuable for NatGatewayListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NatGatewayListResult { @@ -13632,8 +13632,8 @@ pub struct NetworkInterfaceIpConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkInterfaceIpConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkInterfaceIpConfigurationListResult { @@ -13721,8 +13721,8 @@ pub struct NetworkInterfaceListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkInterfaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkInterfaceListResult { @@ -13741,8 +13741,8 @@ pub struct NetworkInterfaceLoadBalancerListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkInterfaceLoadBalancerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkInterfaceLoadBalancerListResult { @@ -13933,8 +13933,8 @@ pub struct NetworkInterfaceTapConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkInterfaceTapConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkInterfaceTapConfigurationListResult { @@ -13985,8 +13985,8 @@ pub struct NetworkProfileListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkProfileListResult { @@ -14084,8 +14084,8 @@ pub struct NetworkSecurityGroupListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkSecurityGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkSecurityGroupListResult { @@ -14196,8 +14196,8 @@ pub struct NetworkVirtualApplianceListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkVirtualApplianceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkVirtualApplianceListResult { @@ -14261,8 +14261,8 @@ pub struct NetworkVirtualApplianceSiteListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkVirtualApplianceSiteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkVirtualApplianceSiteListResult { @@ -14313,8 +14313,8 @@ pub struct NetworkVirtualApplianceSkuListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkVirtualApplianceSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkVirtualApplianceSkuListResult { @@ -14365,7 +14365,7 @@ pub struct NetworkWatcherListResult { pub value: Vec, } impl azure_core::Continuable for NetworkWatcherListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -14617,8 +14617,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -15150,7 +15150,7 @@ pub struct PacketCaptureListResult { pub value: Vec, } impl azure_core::Continuable for PacketCaptureListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -15401,8 +15401,8 @@ pub struct PeerExpressRouteCircuitConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PeerExpressRouteCircuitConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeerExpressRouteCircuitConnectionListResult { @@ -15782,8 +15782,8 @@ pub struct PrivateDnsZoneGroupListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateDnsZoneGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateDnsZoneGroupListResult { @@ -15875,8 +15875,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -15955,8 +15955,8 @@ pub struct PrivateEndpointListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointListResult { @@ -16146,8 +16146,8 @@ pub struct PrivateLinkServiceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServiceListResult { @@ -16576,8 +16576,8 @@ pub struct PublicIpAddressListResult { pub next_link: Option, } impl azure_core::Continuable for PublicIpAddressListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicIpAddressListResult { @@ -16854,8 +16854,8 @@ pub struct PublicIpPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PublicIpPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicIpPrefixListResult { @@ -17412,8 +17412,8 @@ pub struct RouteFilterListResult { pub next_link: Option, } impl azure_core::Continuable for RouteFilterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RouteFilterListResult { @@ -17476,8 +17476,8 @@ pub struct RouteFilterRuleListResult { pub next_link: Option, } impl azure_core::Continuable for RouteFilterRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RouteFilterRuleListResult { @@ -17562,8 +17562,8 @@ pub struct RouteListResult { pub next_link: Option, } impl azure_core::Continuable for RouteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RouteListResult { @@ -17672,8 +17672,8 @@ pub struct RouteTableListResult { pub next_link: Option, } impl azure_core::Continuable for RouteTableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RouteTableListResult { @@ -17932,8 +17932,8 @@ pub struct SecurityPartnerProviderListResult { pub next_link: Option, } impl azure_core::Continuable for SecurityPartnerProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityPartnerProviderListResult { @@ -18130,8 +18130,8 @@ pub struct SecurityRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SecurityRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityRuleListResult { @@ -18393,8 +18393,8 @@ pub struct ServiceEndpointPolicyDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for ServiceEndpointPolicyDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceEndpointPolicyDefinitionListResult { @@ -18434,8 +18434,8 @@ pub struct ServiceEndpointPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServiceEndpointPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceEndpointPolicyListResult { @@ -18561,8 +18561,8 @@ pub struct ServiceTagInformationListResult { pub next_link: Option, } impl azure_core::Continuable for ServiceTagInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceTagInformationListResult { @@ -18903,8 +18903,8 @@ pub struct SubnetListResult { pub next_link: Option, } impl azure_core::Continuable for SubnetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubnetListResult { @@ -19603,8 +19603,8 @@ pub struct UsagesListResult { pub next_link: Option, } impl azure_core::Continuable for UsagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsagesListResult { @@ -20308,8 +20308,8 @@ pub struct VirtualNetworkGatewayConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkGatewayConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkGatewayConnectionListResult { @@ -20604,8 +20604,8 @@ pub struct VirtualNetworkGatewayListConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkGatewayListConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkGatewayListConnectionsResult { @@ -20624,8 +20624,8 @@ pub struct VirtualNetworkGatewayListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkGatewayListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkGatewayListResult { @@ -21129,8 +21129,8 @@ pub struct VirtualNetworkListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkListResult { @@ -21149,8 +21149,8 @@ pub struct VirtualNetworkListUsageResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkListUsageResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkListUsageResult { @@ -21192,8 +21192,8 @@ pub struct VirtualNetworkPeeringListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkPeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkPeeringListResult { @@ -21411,8 +21411,8 @@ pub struct VirtualNetworkTapListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkTapListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkTapListResult { @@ -21522,8 +21522,8 @@ pub struct VirtualRouterListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualRouterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualRouterListResult { @@ -21565,8 +21565,8 @@ pub struct VirtualRouterPeeringListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualRouterPeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualRouterPeeringListResult { @@ -23104,8 +23104,8 @@ pub struct WebApplicationFirewallPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for WebApplicationFirewallPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebApplicationFirewallPolicyListResult { diff --git a/services/mgmt/network/src/package_2021_05/operations.rs b/services/mgmt/network/src/package_2021_05/operations.rs index 5575c80058..c8d824d30e 100644 --- a/services/mgmt/network/src/package_2021_05/operations.rs +++ b/services/mgmt/network/src/package_2021_05/operations.rs @@ -838,9 +838,9 @@ pub mod application_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -859,6 +859,9 @@ pub mod application_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -912,9 +915,9 @@ pub mod application_gateways { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -933,6 +936,9 @@ pub mod application_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1463,9 +1469,9 @@ pub mod application_gateways { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies" , this . client . endpoint () , & this . subscription_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1484,6 +1490,9 @@ pub mod application_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1606,9 +1615,9 @@ pub mod application_gateway_private_link_resources { &this.application_gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1627,6 +1636,9 @@ pub mod application_gateway_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1897,9 +1909,9 @@ pub mod application_gateway_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/applicationGateways/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_gateway_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1918,6 +1930,9 @@ pub mod application_gateway_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2438,9 +2453,9 @@ pub mod network_interfaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2459,6 +2474,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2514,9 +2532,9 @@ pub mod network_interfaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2535,6 +2553,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2699,9 +2720,9 @@ pub mod network_interfaces { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/cloudServices/{}/roleInstances/{}/networkInterfaces" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cloud_service_name , & this . role_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2720,6 +2741,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2777,9 +2801,9 @@ pub mod network_interfaces { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2798,6 +2822,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2906,9 +2933,9 @@ pub mod network_interfaces { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/networkInterfaces" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_scale_set_name , & this . virtualmachine_index)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2927,6 +2954,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2978,9 +3008,9 @@ pub mod network_interfaces { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/microsoft.Compute/virtualMachineScaleSets/{}/networkInterfaces" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_scale_set_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2999,6 +3029,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3113,9 +3146,9 @@ pub mod network_interfaces { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/networkInterfaces/{}/ipConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_scale_set_name , & this . virtualmachine_index , & this . network_interface_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3134,6 +3167,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3285,9 +3321,9 @@ pub mod network_interface_ip_configurations { &this.network_interface_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3306,6 +3342,9 @@ pub mod network_interface_ip_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3436,9 +3475,9 @@ pub mod network_interface_load_balancers { &this.network_interface_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3457,6 +3496,9 @@ pub mod network_interface_load_balancers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3758,9 +3800,9 @@ pub mod network_interface_tap_configurations { &this.network_interface_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3779,6 +3821,9 @@ pub mod network_interface_tap_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4137,9 +4182,9 @@ pub mod virtual_network_taps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4158,6 +4203,9 @@ pub mod virtual_network_taps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4213,9 +4261,9 @@ pub mod virtual_network_taps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4234,6 +4282,9 @@ pub mod virtual_network_taps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4627,9 +4678,9 @@ pub mod load_balancers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4648,6 +4699,9 @@ pub mod load_balancers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4703,9 +4757,9 @@ pub mod load_balancers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4724,6 +4778,9 @@ pub mod load_balancers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4960,9 +5017,9 @@ pub mod load_balancer_backend_address_pools { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4981,6 +5038,9 @@ pub mod load_balancer_backend_address_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5250,9 +5310,9 @@ pub mod load_balancer_frontend_ip_configurations { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5271,6 +5331,9 @@ pub mod load_balancer_frontend_ip_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5442,9 +5505,9 @@ pub mod inbound_nat_rules { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5463,6 +5526,9 @@ pub mod inbound_nat_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5740,9 +5806,9 @@ pub mod load_balancer_load_balancing_rules { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5761,6 +5827,9 @@ pub mod load_balancer_load_balancing_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5906,9 +5975,9 @@ pub mod load_balancer_outbound_rules { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5927,6 +5996,9 @@ pub mod load_balancer_outbound_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6057,9 +6129,9 @@ pub mod load_balancer_network_interfaces { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6078,6 +6150,9 @@ pub mod load_balancer_network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6169,9 +6244,9 @@ pub mod load_balancer_probes { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6190,6 +6265,9 @@ pub mod load_balancer_probes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6635,9 +6713,9 @@ pub mod virtual_networks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6656,6 +6734,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6711,9 +6792,9 @@ pub mod virtual_networks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6732,6 +6813,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6838,9 +6922,9 @@ pub mod virtual_networks { &this.virtual_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6859,6 +6943,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7305,9 +7392,9 @@ pub mod subnets { &this.virtual_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7326,6 +7413,9 @@ pub mod subnets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7753,9 +7843,9 @@ pub mod virtual_network_peerings { &this.virtual_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7774,6 +7864,9 @@ pub mod virtual_network_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8137,9 +8230,9 @@ pub mod network_security_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8158,6 +8251,9 @@ pub mod network_security_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8213,9 +8309,9 @@ pub mod network_security_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8234,6 +8330,9 @@ pub mod network_security_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8535,9 +8634,9 @@ pub mod security_rules { &this.network_security_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8556,6 +8655,9 @@ pub mod security_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8641,9 +8743,9 @@ pub mod default_security_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkSecurityGroups/{}/defaultSecurityRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . network_security_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8662,6 +8764,9 @@ pub mod default_security_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9063,9 +9168,9 @@ pub mod application_security_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9084,6 +9189,9 @@ pub mod application_security_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9139,9 +9247,9 @@ pub mod application_security_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9160,6 +9268,9 @@ pub mod application_security_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11873,9 +11984,9 @@ pub mod flow_logs { &this.network_watcher_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11894,6 +12005,9 @@ pub mod flow_logs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12259,9 +12373,9 @@ pub mod route_tables { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12280,6 +12394,9 @@ pub mod route_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12333,9 +12450,9 @@ pub mod route_tables { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12354,6 +12471,9 @@ pub mod route_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12655,9 +12775,9 @@ pub mod routes { &this.route_table_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12676,6 +12796,9 @@ pub mod routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13043,9 +13166,9 @@ pub mod service_endpoint_policies { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13064,6 +13187,9 @@ pub mod service_endpoint_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13119,9 +13245,9 @@ pub mod service_endpoint_policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13140,6 +13266,9 @@ pub mod service_endpoint_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13414,9 +13543,9 @@ pub mod service_endpoint_policy_definitions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/serviceEndpointPolicies/{}/serviceEndpointPolicyDefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_endpoint_policy_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13435,6 +13564,9 @@ pub mod service_endpoint_policy_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13731,9 +13863,9 @@ pub mod private_endpoints { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13752,6 +13884,9 @@ pub mod private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13805,9 +13940,9 @@ pub mod private_endpoints { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13826,6 +13961,9 @@ pub mod private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13907,9 +14045,9 @@ pub mod available_private_endpoint_types { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13928,6 +14066,9 @@ pub mod available_private_endpoint_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13985,9 +14126,9 @@ pub mod available_private_endpoint_types { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14006,6 +14147,9 @@ pub mod available_private_endpoint_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14307,9 +14451,9 @@ pub mod private_dns_zone_groups { &this.private_endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14328,6 +14472,9 @@ pub mod private_dns_zone_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14737,9 +14884,9 @@ pub mod private_link_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14758,6 +14905,9 @@ pub mod private_link_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14811,9 +14961,9 @@ pub mod private_link_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14832,6 +14982,9 @@ pub mod private_link_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15038,9 +15191,9 @@ pub mod private_link_services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/privateLinkServices/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15059,6 +15212,9 @@ pub mod private_link_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15226,9 +15382,9 @@ pub mod private_link_services { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15247,6 +15403,9 @@ pub mod private_link_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15298,9 +15457,9 @@ pub mod private_link_services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/locations/{}/autoApprovedPrivateLinkServices" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15319,6 +15478,9 @@ pub mod private_link_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15681,9 +15843,9 @@ pub mod network_profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15702,6 +15864,9 @@ pub mod network_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15757,9 +15922,9 @@ pub mod network_profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15778,6 +15943,9 @@ pub mod network_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16249,9 +16417,9 @@ pub mod public_ip_addresses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16270,6 +16438,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16325,9 +16496,9 @@ pub mod public_ip_addresses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16346,6 +16517,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16403,9 +16577,9 @@ pub mod public_ip_addresses { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16424,6 +16598,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16478,9 +16655,9 @@ pub mod public_ip_addresses { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/cloudServices/{}/roleInstances/{}/networkInterfaces/{}/ipconfigurations/{}/publicipaddresses" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cloud_service_name , & this . role_instance_name , & this . network_interface_name , & this . ip_configuration_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16499,6 +16676,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16608,9 +16788,9 @@ pub mod public_ip_addresses { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/publicipaddresses" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_scale_set_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16629,6 +16809,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16683,9 +16866,9 @@ pub mod public_ip_addresses { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/networkInterfaces/{}/ipconfigurations/{}/publicipaddresses" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_scale_set_name , & this . virtualmachine_index , & this . network_interface_name , & this . ip_configuration_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16704,6 +16887,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17127,9 +17313,9 @@ pub mod nat_gateways { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17148,6 +17334,9 @@ pub mod nat_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17203,9 +17392,9 @@ pub mod nat_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17224,6 +17413,9 @@ pub mod nat_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17292,9 +17484,9 @@ pub mod available_delegations { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17313,6 +17505,9 @@ pub mod available_delegations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17389,9 +17584,9 @@ pub mod available_resource_group_delegations { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17410,6 +17605,9 @@ pub mod available_resource_group_delegations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17491,9 +17689,9 @@ pub mod available_service_aliases { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17512,6 +17710,9 @@ pub mod available_service_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17569,9 +17770,9 @@ pub mod available_service_aliases { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17590,6 +17791,9 @@ pub mod available_service_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17952,9 +18156,9 @@ pub mod azure_firewalls { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17973,6 +18177,9 @@ pub mod azure_firewalls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18026,9 +18233,9 @@ pub mod azure_firewalls { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18047,6 +18254,9 @@ pub mod azure_firewalls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18112,9 +18322,9 @@ pub mod azure_firewall_fqdn_tags { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18133,6 +18343,9 @@ pub mod azure_firewall_fqdn_tags { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18264,9 +18477,9 @@ pub mod web_categories { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18285,6 +18498,9 @@ pub mod web_categories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18649,9 +18865,9 @@ pub mod bastion_hosts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18670,6 +18886,9 @@ pub mod bastion_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18725,9 +18944,9 @@ pub mod bastion_hosts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18746,6 +18965,9 @@ pub mod bastion_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18905,7 +19127,7 @@ pub mod put_bastion_shareable_link { Accepted202, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202 => None, @@ -18933,9 +19155,9 @@ pub mod put_bastion_shareable_link { &this.bastion_host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18954,6 +19176,9 @@ pub mod put_bastion_shareable_link { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -19070,9 +19295,9 @@ pub mod get_bastion_shareable_link { &this.bastion_host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19091,6 +19316,9 @@ pub mod get_bastion_shareable_link { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -19134,7 +19362,7 @@ pub mod get_active_sessions { Accepted202, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202 => None, @@ -19161,9 +19389,9 @@ pub mod get_active_sessions { &this.bastion_host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19182,6 +19410,9 @@ pub mod get_active_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -19242,9 +19473,9 @@ pub mod disconnect_active_sessions { &this.bastion_host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19263,6 +19494,9 @@ pub mod disconnect_active_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -19791,9 +20025,9 @@ pub mod custom_ip_prefixes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19812,6 +20046,9 @@ pub mod custom_ip_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19867,9 +20104,9 @@ pub mod custom_ip_prefixes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19888,6 +20125,9 @@ pub mod custom_ip_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20534,9 +20774,9 @@ pub mod ddos_protection_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20555,6 +20795,9 @@ pub mod ddos_protection_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20610,9 +20853,9 @@ pub mod ddos_protection_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20631,6 +20874,9 @@ pub mod ddos_protection_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20918,9 +21164,9 @@ pub mod dscp_configuration { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20939,6 +21185,9 @@ pub mod dscp_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20992,9 +21241,9 @@ pub mod dscp_configuration { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21013,6 +21262,9 @@ pub mod dscp_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21081,9 +21333,9 @@ pub mod available_endpoint_services { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21102,6 +21354,9 @@ pub mod available_endpoint_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21403,9 +21658,9 @@ pub mod express_route_circuit_authorizations { &this.circuit_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21424,6 +21679,9 @@ pub mod express_route_circuit_authorizations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21725,9 +21983,9 @@ pub mod express_route_circuit_peerings { &this.circuit_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21746,6 +22004,9 @@ pub mod express_route_circuit_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22032,9 +22293,9 @@ pub mod express_route_circuit_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/expressRouteCircuits/{}/peerings/{}/connections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . circuit_name , & this . peering_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22053,6 +22314,9 @@ pub mod express_route_circuit_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22191,9 +22455,9 @@ pub mod peer_express_route_circuit_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/expressRouteCircuits/{}/peerings/{}/peerConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . circuit_name , & this . peering_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22212,6 +22476,9 @@ pub mod peer_express_route_circuit_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22919,9 +23186,9 @@ pub mod express_route_circuits { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22940,6 +23207,9 @@ pub mod express_route_circuits { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22993,9 +23263,9 @@ pub mod express_route_circuits { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23014,6 +23284,9 @@ pub mod express_route_circuits { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23079,9 +23352,9 @@ pub mod express_route_service_providers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23100,6 +23373,9 @@ pub mod express_route_service_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23460,9 +23736,9 @@ pub mod virtual_wans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23481,6 +23757,9 @@ pub mod virtual_wans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23534,9 +23813,9 @@ pub mod virtual_wans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23555,6 +23834,9 @@ pub mod virtual_wans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23915,9 +24197,9 @@ pub mod vpn_sites { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23936,6 +24218,9 @@ pub mod vpn_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23989,9 +24274,9 @@ pub mod vpn_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24010,6 +24295,9 @@ pub mod vpn_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24155,9 +24443,9 @@ pub mod vpn_site_links { &this.vpn_site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24176,6 +24464,9 @@ pub mod vpn_site_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24613,9 +24904,9 @@ pub mod vpn_server_configurations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24634,6 +24925,9 @@ pub mod vpn_server_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24687,9 +24981,9 @@ pub mod vpn_server_configurations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24708,6 +25002,9 @@ pub mod vpn_server_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25082,9 +25379,9 @@ pub mod virtual_hubs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25103,6 +25400,9 @@ pub mod virtual_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25156,9 +25456,9 @@ pub mod virtual_hubs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25177,6 +25477,9 @@ pub mod virtual_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25524,9 +25827,9 @@ pub mod hub_virtual_network_connections { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25545,6 +25848,9 @@ pub mod hub_virtual_network_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26147,9 +26453,9 @@ pub mod vpn_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26168,6 +26474,9 @@ pub mod vpn_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26221,9 +26530,9 @@ pub mod vpn_gateways { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26242,6 +26551,9 @@ pub mod vpn_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26450,9 +26762,9 @@ pub mod vpn_link_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/vpnGateways/{}/vpnConnections/{}/vpnLinkConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . gateway_name , & this . connection_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26471,6 +26783,9 @@ pub mod vpn_link_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26930,9 +27245,9 @@ pub mod vpn_connections { &this.gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26951,6 +27266,9 @@ pub mod vpn_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27323,9 +27641,9 @@ pub mod nat_rules { &this.gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27344,6 +27662,9 @@ pub mod nat_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27781,9 +28102,9 @@ pub mod p2s_vpn_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27802,6 +28123,9 @@ pub mod p2s_vpn_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27855,9 +28179,9 @@ pub mod p2s_vpn_gateways { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27876,6 +28200,9 @@ pub mod p2s_vpn_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28537,9 +28864,9 @@ pub mod virtual_hub_route_table_v2s { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28558,6 +28885,9 @@ pub mod virtual_hub_route_table_v2s { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29573,9 +29903,9 @@ pub mod virtual_hub_bgp_connections { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29594,6 +29924,9 @@ pub mod virtual_hub_bgp_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30003,9 +30336,9 @@ pub mod virtual_hub_ip_configuration { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30024,6 +30357,9 @@ pub mod virtual_hub_ip_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30325,9 +30661,9 @@ pub mod hub_route_tables { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30346,6 +30682,9 @@ pub mod hub_route_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30647,9 +30986,9 @@ pub mod routing_intent { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30668,6 +31007,9 @@ pub mod routing_intent { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31262,9 +31604,9 @@ pub mod virtual_network_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31283,6 +31625,9 @@ pub mod virtual_network_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31340,9 +31685,9 @@ pub mod virtual_network_gateways { &this.virtual_network_gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31361,6 +31706,9 @@ pub mod virtual_network_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32818,9 +33166,9 @@ pub mod virtual_network_gateway_connections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32839,6 +33187,9 @@ pub mod virtual_network_gateway_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33486,9 +33837,9 @@ pub mod local_network_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33507,6 +33858,9 @@ pub mod local_network_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33808,9 +34162,9 @@ pub mod virtual_network_gateway_nat_rules { &this.virtual_network_gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33829,6 +34183,9 @@ pub mod virtual_network_gateway_nat_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33999,9 +34356,9 @@ pub mod express_route_cross_connections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34020,6 +34377,9 @@ pub mod express_route_cross_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34075,9 +34435,9 @@ pub mod express_route_cross_connections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34096,6 +34456,9 @@ pub mod express_route_cross_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34546,9 +34909,9 @@ pub mod express_route_cross_connection_peerings { &this.cross_connection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34567,6 +34930,9 @@ pub mod express_route_cross_connection_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34817,9 +35183,9 @@ pub mod express_route_ports_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34838,6 +35204,9 @@ pub mod express_route_ports_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35263,9 +35632,9 @@ pub mod express_route_ports { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35284,6 +35653,9 @@ pub mod express_route_ports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35337,9 +35709,9 @@ pub mod express_route_ports { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35358,6 +35730,9 @@ pub mod express_route_ports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35557,9 +35932,9 @@ pub mod express_route_links { &this.express_route_port_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35578,6 +35953,9 @@ pub mod express_route_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35874,9 +36252,9 @@ pub mod firewall_policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35895,6 +36273,9 @@ pub mod firewall_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35948,9 +36329,9 @@ pub mod firewall_policies { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35969,6 +36350,9 @@ pub mod firewall_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36270,9 +36654,9 @@ pub mod firewall_policy_rule_collection_groups { &this.firewall_policy_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36291,6 +36675,9 @@ pub mod firewall_policy_rule_collection_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37046,9 +37433,9 @@ pub mod ip_allocations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37067,6 +37454,9 @@ pub mod ip_allocations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37122,9 +37512,9 @@ pub mod ip_allocations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37143,6 +37533,9 @@ pub mod ip_allocations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37512,9 +37905,9 @@ pub mod ip_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37533,6 +37926,9 @@ pub mod ip_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37586,9 +37982,9 @@ pub mod ip_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37607,6 +38003,9 @@ pub mod ip_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37976,9 +38375,9 @@ pub mod network_virtual_appliances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37997,6 +38396,9 @@ pub mod network_virtual_appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38050,9 +38452,9 @@ pub mod network_virtual_appliances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38071,6 +38473,9 @@ pub mod network_virtual_appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38345,9 +38750,9 @@ pub mod virtual_appliance_sites { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkVirtualAppliances/{}/virtualApplianceSites" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . network_virtual_appliance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38366,6 +38771,9 @@ pub mod virtual_appliance_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38438,9 +38846,9 @@ pub mod virtual_appliance_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38459,6 +38867,9 @@ pub mod virtual_appliance_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38649,9 +39060,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Network/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38670,6 +39081,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39033,9 +39447,9 @@ pub mod public_ip_prefixes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39054,6 +39468,9 @@ pub mod public_ip_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39109,9 +39526,9 @@ pub mod public_ip_prefixes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39130,6 +39547,9 @@ pub mod public_ip_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39499,9 +39919,9 @@ pub mod route_filters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39520,6 +39940,9 @@ pub mod route_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39573,9 +39996,9 @@ pub mod route_filters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39594,6 +40017,9 @@ pub mod route_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39895,9 +40321,9 @@ pub mod route_filter_rules { &this.route_filter_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39916,6 +40342,9 @@ pub mod route_filter_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40276,9 +40705,9 @@ pub mod security_partner_providers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40297,6 +40726,9 @@ pub mod security_partner_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40350,9 +40782,9 @@ pub mod security_partner_providers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40371,6 +40803,9 @@ pub mod security_partner_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40436,9 +40871,9 @@ pub mod bgp_service_communities { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40457,6 +40892,9 @@ pub mod bgp_service_communities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40600,9 +41038,9 @@ pub mod service_tag_information { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40621,6 +41059,9 @@ pub mod service_tag_information { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40697,9 +41138,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40718,6 +41159,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41018,9 +41462,9 @@ pub mod virtual_routers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41039,6 +41483,9 @@ pub mod virtual_routers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41092,9 +41539,9 @@ pub mod virtual_routers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41113,6 +41560,9 @@ pub mod virtual_routers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41414,9 +41864,9 @@ pub mod virtual_router_peerings { &this.virtual_router_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41435,6 +41885,9 @@ pub mod virtual_router_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41545,9 +41998,9 @@ pub mod web_application_firewall_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41566,6 +42019,9 @@ pub mod web_application_firewall_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41619,9 +42075,9 @@ pub mod web_application_firewall_policies { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41640,6 +42096,9 @@ pub mod web_application_firewall_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/network/src/package_2021_08/models.rs b/services/mgmt/network/src/package_2021_08/models.rs index 551f9dce49..a7bb89e521 100644 --- a/services/mgmt/network/src/package_2021_08/models.rs +++ b/services/mgmt/network/src/package_2021_08/models.rs @@ -199,8 +199,8 @@ pub struct ApplicationGatewayAvailableSslPredefinedPolicies { pub next_link: Option, } impl azure_core::Continuable for ApplicationGatewayAvailableSslPredefinedPolicies { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGatewayAvailableSslPredefinedPolicies { @@ -1004,8 +1004,8 @@ pub struct ApplicationGatewayListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationGatewayListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGatewayListResult { @@ -1304,8 +1304,8 @@ pub struct ApplicationGatewayPrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationGatewayPrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGatewayPrivateEndpointConnectionListResult { @@ -1453,8 +1453,8 @@ pub struct ApplicationGatewayPrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationGatewayPrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationGatewayPrivateLinkResourceListResult { @@ -2744,8 +2744,8 @@ pub struct ApplicationSecurityGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationSecurityGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationSecurityGroupListResult { @@ -2818,8 +2818,8 @@ pub struct AuthorizationListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationListResult { @@ -2908,8 +2908,8 @@ pub struct AutoApprovedPrivateLinkServicesResult { pub next_link: Option, } impl azure_core::Continuable for AutoApprovedPrivateLinkServicesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutoApprovedPrivateLinkServicesResult { @@ -2970,8 +2970,8 @@ pub struct AvailableDelegationsResult { pub next_link: Option, } impl azure_core::Continuable for AvailableDelegationsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableDelegationsResult { @@ -3014,8 +3014,8 @@ pub struct AvailablePrivateEndpointTypesResult { pub next_link: Option, } impl azure_core::Continuable for AvailablePrivateEndpointTypesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailablePrivateEndpointTypesResult { @@ -3138,8 +3138,8 @@ pub struct AvailableServiceAliasesResult { pub next_link: Option, } impl azure_core::Continuable for AvailableServiceAliasesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableServiceAliasesResult { @@ -3385,8 +3385,8 @@ pub struct AzureFirewallFqdnTagListResult { pub next_link: Option, } impl azure_core::Continuable for AzureFirewallFqdnTagListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureFirewallFqdnTagListResult { @@ -3479,8 +3479,8 @@ pub struct AzureFirewallListResult { pub next_link: Option, } impl azure_core::Continuable for AzureFirewallListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureFirewallListResult { @@ -4127,8 +4127,8 @@ pub struct AzureWebCategoryListResult { pub next_link: Option, } impl azure_core::Continuable for AzureWebCategoryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureWebCategoryListResult { @@ -4344,8 +4344,8 @@ pub struct BastionActiveSessionListResult { pub next_link: Option, } impl azure_core::Continuable for BastionActiveSessionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BastionActiveSessionListResult { @@ -4432,8 +4432,8 @@ pub struct BastionHostListResult { pub next_link: Option, } impl azure_core::Continuable for BastionHostListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BastionHostListResult { @@ -4488,8 +4488,8 @@ pub struct BastionSessionDeleteResult { pub next_link: Option, } impl azure_core::Continuable for BastionSessionDeleteResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BastionSessionDeleteResult { @@ -4563,8 +4563,8 @@ pub struct BastionShareableLinkListResult { pub next_link: Option, } impl azure_core::Continuable for BastionShareableLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BastionShareableLinkListResult { @@ -4779,8 +4779,8 @@ pub struct BgpServiceCommunityListResult { pub next_link: Option, } impl azure_core::Continuable for BgpServiceCommunityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BgpServiceCommunityListResult { @@ -5068,7 +5068,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5490,7 +5490,7 @@ pub struct ConnectionMonitorListResult { pub value: Vec, } impl azure_core::Continuable for ConnectionMonitorListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6721,8 +6721,8 @@ pub struct CustomIpPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for CustomIpPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomIpPrefixListResult { @@ -6896,8 +6896,8 @@ pub struct DdosProtectionPlanListResult { pub next_link: Option, } impl azure_core::Continuable for DdosProtectionPlanListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DdosProtectionPlanListResult { @@ -7203,8 +7203,8 @@ pub struct DscpConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for DscpConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DscpConfigurationListResult { @@ -7627,8 +7627,8 @@ pub struct EndpointServicesListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointServicesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointServicesListResult { @@ -7656,7 +7656,7 @@ pub struct Error { pub inner_error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7691,7 +7691,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7895,8 +7895,8 @@ pub struct ExpressRouteCircuitConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteCircuitConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteCircuitConnectionListResult { @@ -7945,8 +7945,8 @@ pub struct ExpressRouteCircuitListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteCircuitListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteCircuitListResult { @@ -8071,8 +8071,8 @@ pub struct ExpressRouteCircuitPeeringListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteCircuitPeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteCircuitPeeringListResult { @@ -8556,8 +8556,8 @@ pub struct ExpressRouteCrossConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteCrossConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteCrossConnectionListResult { @@ -8596,8 +8596,8 @@ pub struct ExpressRouteCrossConnectionPeeringList { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteCrossConnectionPeeringList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteCrossConnectionPeeringList { @@ -8853,8 +8853,8 @@ pub struct ExpressRouteLinkListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteLinkListResult { @@ -9206,8 +9206,8 @@ pub struct ExpressRoutePortAuthorizationListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRoutePortAuthorizationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRoutePortAuthorizationListResult { @@ -9287,8 +9287,8 @@ pub struct ExpressRoutePortListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRoutePortListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRoutePortListResult { @@ -9418,8 +9418,8 @@ pub struct ExpressRoutePortsLocationListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRoutePortsLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRoutePortsLocationListResult { @@ -9488,8 +9488,8 @@ pub struct ExpressRouteServiceProviderListResult { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteServiceProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteServiceProviderListResult { @@ -9880,8 +9880,8 @@ pub struct FirewallPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallPolicyListResult { @@ -10258,8 +10258,8 @@ pub struct FirewallPolicyRuleCollectionGroupListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallPolicyRuleCollectionGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallPolicyRuleCollectionGroupListResult { @@ -10537,8 +10537,8 @@ pub struct FlowLogListResult { pub next_link: Option, } impl azure_core::Continuable for FlowLogListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FlowLogListResult { @@ -11723,8 +11723,8 @@ pub struct InboundNatRuleListResult { pub next_link: Option, } impl azure_core::Continuable for InboundNatRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InboundNatRuleListResult { @@ -11924,8 +11924,8 @@ pub struct IpAllocationListResult { pub next_link: Option, } impl azure_core::Continuable for IpAllocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IpAllocationListResult { @@ -12031,8 +12031,8 @@ pub struct IpGroupListResult { pub next_link: Option, } impl azure_core::Continuable for IpGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IpGroupListResult { @@ -12336,8 +12336,8 @@ pub struct ListHubRouteTablesResult { pub next_link: Option, } impl azure_core::Continuable for ListHubRouteTablesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListHubRouteTablesResult { @@ -12356,8 +12356,8 @@ pub struct ListHubVirtualNetworkConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListHubVirtualNetworkConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListHubVirtualNetworkConnectionsResult { @@ -12376,8 +12376,8 @@ pub struct ListP2sVpnGatewaysResult { pub next_link: Option, } impl azure_core::Continuable for ListP2sVpnGatewaysResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListP2sVpnGatewaysResult { @@ -12396,8 +12396,8 @@ pub struct ListRoutingIntentResult { pub next_link: Option, } impl azure_core::Continuable for ListRoutingIntentResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListRoutingIntentResult { @@ -12416,8 +12416,8 @@ pub struct ListVirtualHubBgpConnectionResults { pub next_link: Option, } impl azure_core::Continuable for ListVirtualHubBgpConnectionResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualHubBgpConnectionResults { @@ -12436,8 +12436,8 @@ pub struct ListVirtualHubIpConfigurationResults { pub next_link: Option, } impl azure_core::Continuable for ListVirtualHubIpConfigurationResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualHubIpConfigurationResults { @@ -12456,8 +12456,8 @@ pub struct ListVirtualHubRouteTableV2sResult { pub next_link: Option, } impl azure_core::Continuable for ListVirtualHubRouteTableV2sResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualHubRouteTableV2sResult { @@ -12476,8 +12476,8 @@ pub struct ListVirtualHubsResult { pub next_link: Option, } impl azure_core::Continuable for ListVirtualHubsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualHubsResult { @@ -12496,8 +12496,8 @@ pub struct ListVirtualNetworkGatewayNatRulesResult { pub next_link: Option, } impl azure_core::Continuable for ListVirtualNetworkGatewayNatRulesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualNetworkGatewayNatRulesResult { @@ -12516,8 +12516,8 @@ pub struct ListVirtualWaNsResult { pub next_link: Option, } impl azure_core::Continuable for ListVirtualWaNsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVirtualWaNsResult { @@ -12536,8 +12536,8 @@ pub struct ListVpnConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnConnectionsResult { @@ -12556,8 +12556,8 @@ pub struct ListVpnGatewayNatRulesResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnGatewayNatRulesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnGatewayNatRulesResult { @@ -12576,8 +12576,8 @@ pub struct ListVpnGatewaysResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnGatewaysResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnGatewaysResult { @@ -12596,8 +12596,8 @@ pub struct ListVpnServerConfigurationPolicyGroupsResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnServerConfigurationPolicyGroupsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnServerConfigurationPolicyGroupsResult { @@ -12616,8 +12616,8 @@ pub struct ListVpnServerConfigurationsResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnServerConfigurationsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnServerConfigurationsResult { @@ -12636,8 +12636,8 @@ pub struct ListVpnSiteLinkConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnSiteLinkConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnSiteLinkConnectionsResult { @@ -12656,8 +12656,8 @@ pub struct ListVpnSiteLinksResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnSiteLinksResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnSiteLinksResult { @@ -12676,8 +12676,8 @@ pub struct ListVpnSitesResult { pub next_link: Option, } impl azure_core::Continuable for ListVpnSitesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListVpnSitesResult { @@ -12734,8 +12734,8 @@ pub struct LoadBalancerBackendAddressPoolListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerBackendAddressPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerBackendAddressPoolListResult { @@ -12828,8 +12828,8 @@ pub struct LoadBalancerFrontendIpConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerFrontendIpConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerFrontendIpConfigurationListResult { @@ -12848,8 +12848,8 @@ pub struct LoadBalancerListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerListResult { @@ -12868,8 +12868,8 @@ pub struct LoadBalancerLoadBalancingRuleListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerLoadBalancingRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerLoadBalancingRuleListResult { @@ -12888,8 +12888,8 @@ pub struct LoadBalancerOutboundRuleListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerOutboundRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerOutboundRuleListResult { @@ -12908,8 +12908,8 @@ pub struct LoadBalancerProbeListResult { pub next_link: Option, } impl azure_core::Continuable for LoadBalancerProbeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LoadBalancerProbeListResult { @@ -13245,8 +13245,8 @@ pub struct LocalNetworkGatewayListResult { pub next_link: Option, } impl azure_core::Continuable for LocalNetworkGatewayListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LocalNetworkGatewayListResult { @@ -13701,8 +13701,8 @@ pub struct NatGatewayListResult { pub next_link: Option, } impl azure_core::Continuable for NatGatewayListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NatGatewayListResult { @@ -14088,8 +14088,8 @@ pub struct NetworkInterfaceIpConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkInterfaceIpConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkInterfaceIpConfigurationListResult { @@ -14177,8 +14177,8 @@ pub struct NetworkInterfaceListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkInterfaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkInterfaceListResult { @@ -14197,8 +14197,8 @@ pub struct NetworkInterfaceLoadBalancerListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkInterfaceLoadBalancerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkInterfaceLoadBalancerListResult { @@ -14431,8 +14431,8 @@ pub struct NetworkInterfaceTapConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkInterfaceTapConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkInterfaceTapConfigurationListResult { @@ -14483,8 +14483,8 @@ pub struct NetworkProfileListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkProfileListResult { @@ -14582,8 +14582,8 @@ pub struct NetworkSecurityGroupListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkSecurityGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkSecurityGroupListResult { @@ -14694,8 +14694,8 @@ pub struct NetworkVirtualApplianceListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkVirtualApplianceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkVirtualApplianceListResult { @@ -14759,8 +14759,8 @@ pub struct NetworkVirtualApplianceSiteListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkVirtualApplianceSiteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkVirtualApplianceSiteListResult { @@ -14811,8 +14811,8 @@ pub struct NetworkVirtualApplianceSkuListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkVirtualApplianceSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkVirtualApplianceSkuListResult { @@ -14863,7 +14863,7 @@ pub struct NetworkWatcherListResult { pub value: Vec, } impl azure_core::Continuable for NetworkWatcherListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -15115,8 +15115,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -15689,7 +15689,7 @@ pub struct PacketCaptureListResult { pub value: Vec, } impl azure_core::Continuable for PacketCaptureListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -15940,8 +15940,8 @@ pub struct PeerExpressRouteCircuitConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PeerExpressRouteCircuitConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeerExpressRouteCircuitConnectionListResult { @@ -16321,8 +16321,8 @@ pub struct PrivateDnsZoneGroupListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateDnsZoneGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateDnsZoneGroupListResult { @@ -16414,8 +16414,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -16494,8 +16494,8 @@ pub struct PrivateEndpointListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointListResult { @@ -16685,8 +16685,8 @@ pub struct PrivateLinkServiceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServiceListResult { @@ -17115,8 +17115,8 @@ pub struct PublicIpAddressListResult { pub next_link: Option, } impl azure_core::Continuable for PublicIpAddressListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicIpAddressListResult { @@ -17393,8 +17393,8 @@ pub struct PublicIpPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PublicIpPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicIpPrefixListResult { @@ -17951,8 +17951,8 @@ pub struct RouteFilterListResult { pub next_link: Option, } impl azure_core::Continuable for RouteFilterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RouteFilterListResult { @@ -18015,8 +18015,8 @@ pub struct RouteFilterRuleListResult { pub next_link: Option, } impl azure_core::Continuable for RouteFilterRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RouteFilterRuleListResult { @@ -18101,8 +18101,8 @@ pub struct RouteListResult { pub next_link: Option, } impl azure_core::Continuable for RouteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RouteListResult { @@ -18211,8 +18211,8 @@ pub struct RouteTableListResult { pub next_link: Option, } impl azure_core::Continuable for RouteTableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RouteTableListResult { @@ -18471,8 +18471,8 @@ pub struct SecurityPartnerProviderListResult { pub next_link: Option, } impl azure_core::Continuable for SecurityPartnerProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityPartnerProviderListResult { @@ -18669,8 +18669,8 @@ pub struct SecurityRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SecurityRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityRuleListResult { @@ -18932,8 +18932,8 @@ pub struct ServiceEndpointPolicyDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for ServiceEndpointPolicyDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceEndpointPolicyDefinitionListResult { @@ -18973,8 +18973,8 @@ pub struct ServiceEndpointPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServiceEndpointPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceEndpointPolicyListResult { @@ -19100,8 +19100,8 @@ pub struct ServiceTagInformationListResult { pub next_link: Option, } impl azure_core::Continuable for ServiceTagInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceTagInformationListResult { @@ -19442,8 +19442,8 @@ pub struct SubnetListResult { pub next_link: Option, } impl azure_core::Continuable for SubnetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubnetListResult { @@ -20142,8 +20142,8 @@ pub struct UsagesListResult { pub next_link: Option, } impl azure_core::Continuable for UsagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsagesListResult { @@ -20854,8 +20854,8 @@ pub struct VirtualNetworkGatewayConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkGatewayConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkGatewayConnectionListResult { @@ -21154,8 +21154,8 @@ pub struct VirtualNetworkGatewayListConnectionsResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkGatewayListConnectionsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkGatewayListConnectionsResult { @@ -21174,8 +21174,8 @@ pub struct VirtualNetworkGatewayListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkGatewayListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkGatewayListResult { @@ -21679,8 +21679,8 @@ pub struct VirtualNetworkListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkListResult { @@ -21699,8 +21699,8 @@ pub struct VirtualNetworkListUsageResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkListUsageResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkListUsageResult { @@ -21742,8 +21742,8 @@ pub struct VirtualNetworkPeeringListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkPeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkPeeringListResult { @@ -21961,8 +21961,8 @@ pub struct VirtualNetworkTapListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkTapListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkTapListResult { @@ -22072,8 +22072,8 @@ pub struct VirtualRouterListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualRouterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualRouterListResult { @@ -22115,8 +22115,8 @@ pub struct VirtualRouterPeeringListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualRouterPeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualRouterPeeringListResult { @@ -23768,8 +23768,8 @@ pub struct WebApplicationFirewallPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for WebApplicationFirewallPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebApplicationFirewallPolicyListResult { diff --git a/services/mgmt/network/src/package_2021_08/operations.rs b/services/mgmt/network/src/package_2021_08/operations.rs index c618379496..d1908ecbde 100644 --- a/services/mgmt/network/src/package_2021_08/operations.rs +++ b/services/mgmt/network/src/package_2021_08/operations.rs @@ -844,9 +844,9 @@ pub mod application_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -865,6 +865,9 @@ pub mod application_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -918,9 +921,9 @@ pub mod application_gateways { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -939,6 +942,9 @@ pub mod application_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1469,9 +1475,9 @@ pub mod application_gateways { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies" , this . client . endpoint () , & this . subscription_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1490,6 +1496,9 @@ pub mod application_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1612,9 +1621,9 @@ pub mod application_gateway_private_link_resources { &this.application_gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1633,6 +1642,9 @@ pub mod application_gateway_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1903,9 +1915,9 @@ pub mod application_gateway_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/applicationGateways/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_gateway_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1924,6 +1936,9 @@ pub mod application_gateway_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2444,9 +2459,9 @@ pub mod network_interfaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2465,6 +2480,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2520,9 +2538,9 @@ pub mod network_interfaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2541,6 +2559,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2705,9 +2726,9 @@ pub mod network_interfaces { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/cloudServices/{}/roleInstances/{}/networkInterfaces" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cloud_service_name , & this . role_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2726,6 +2747,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2783,9 +2807,9 @@ pub mod network_interfaces { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2804,6 +2828,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2912,9 +2939,9 @@ pub mod network_interfaces { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/networkInterfaces" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_scale_set_name , & this . virtualmachine_index)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2933,6 +2960,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2984,9 +3014,9 @@ pub mod network_interfaces { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/microsoft.Compute/virtualMachineScaleSets/{}/networkInterfaces" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_scale_set_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3005,6 +3035,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3119,9 +3152,9 @@ pub mod network_interfaces { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/networkInterfaces/{}/ipConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_scale_set_name , & this . virtualmachine_index , & this . network_interface_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3140,6 +3173,9 @@ pub mod network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3291,9 +3327,9 @@ pub mod network_interface_ip_configurations { &this.network_interface_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3312,6 +3348,9 @@ pub mod network_interface_ip_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3442,9 +3481,9 @@ pub mod network_interface_load_balancers { &this.network_interface_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3463,6 +3502,9 @@ pub mod network_interface_load_balancers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3764,9 +3806,9 @@ pub mod network_interface_tap_configurations { &this.network_interface_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3785,6 +3827,9 @@ pub mod network_interface_tap_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4143,9 +4188,9 @@ pub mod virtual_network_taps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4164,6 +4209,9 @@ pub mod virtual_network_taps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4219,9 +4267,9 @@ pub mod virtual_network_taps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4240,6 +4288,9 @@ pub mod virtual_network_taps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4633,9 +4684,9 @@ pub mod load_balancers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4654,6 +4705,9 @@ pub mod load_balancers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4709,9 +4763,9 @@ pub mod load_balancers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4730,6 +4784,9 @@ pub mod load_balancers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4966,9 +5023,9 @@ pub mod load_balancer_backend_address_pools { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4987,6 +5044,9 @@ pub mod load_balancer_backend_address_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5256,9 +5316,9 @@ pub mod load_balancer_frontend_ip_configurations { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5277,6 +5337,9 @@ pub mod load_balancer_frontend_ip_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5448,9 +5511,9 @@ pub mod inbound_nat_rules { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5469,6 +5532,9 @@ pub mod inbound_nat_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5746,9 +5812,9 @@ pub mod load_balancer_load_balancing_rules { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5767,6 +5833,9 @@ pub mod load_balancer_load_balancing_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5912,9 +5981,9 @@ pub mod load_balancer_outbound_rules { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5933,6 +6002,9 @@ pub mod load_balancer_outbound_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6063,9 +6135,9 @@ pub mod load_balancer_network_interfaces { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6084,6 +6156,9 @@ pub mod load_balancer_network_interfaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6175,9 +6250,9 @@ pub mod load_balancer_probes { &this.load_balancer_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6196,6 +6271,9 @@ pub mod load_balancer_probes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6641,9 +6719,9 @@ pub mod virtual_networks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6662,6 +6740,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6717,9 +6798,9 @@ pub mod virtual_networks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6738,6 +6819,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6844,9 +6928,9 @@ pub mod virtual_networks { &this.virtual_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6865,6 +6949,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7311,9 +7398,9 @@ pub mod subnets { &this.virtual_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7332,6 +7419,9 @@ pub mod subnets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7759,9 +7849,9 @@ pub mod virtual_network_peerings { &this.virtual_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7780,6 +7870,9 @@ pub mod virtual_network_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8143,9 +8236,9 @@ pub mod network_security_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8164,6 +8257,9 @@ pub mod network_security_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8219,9 +8315,9 @@ pub mod network_security_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8240,6 +8336,9 @@ pub mod network_security_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8541,9 +8640,9 @@ pub mod security_rules { &this.network_security_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8562,6 +8661,9 @@ pub mod security_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8647,9 +8749,9 @@ pub mod default_security_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkSecurityGroups/{}/defaultSecurityRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . network_security_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8668,6 +8770,9 @@ pub mod default_security_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9069,9 +9174,9 @@ pub mod application_security_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9090,6 +9195,9 @@ pub mod application_security_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9145,9 +9253,9 @@ pub mod application_security_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9166,6 +9274,9 @@ pub mod application_security_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11879,9 +11990,9 @@ pub mod flow_logs { &this.network_watcher_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11900,6 +12011,9 @@ pub mod flow_logs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12265,9 +12379,9 @@ pub mod route_tables { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12286,6 +12400,9 @@ pub mod route_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12339,9 +12456,9 @@ pub mod route_tables { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12360,6 +12477,9 @@ pub mod route_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12661,9 +12781,9 @@ pub mod routes { &this.route_table_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12682,6 +12802,9 @@ pub mod routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13049,9 +13172,9 @@ pub mod service_endpoint_policies { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13070,6 +13193,9 @@ pub mod service_endpoint_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13125,9 +13251,9 @@ pub mod service_endpoint_policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13146,6 +13272,9 @@ pub mod service_endpoint_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13420,9 +13549,9 @@ pub mod service_endpoint_policy_definitions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/serviceEndpointPolicies/{}/serviceEndpointPolicyDefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_endpoint_policy_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13441,6 +13570,9 @@ pub mod service_endpoint_policy_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13737,9 +13869,9 @@ pub mod private_endpoints { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13758,6 +13890,9 @@ pub mod private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13811,9 +13946,9 @@ pub mod private_endpoints { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13832,6 +13967,9 @@ pub mod private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13913,9 +14051,9 @@ pub mod available_private_endpoint_types { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13934,6 +14072,9 @@ pub mod available_private_endpoint_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13991,9 +14132,9 @@ pub mod available_private_endpoint_types { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14012,6 +14153,9 @@ pub mod available_private_endpoint_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14313,9 +14457,9 @@ pub mod private_dns_zone_groups { &this.private_endpoint_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14334,6 +14478,9 @@ pub mod private_dns_zone_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14743,9 +14890,9 @@ pub mod private_link_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14764,6 +14911,9 @@ pub mod private_link_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14817,9 +14967,9 @@ pub mod private_link_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14838,6 +14988,9 @@ pub mod private_link_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15044,9 +15197,9 @@ pub mod private_link_services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/privateLinkServices/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . service_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15065,6 +15218,9 @@ pub mod private_link_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15232,9 +15388,9 @@ pub mod private_link_services { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15253,6 +15409,9 @@ pub mod private_link_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15304,9 +15463,9 @@ pub mod private_link_services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/locations/{}/autoApprovedPrivateLinkServices" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15325,6 +15484,9 @@ pub mod private_link_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15687,9 +15849,9 @@ pub mod network_profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15708,6 +15870,9 @@ pub mod network_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15763,9 +15928,9 @@ pub mod network_profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15784,6 +15949,9 @@ pub mod network_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16255,9 +16423,9 @@ pub mod public_ip_addresses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16276,6 +16444,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16331,9 +16502,9 @@ pub mod public_ip_addresses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16352,6 +16523,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16409,9 +16583,9 @@ pub mod public_ip_addresses { &this.cloud_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16430,6 +16604,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16484,9 +16661,9 @@ pub mod public_ip_addresses { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/cloudServices/{}/roleInstances/{}/networkInterfaces/{}/ipconfigurations/{}/publicipaddresses" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cloud_service_name , & this . role_instance_name , & this . network_interface_name , & this . ip_configuration_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16505,6 +16682,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16614,9 +16794,9 @@ pub mod public_ip_addresses { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/publicipaddresses" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_scale_set_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16635,6 +16815,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16689,9 +16872,9 @@ pub mod public_ip_addresses { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/virtualMachines/{}/networkInterfaces/{}/ipconfigurations/{}/publicipaddresses" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . virtual_machine_scale_set_name , & this . virtualmachine_index , & this . network_interface_name , & this . ip_configuration_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16710,6 +16893,9 @@ pub mod public_ip_addresses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17133,9 +17319,9 @@ pub mod nat_gateways { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17154,6 +17340,9 @@ pub mod nat_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17209,9 +17398,9 @@ pub mod nat_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17230,6 +17419,9 @@ pub mod nat_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17298,9 +17490,9 @@ pub mod available_delegations { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17319,6 +17511,9 @@ pub mod available_delegations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17395,9 +17590,9 @@ pub mod available_resource_group_delegations { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17416,6 +17611,9 @@ pub mod available_resource_group_delegations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17497,9 +17695,9 @@ pub mod available_service_aliases { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17518,6 +17716,9 @@ pub mod available_service_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17575,9 +17776,9 @@ pub mod available_service_aliases { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17596,6 +17797,9 @@ pub mod available_service_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17958,9 +18162,9 @@ pub mod azure_firewalls { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17979,6 +18183,9 @@ pub mod azure_firewalls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18032,9 +18239,9 @@ pub mod azure_firewalls { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18053,6 +18260,9 @@ pub mod azure_firewalls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18118,9 +18328,9 @@ pub mod azure_firewall_fqdn_tags { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18139,6 +18349,9 @@ pub mod azure_firewall_fqdn_tags { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18270,9 +18483,9 @@ pub mod web_categories { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18291,6 +18504,9 @@ pub mod web_categories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18655,9 +18871,9 @@ pub mod bastion_hosts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18676,6 +18892,9 @@ pub mod bastion_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18731,9 +18950,9 @@ pub mod bastion_hosts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18752,6 +18971,9 @@ pub mod bastion_hosts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18911,7 +19133,7 @@ pub mod put_bastion_shareable_link { Accepted202, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202 => None, @@ -18939,9 +19161,9 @@ pub mod put_bastion_shareable_link { &this.bastion_host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18960,6 +19182,9 @@ pub mod put_bastion_shareable_link { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -19076,9 +19301,9 @@ pub mod get_bastion_shareable_link { &this.bastion_host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19097,6 +19322,9 @@ pub mod get_bastion_shareable_link { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -19140,7 +19368,7 @@ pub mod get_active_sessions { Accepted202, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202 => None, @@ -19167,9 +19395,9 @@ pub mod get_active_sessions { &this.bastion_host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19188,6 +19416,9 @@ pub mod get_active_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -19248,9 +19479,9 @@ pub mod disconnect_active_sessions { &this.bastion_host_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19269,6 +19500,9 @@ pub mod disconnect_active_sessions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -19797,9 +20031,9 @@ pub mod custom_ip_prefixes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19818,6 +20052,9 @@ pub mod custom_ip_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19873,9 +20110,9 @@ pub mod custom_ip_prefixes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19894,6 +20131,9 @@ pub mod custom_ip_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20540,9 +20780,9 @@ pub mod ddos_protection_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20561,6 +20801,9 @@ pub mod ddos_protection_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20616,9 +20859,9 @@ pub mod ddos_protection_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20637,6 +20880,9 @@ pub mod ddos_protection_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20924,9 +21170,9 @@ pub mod dscp_configuration { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20945,6 +21191,9 @@ pub mod dscp_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20998,9 +21247,9 @@ pub mod dscp_configuration { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21019,6 +21268,9 @@ pub mod dscp_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21087,9 +21339,9 @@ pub mod available_endpoint_services { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21108,6 +21360,9 @@ pub mod available_endpoint_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21409,9 +21664,9 @@ pub mod express_route_circuit_authorizations { &this.circuit_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21430,6 +21685,9 @@ pub mod express_route_circuit_authorizations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21731,9 +21989,9 @@ pub mod express_route_circuit_peerings { &this.circuit_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21752,6 +22010,9 @@ pub mod express_route_circuit_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22038,9 +22299,9 @@ pub mod express_route_circuit_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/expressRouteCircuits/{}/peerings/{}/connections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . circuit_name , & this . peering_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22059,6 +22320,9 @@ pub mod express_route_circuit_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22197,9 +22461,9 @@ pub mod peer_express_route_circuit_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/expressRouteCircuits/{}/peerings/{}/peerConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . circuit_name , & this . peering_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22218,6 +22482,9 @@ pub mod peer_express_route_circuit_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22925,9 +23192,9 @@ pub mod express_route_circuits { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22946,6 +23213,9 @@ pub mod express_route_circuits { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22999,9 +23269,9 @@ pub mod express_route_circuits { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23020,6 +23290,9 @@ pub mod express_route_circuits { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23085,9 +23358,9 @@ pub mod express_route_service_providers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23106,6 +23379,9 @@ pub mod express_route_service_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23466,9 +23742,9 @@ pub mod virtual_wans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23487,6 +23763,9 @@ pub mod virtual_wans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23540,9 +23819,9 @@ pub mod virtual_wans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23561,6 +23840,9 @@ pub mod virtual_wans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23921,9 +24203,9 @@ pub mod vpn_sites { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23942,6 +24224,9 @@ pub mod vpn_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23995,9 +24280,9 @@ pub mod vpn_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24016,6 +24301,9 @@ pub mod vpn_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24161,9 +24449,9 @@ pub mod vpn_site_links { &this.vpn_site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24182,6 +24470,9 @@ pub mod vpn_site_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24619,9 +24910,9 @@ pub mod vpn_server_configurations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24640,6 +24931,9 @@ pub mod vpn_server_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24693,9 +24987,9 @@ pub mod vpn_server_configurations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24714,6 +25008,9 @@ pub mod vpn_server_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24988,9 +25285,9 @@ pub mod configuration_policy_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/vpnServerConfigurations/{}/configurationPolicyGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vpn_server_configuration_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25009,6 +25306,9 @@ pub mod configuration_policy_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25383,9 +25683,9 @@ pub mod virtual_hubs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25404,6 +25704,9 @@ pub mod virtual_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25457,9 +25760,9 @@ pub mod virtual_hubs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25478,6 +25781,9 @@ pub mod virtual_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25825,9 +26131,9 @@ pub mod hub_virtual_network_connections { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25846,6 +26152,9 @@ pub mod hub_virtual_network_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26448,9 +26757,9 @@ pub mod vpn_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26469,6 +26778,9 @@ pub mod vpn_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26522,9 +26834,9 @@ pub mod vpn_gateways { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26543,6 +26855,9 @@ pub mod vpn_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26751,9 +27066,9 @@ pub mod vpn_link_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/vpnGateways/{}/vpnConnections/{}/vpnLinkConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . gateway_name , & this . connection_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26772,6 +27087,9 @@ pub mod vpn_link_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27231,9 +27549,9 @@ pub mod vpn_connections { &this.gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27252,6 +27570,9 @@ pub mod vpn_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27624,9 +27945,9 @@ pub mod nat_rules { &this.gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27645,6 +27966,9 @@ pub mod nat_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28082,9 +28406,9 @@ pub mod p2s_vpn_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28103,6 +28427,9 @@ pub mod p2s_vpn_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28156,9 +28483,9 @@ pub mod p2s_vpn_gateways { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28177,6 +28504,9 @@ pub mod p2s_vpn_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28838,9 +29168,9 @@ pub mod virtual_hub_route_table_v2s { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28859,6 +29189,9 @@ pub mod virtual_hub_route_table_v2s { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29874,9 +30207,9 @@ pub mod virtual_hub_bgp_connections { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29895,6 +30228,9 @@ pub mod virtual_hub_bgp_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30304,9 +30640,9 @@ pub mod virtual_hub_ip_configuration { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30325,6 +30661,9 @@ pub mod virtual_hub_ip_configuration { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30626,9 +30965,9 @@ pub mod hub_route_tables { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30647,6 +30986,9 @@ pub mod hub_route_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30948,9 +31290,9 @@ pub mod routing_intent { &this.virtual_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30969,6 +31311,9 @@ pub mod routing_intent { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31563,9 +31908,9 @@ pub mod virtual_network_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31584,6 +31929,9 @@ pub mod virtual_network_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31641,9 +31989,9 @@ pub mod virtual_network_gateways { &this.virtual_network_gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31662,6 +32010,9 @@ pub mod virtual_network_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33119,9 +33470,9 @@ pub mod virtual_network_gateway_connections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33140,6 +33491,9 @@ pub mod virtual_network_gateway_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33787,9 +34141,9 @@ pub mod local_network_gateways { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33808,6 +34162,9 @@ pub mod local_network_gateways { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34109,9 +34466,9 @@ pub mod virtual_network_gateway_nat_rules { &this.virtual_network_gateway_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34130,6 +34487,9 @@ pub mod virtual_network_gateway_nat_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34300,9 +34660,9 @@ pub mod express_route_cross_connections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34321,6 +34681,9 @@ pub mod express_route_cross_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34376,9 +34739,9 @@ pub mod express_route_cross_connections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34397,6 +34760,9 @@ pub mod express_route_cross_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34847,9 +35213,9 @@ pub mod express_route_cross_connection_peerings { &this.cross_connection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34868,6 +35234,9 @@ pub mod express_route_cross_connection_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35118,9 +35487,9 @@ pub mod express_route_ports_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35139,6 +35508,9 @@ pub mod express_route_ports_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35564,9 +35936,9 @@ pub mod express_route_ports { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35585,6 +35957,9 @@ pub mod express_route_ports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35638,9 +36013,9 @@ pub mod express_route_ports { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35659,6 +36034,9 @@ pub mod express_route_ports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35858,9 +36236,9 @@ pub mod express_route_links { &this.express_route_port_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35879,6 +36257,9 @@ pub mod express_route_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36180,9 +36561,9 @@ pub mod express_route_port_authorizations { &this.express_route_port_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36201,6 +36582,9 @@ pub mod express_route_port_authorizations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36566,9 +36950,9 @@ pub mod firewall_policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36587,6 +36971,9 @@ pub mod firewall_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36640,9 +37027,9 @@ pub mod firewall_policies { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36661,6 +37048,9 @@ pub mod firewall_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36962,9 +37352,9 @@ pub mod firewall_policy_rule_collection_groups { &this.firewall_policy_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36983,6 +37373,9 @@ pub mod firewall_policy_rule_collection_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37756,9 +38149,9 @@ pub mod ip_allocations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37777,6 +38170,9 @@ pub mod ip_allocations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37832,9 +38228,9 @@ pub mod ip_allocations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37853,6 +38249,9 @@ pub mod ip_allocations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38222,9 +38621,9 @@ pub mod ip_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38243,6 +38642,9 @@ pub mod ip_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38296,9 +38698,9 @@ pub mod ip_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38317,6 +38719,9 @@ pub mod ip_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38686,9 +39091,9 @@ pub mod network_virtual_appliances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38707,6 +39112,9 @@ pub mod network_virtual_appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38760,9 +39168,9 @@ pub mod network_virtual_appliances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38781,6 +39189,9 @@ pub mod network_virtual_appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39055,9 +39466,9 @@ pub mod virtual_appliance_sites { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkVirtualAppliances/{}/virtualApplianceSites" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . network_virtual_appliance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39076,6 +39487,9 @@ pub mod virtual_appliance_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39148,9 +39562,9 @@ pub mod virtual_appliance_skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39169,6 +39583,9 @@ pub mod virtual_appliance_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39359,9 +39776,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Network/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39380,6 +39797,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39743,9 +40163,9 @@ pub mod public_ip_prefixes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39764,6 +40184,9 @@ pub mod public_ip_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39819,9 +40242,9 @@ pub mod public_ip_prefixes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39840,6 +40263,9 @@ pub mod public_ip_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40209,9 +40635,9 @@ pub mod route_filters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40230,6 +40656,9 @@ pub mod route_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40283,9 +40712,9 @@ pub mod route_filters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40304,6 +40733,9 @@ pub mod route_filters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40605,9 +41037,9 @@ pub mod route_filter_rules { &this.route_filter_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40626,6 +41058,9 @@ pub mod route_filter_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40986,9 +41421,9 @@ pub mod security_partner_providers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41007,6 +41442,9 @@ pub mod security_partner_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41060,9 +41498,9 @@ pub mod security_partner_providers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41081,6 +41519,9 @@ pub mod security_partner_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41146,9 +41587,9 @@ pub mod bgp_service_communities { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41167,6 +41608,9 @@ pub mod bgp_service_communities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41310,9 +41754,9 @@ pub mod service_tag_information { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41331,6 +41775,9 @@ pub mod service_tag_information { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41407,9 +41854,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41428,6 +41875,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41728,9 +42178,9 @@ pub mod virtual_routers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41749,6 +42199,9 @@ pub mod virtual_routers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41802,9 +42255,9 @@ pub mod virtual_routers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41823,6 +42276,9 @@ pub mod virtual_routers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -42124,9 +42580,9 @@ pub mod virtual_router_peerings { &this.virtual_router_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42145,6 +42601,9 @@ pub mod virtual_router_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -42255,9 +42714,9 @@ pub mod web_application_firewall_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42276,6 +42735,9 @@ pub mod web_application_firewall_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -42329,9 +42791,9 @@ pub mod web_application_firewall_policies { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42350,6 +42812,9 @@ pub mod web_application_firewall_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/networkfunction/src/package_2021_09_01_preview/models.rs b/services/mgmt/networkfunction/src/package_2021_09_01_preview/models.rs index 8f3768ca18..d1722fa73e 100644 --- a/services/mgmt/networkfunction/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/networkfunction/src/package_2021_09_01_preview/models.rs @@ -32,8 +32,8 @@ pub struct AzureTrafficCollectorListResult { pub next_link: Option, } impl azure_core::Continuable for AzureTrafficCollectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureTrafficCollectorListResult { @@ -67,7 +67,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -128,8 +128,8 @@ pub struct CollectorPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for CollectorPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CollectorPolicyListResult { @@ -422,7 +422,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/networkfunction/src/package_2021_09_01_preview/operations.rs b/services/mgmt/networkfunction/src/package_2021_09_01_preview/operations.rs index e788c0d1b3..a7593bba5c 100644 --- a/services/mgmt/networkfunction/src/package_2021_09_01_preview/operations.rs +++ b/services/mgmt/networkfunction/src/package_2021_09_01_preview/operations.rs @@ -176,9 +176,9 @@ pub mod azure_traffic_collectors_by_subscription { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -197,6 +197,9 @@ pub mod azure_traffic_collectors_by_subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -265,9 +268,9 @@ pub mod azure_traffic_collectors_by_resource_group { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -286,6 +289,9 @@ pub mod azure_traffic_collectors_by_resource_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -691,9 +697,9 @@ pub mod collector_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{}/collectorPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . azure_traffic_collector_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -712,6 +718,9 @@ pub mod collector_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/networkfunction/src/package_2022_05_01/models.rs b/services/mgmt/networkfunction/src/package_2022_05_01/models.rs index 8f3768ca18..d1722fa73e 100644 --- a/services/mgmt/networkfunction/src/package_2022_05_01/models.rs +++ b/services/mgmt/networkfunction/src/package_2022_05_01/models.rs @@ -32,8 +32,8 @@ pub struct AzureTrafficCollectorListResult { pub next_link: Option, } impl azure_core::Continuable for AzureTrafficCollectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureTrafficCollectorListResult { @@ -67,7 +67,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -128,8 +128,8 @@ pub struct CollectorPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for CollectorPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CollectorPolicyListResult { @@ -422,7 +422,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/networkfunction/src/package_2022_05_01/operations.rs b/services/mgmt/networkfunction/src/package_2022_05_01/operations.rs index e9e99ac027..ab29c892dc 100644 --- a/services/mgmt/networkfunction/src/package_2022_05_01/operations.rs +++ b/services/mgmt/networkfunction/src/package_2022_05_01/operations.rs @@ -176,9 +176,9 @@ pub mod azure_traffic_collectors_by_subscription { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -197,6 +197,9 @@ pub mod azure_traffic_collectors_by_subscription { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -265,9 +268,9 @@ pub mod azure_traffic_collectors_by_resource_group { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -286,6 +289,9 @@ pub mod azure_traffic_collectors_by_resource_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -691,9 +697,9 @@ pub mod collector_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{}/collectorPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . azure_traffic_collector_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -712,6 +718,9 @@ pub mod collector_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/nginx/src/package_2021_05_01_preview/models.rs b/services/mgmt/nginx/src/package_2021_05_01_preview/models.rs index 86e25dbf57..de8c6fd4b5 100644 --- a/services/mgmt/nginx/src/package_2021_05_01_preview/models.rs +++ b/services/mgmt/nginx/src/package_2021_05_01_preview/models.rs @@ -108,8 +108,8 @@ pub struct NginxCertificateListResponse { pub next_link: Option, } impl azure_core::Continuable for NginxCertificateListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NginxCertificateListResponse { @@ -179,8 +179,8 @@ pub struct NginxConfigurationListResponse { pub next_link: Option, } impl azure_core::Continuable for NginxConfigurationListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NginxConfigurationListResponse { @@ -249,8 +249,8 @@ pub struct NginxDeploymentListResponse { pub next_link: Option, } impl azure_core::Continuable for NginxDeploymentListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NginxDeploymentListResponse { @@ -434,8 +434,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -517,7 +517,7 @@ pub struct ResourceProviderDefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for ResourceProviderDefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/nginx/src/package_2021_05_01_preview/operations.rs b/services/mgmt/nginx/src/package_2021_05_01_preview/operations.rs index 13e194721c..dab54080a5 100644 --- a/services/mgmt/nginx/src/package_2021_05_01_preview/operations.rs +++ b/services/mgmt/nginx/src/package_2021_05_01_preview/operations.rs @@ -355,9 +355,9 @@ pub mod certificates { &this.deployment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -376,6 +376,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -502,9 +505,9 @@ pub mod configurations { &this.deployment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -523,6 +526,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1076,9 +1082,9 @@ pub mod deployments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1090,6 +1096,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1142,9 +1151,9 @@ pub mod deployments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1156,6 +1165,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1211,9 +1223,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Nginx.NginxPlus/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1232,6 +1244,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/notificationhubs/src/package_2014_09/models.rs b/services/mgmt/notificationhubs/src/package_2014_09/models.rs index 19e2208529..4311252dbd 100644 --- a/services/mgmt/notificationhubs/src/package_2014_09/models.rs +++ b/services/mgmt/notificationhubs/src/package_2014_09/models.rs @@ -237,8 +237,8 @@ pub struct NamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for NamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NamespaceListResult { @@ -355,8 +355,8 @@ pub struct NotificationHubListResult { pub next_link: Option, } impl azure_core::Continuable for NotificationHubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationHubListResult { @@ -502,8 +502,8 @@ pub struct SharedAccessAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SharedAccessAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedAccessAuthorizationRuleListResult { diff --git a/services/mgmt/notificationhubs/src/package_2014_09/operations.rs b/services/mgmt/notificationhubs/src/package_2014_09/operations.rs index 789f281afc..e171fdb345 100644 --- a/services/mgmt/notificationhubs/src/package_2014_09/operations.rs +++ b/services/mgmt/notificationhubs/src/package_2014_09/operations.rs @@ -664,9 +664,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -685,6 +685,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -738,9 +741,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -759,6 +762,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -816,9 +822,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -837,6 +843,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1489,9 +1498,9 @@ pub mod notification_hubs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1510,6 +1519,9 @@ pub mod notification_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1562,9 +1574,9 @@ pub mod notification_hubs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.NotificationHubs/namespaces/{}/notificationHubs/{}/AuthorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . notification_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1583,6 +1595,9 @@ pub mod notification_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/notificationhubs/src/package_2016_03/models.rs b/services/mgmt/notificationhubs/src/package_2016_03/models.rs index e68255800c..cf93518f50 100644 --- a/services/mgmt/notificationhubs/src/package_2016_03/models.rs +++ b/services/mgmt/notificationhubs/src/package_2016_03/models.rs @@ -235,8 +235,8 @@ pub struct NamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for NamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NamespaceListResult { @@ -351,8 +351,8 @@ pub struct NotificationHubListResult { pub next_link: Option, } impl azure_core::Continuable for NotificationHubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationHubListResult { @@ -549,8 +549,8 @@ pub struct SharedAccessAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SharedAccessAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedAccessAuthorizationRuleListResult { diff --git a/services/mgmt/notificationhubs/src/package_2016_03/operations.rs b/services/mgmt/notificationhubs/src/package_2016_03/operations.rs index 72c4058165..f8da7333a0 100644 --- a/services/mgmt/notificationhubs/src/package_2016_03/operations.rs +++ b/services/mgmt/notificationhubs/src/package_2016_03/operations.rs @@ -698,9 +698,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -719,6 +719,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -772,9 +775,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -793,6 +796,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -850,9 +856,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -871,6 +877,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1589,9 +1598,9 @@ pub mod notification_hubs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1610,6 +1619,9 @@ pub mod notification_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1662,9 +1674,9 @@ pub mod notification_hubs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.NotificationHubs/namespaces/{}/notificationHubs/{}/AuthorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . notification_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1683,6 +1695,9 @@ pub mod notification_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/notificationhubs/src/package_2017_04/models.rs b/services/mgmt/notificationhubs/src/package_2017_04/models.rs index 8e5585fca9..8ed44931ed 100644 --- a/services/mgmt/notificationhubs/src/package_2017_04/models.rs +++ b/services/mgmt/notificationhubs/src/package_2017_04/models.rs @@ -209,7 +209,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -303,8 +303,8 @@ pub struct NamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for NamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NamespaceListResult { @@ -428,8 +428,8 @@ pub struct NotificationHubListResult { pub next_link: Option, } impl azure_core::Continuable for NotificationHubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationHubListResult { @@ -548,8 +548,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -682,8 +682,8 @@ pub struct SharedAccessAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SharedAccessAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedAccessAuthorizationRuleListResult { diff --git a/services/mgmt/notificationhubs/src/package_2017_04/operations.rs b/services/mgmt/notificationhubs/src/package_2017_04/operations.rs index 8c4e390a00..00f4444cef 100644 --- a/services/mgmt/notificationhubs/src/package_2017_04/operations.rs +++ b/services/mgmt/notificationhubs/src/package_2017_04/operations.rs @@ -109,9 +109,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -782,9 +785,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -803,6 +806,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -856,9 +862,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -877,6 +883,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -934,9 +943,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -955,6 +964,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1826,9 +1838,9 @@ pub mod notification_hubs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1847,6 +1859,9 @@ pub mod notification_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1899,9 +1914,9 @@ pub mod notification_hubs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.NotificationHubs/namespaces/{}/notificationHubs/{}/AuthorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . notification_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1920,6 +1935,9 @@ pub mod notification_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/oep/src/package_2021_06_01_preview/models.rs b/services/mgmt/oep/src/package_2021_06_01_preview/models.rs index 7c16fc7598..30246eb211 100644 --- a/services/mgmt/oep/src/package_2021_06_01_preview/models.rs +++ b/services/mgmt/oep/src/package_2021_06_01_preview/models.rs @@ -133,8 +133,8 @@ pub struct EnergyServiceList { pub value: Vec, } impl azure_core::Continuable for EnergyServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnergyServiceList { diff --git a/services/mgmt/oep/src/package_2021_06_01_preview/operations.rs b/services/mgmt/oep/src/package_2021_06_01_preview/operations.rs index 621bc665d7..48234f5126 100644 --- a/services/mgmt/oep/src/package_2021_06_01_preview/operations.rs +++ b/services/mgmt/oep/src/package_2021_06_01_preview/operations.rs @@ -245,9 +245,9 @@ pub mod energy_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -266,6 +266,9 @@ pub mod energy_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -319,9 +322,9 @@ pub mod energy_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -340,6 +343,9 @@ pub mod energy_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/oep/src/package_2022_04_04_preview/models.rs b/services/mgmt/oep/src/package_2022_04_04_preview/models.rs index e5ace48461..ad69efedb3 100644 --- a/services/mgmt/oep/src/package_2022_04_04_preview/models.rs +++ b/services/mgmt/oep/src/package_2022_04_04_preview/models.rs @@ -183,8 +183,8 @@ pub struct EnergyServiceList { pub value: Vec, } impl azure_core::Continuable for EnergyServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnergyServiceList { @@ -304,7 +304,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/oep/src/package_2022_04_04_preview/operations.rs b/services/mgmt/oep/src/package_2022_04_04_preview/operations.rs index 7847c5f313..ac6cf4b797 100644 --- a/services/mgmt/oep/src/package_2022_04_04_preview/operations.rs +++ b/services/mgmt/oep/src/package_2022_04_04_preview/operations.rs @@ -286,9 +286,9 @@ pub mod energy_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -307,6 +307,9 @@ pub mod energy_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -360,9 +363,9 @@ pub mod energy_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -381,6 +384,9 @@ pub mod energy_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs b/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs index b8ad584806..9c33310a38 100644 --- a/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs +++ b/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs @@ -132,7 +132,7 @@ pub struct ClusterErrorResponse { pub error: Option, } impl azure_core::Continuable for ClusterErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -152,8 +152,8 @@ pub struct ClusterListResult { pub value: Vec, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -367,7 +367,7 @@ pub struct DataCollectorLogsListResult { pub value: Vec, } impl azure_core::Continuable for DataCollectorLogsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -398,7 +398,7 @@ pub struct DataExportErrorResponse { pub error: Option, } impl azure_core::Continuable for DataExportErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -415,7 +415,7 @@ pub struct DataExportListResult { pub value: Vec, } impl azure_core::Continuable for DataExportListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -622,8 +622,8 @@ pub struct DataSourceListResult { pub next_link: Option, } impl azure_core::Continuable for DataSourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSourceListResult { @@ -728,7 +728,7 @@ pub struct ErrorContract { pub error: Option, } impl azure_core::Continuable for ErrorContract { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -838,7 +838,7 @@ pub struct LinkedServiceListResult { pub value: Vec, } impl azure_core::Continuable for LinkedServiceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -917,7 +917,7 @@ pub struct LinkedStorageAccountsListResult { pub value: Vec, } impl azure_core::Continuable for LinkedStorageAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1087,8 +1087,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1518,8 +1518,8 @@ pub struct StorageInsightListResult { pub odata_next_link: Option, } impl azure_core::Continuable for StorageInsightListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageInsightListResult { @@ -1643,7 +1643,7 @@ pub struct TablesListResult { pub value: Vec, } impl azure_core::Continuable for TablesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1807,7 +1807,7 @@ pub struct WorkspaceListManagementGroupsResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListManagementGroupsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1824,7 +1824,7 @@ pub struct WorkspaceListResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1841,7 +1841,7 @@ pub struct WorkspaceListUsagesResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListUsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/operationalinsights/src/package_2020_03_preview/operations.rs b/services/mgmt/operationalinsights/src/package_2020_03_preview/operations.rs index 1fb0ae4807..2596f82a60 100644 --- a/services/mgmt/operationalinsights/src/package_2020_03_preview/operations.rs +++ b/services/mgmt/operationalinsights/src/package_2020_03_preview/operations.rs @@ -697,9 +697,9 @@ pub mod data_sources { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -718,6 +718,9 @@ pub mod data_sources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1805,9 +1808,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1826,6 +1829,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2774,9 +2780,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2795,6 +2801,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2848,9 +2857,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2869,6 +2878,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3365,9 +3377,9 @@ pub mod storage_insight_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/storageInsightConfigs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3386,6 +3398,9 @@ pub mod storage_insight_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/operationalinsights/src/package_2020_08/models.rs b/services/mgmt/operationalinsights/src/package_2020_08/models.rs index ba3b4c17c1..cc80e4401b 100644 --- a/services/mgmt/operationalinsights/src/package_2020_08/models.rs +++ b/services/mgmt/operationalinsights/src/package_2020_08/models.rs @@ -135,8 +135,8 @@ pub struct ClusterListResult { pub value: Vec, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -338,7 +338,7 @@ pub struct DataExportListResult { pub value: Vec, } impl azure_core::Continuable for DataExportListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -545,8 +545,8 @@ pub struct DataSourceListResult { pub next_link: Option, } impl azure_core::Continuable for DataSourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSourceListResult { @@ -675,7 +675,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -761,7 +761,7 @@ pub struct LinkedServiceListResult { pub value: Vec, } impl azure_core::Continuable for LinkedServiceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -840,7 +840,7 @@ pub struct LinkedStorageAccountsListResult { pub value: Vec, } impl azure_core::Continuable for LinkedStorageAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1009,8 +1009,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1440,8 +1440,8 @@ pub struct StorageInsightListResult { pub odata_next_link: Option, } impl azure_core::Continuable for StorageInsightListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageInsightListResult { @@ -1565,7 +1565,7 @@ pub struct TablesListResult { pub value: Vec
, } impl azure_core::Continuable for TablesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1737,7 +1737,7 @@ pub struct WorkspaceListManagementGroupsResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListManagementGroupsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1754,7 +1754,7 @@ pub struct WorkspaceListResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1771,7 +1771,7 @@ pub struct WorkspaceListUsagesResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListUsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/operationalinsights/src/package_2020_08/operations.rs b/services/mgmt/operationalinsights/src/package_2020_08/operations.rs index d14d7379ec..05d5ddcce5 100644 --- a/services/mgmt/operationalinsights/src/package_2020_08/operations.rs +++ b/services/mgmt/operationalinsights/src/package_2020_08/operations.rs @@ -694,9 +694,9 @@ pub mod data_sources { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -715,6 +715,9 @@ pub mod data_sources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1596,9 +1599,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1617,6 +1620,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2565,9 +2571,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2586,6 +2592,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2639,9 +2648,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2660,6 +2669,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3156,9 +3168,9 @@ pub mod storage_insight_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/storageInsightConfigs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3177,6 +3189,9 @@ pub mod storage_insight_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/operationalinsights/src/package_2020_10/models.rs b/services/mgmt/operationalinsights/src/package_2020_10/models.rs index 1ea6242e21..d0158e4871 100644 --- a/services/mgmt/operationalinsights/src/package_2020_10/models.rs +++ b/services/mgmt/operationalinsights/src/package_2020_10/models.rs @@ -171,8 +171,8 @@ pub struct ClusterListResult { pub value: Vec, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -398,7 +398,7 @@ pub struct DataExportListResult { pub value: Vec, } impl azure_core::Continuable for DataExportListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -605,8 +605,8 @@ pub struct DataSourceListResult { pub next_link: Option, } impl azure_core::Continuable for DataSourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSourceListResult { @@ -735,7 +735,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -826,7 +826,7 @@ pub struct LinkedServiceListResult { pub value: Vec, } impl azure_core::Continuable for LinkedServiceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -905,7 +905,7 @@ pub struct LinkedStorageAccountsListResult { pub value: Vec, } impl azure_core::Continuable for LinkedStorageAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1074,8 +1074,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1505,8 +1505,8 @@ pub struct StorageInsightListResult { pub odata_next_link: Option, } impl azure_core::Continuable for StorageInsightListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageInsightListResult { @@ -1630,7 +1630,7 @@ pub struct TablesListResult { pub value: Vec
, } impl azure_core::Continuable for TablesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1837,7 +1837,7 @@ pub struct WorkspaceListManagementGroupsResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListManagementGroupsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1854,7 +1854,7 @@ pub struct WorkspaceListResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1871,7 +1871,7 @@ pub struct WorkspaceListUsagesResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListUsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/operationalinsights/src/package_2020_10/operations.rs b/services/mgmt/operationalinsights/src/package_2020_10/operations.rs index 3a796b0db9..8c4841d899 100644 --- a/services/mgmt/operationalinsights/src/package_2020_10/operations.rs +++ b/services/mgmt/operationalinsights/src/package_2020_10/operations.rs @@ -694,9 +694,9 @@ pub mod data_sources { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -715,6 +715,9 @@ pub mod data_sources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2081,9 +2084,9 @@ pub mod storage_insight_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/storageInsightConfigs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2102,6 +2105,9 @@ pub mod storage_insight_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3080,9 +3086,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3101,6 +3107,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3154,9 +3163,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3175,6 +3184,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3463,9 +3475,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3484,6 +3496,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/operationalinsights/src/package_2021_06/models.rs b/services/mgmt/operationalinsights/src/package_2021_06/models.rs index 2d63541651..de2bbad719 100644 --- a/services/mgmt/operationalinsights/src/package_2021_06/models.rs +++ b/services/mgmt/operationalinsights/src/package_2021_06/models.rs @@ -171,8 +171,8 @@ pub struct ClusterListResult { pub value: Vec, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -401,7 +401,7 @@ pub struct DataExportListResult { pub value: Vec, } impl azure_core::Continuable for DataExportListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -608,8 +608,8 @@ pub struct DataSourceListResult { pub next_link: Option, } impl azure_core::Continuable for DataSourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSourceListResult { @@ -738,7 +738,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -829,7 +829,7 @@ pub struct LinkedServiceListResult { pub value: Vec, } impl azure_core::Continuable for LinkedServiceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -908,7 +908,7 @@ pub struct LinkedStorageAccountsListResult { pub value: Vec, } impl azure_core::Continuable for LinkedStorageAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1077,8 +1077,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1508,8 +1508,8 @@ pub struct StorageInsightListResult { pub odata_next_link: Option, } impl azure_core::Continuable for StorageInsightListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageInsightListResult { @@ -1633,7 +1633,7 @@ pub struct TablesListResult { pub value: Vec
, } impl azure_core::Continuable for TablesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1840,7 +1840,7 @@ pub struct WorkspaceListManagementGroupsResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListManagementGroupsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1857,7 +1857,7 @@ pub struct WorkspaceListResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1874,7 +1874,7 @@ pub struct WorkspaceListUsagesResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListUsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/operationalinsights/src/package_2021_06/operations.rs b/services/mgmt/operationalinsights/src/package_2021_06/operations.rs index 4c4b9b3f42..6d0486d731 100644 --- a/services/mgmt/operationalinsights/src/package_2021_06/operations.rs +++ b/services/mgmt/operationalinsights/src/package_2021_06/operations.rs @@ -694,9 +694,9 @@ pub mod data_sources { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -715,6 +715,9 @@ pub mod data_sources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2081,9 +2084,9 @@ pub mod storage_insight_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/storageInsightConfigs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2102,6 +2105,9 @@ pub mod storage_insight_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2866,9 +2872,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2887,6 +2893,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2940,9 +2949,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2961,6 +2970,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3250,9 +3262,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3271,6 +3283,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs b/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs index 459e112053..fc696fa646 100644 --- a/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs +++ b/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs @@ -171,8 +171,8 @@ pub struct ClusterListResult { pub value: Vec, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -536,7 +536,7 @@ pub struct DataExportListResult { pub value: Vec, } impl azure_core::Continuable for DataExportListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -743,8 +743,8 @@ pub struct DataSourceListResult { pub next_link: Option, } impl azure_core::Continuable for DataSourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSourceListResult { @@ -873,7 +873,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -964,7 +964,7 @@ pub struct LinkedServiceListResult { pub value: Vec, } impl azure_core::Continuable for LinkedServiceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1043,7 +1043,7 @@ pub struct LinkedStorageAccountsListResult { pub value: Vec, } impl azure_core::Continuable for LinkedStorageAccountsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1212,8 +1212,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1873,8 +1873,8 @@ pub struct StorageInsightListResult { pub odata_next_link: Option, } impl azure_core::Continuable for StorageInsightListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageInsightListResult { @@ -2107,7 +2107,7 @@ pub struct TablesListResult { pub value: Vec
, } impl azure_core::Continuable for TablesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2318,7 +2318,7 @@ pub struct WorkspaceListManagementGroupsResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListManagementGroupsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2335,7 +2335,7 @@ pub struct WorkspaceListResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2352,7 +2352,7 @@ pub struct WorkspaceListUsagesResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceListUsagesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/operationalinsights/src/package_2021_12_01_preview/operations.rs b/services/mgmt/operationalinsights/src/package_2021_12_01_preview/operations.rs index fab6f78f80..8d29d82c81 100644 --- a/services/mgmt/operationalinsights/src/package_2021_12_01_preview/operations.rs +++ b/services/mgmt/operationalinsights/src/package_2021_12_01_preview/operations.rs @@ -160,9 +160,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -181,6 +181,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1752,9 +1755,9 @@ pub mod data_sources { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1773,6 +1776,9 @@ pub mod data_sources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3139,9 +3145,9 @@ pub mod storage_insight_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/storageInsightConfigs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3160,6 +3166,9 @@ pub mod storage_insight_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3924,9 +3933,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3945,6 +3954,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3998,9 +4010,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4019,6 +4031,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/operationsmanagement/src/package_2015_11_preview/models.rs b/services/mgmt/operationsmanagement/src/package_2015_11_preview/models.rs index 3b0f496eea..ada20f775a 100644 --- a/services/mgmt/operationsmanagement/src/package_2015_11_preview/models.rs +++ b/services/mgmt/operationsmanagement/src/package_2015_11_preview/models.rs @@ -205,7 +205,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/orbital/src/package_2021_04_04_preview/models.rs b/services/mgmt/orbital/src/package_2021_04_04_preview/models.rs index 17f91b8b8e..b339396167 100644 --- a/services/mgmt/orbital/src/package_2021_04_04_preview/models.rs +++ b/services/mgmt/orbital/src/package_2021_04_04_preview/models.rs @@ -72,8 +72,8 @@ pub struct AvailableGroundStationListResult { pub next_link: Option, } impl azure_core::Continuable for AvailableGroundStationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableGroundStationListResult { @@ -119,7 +119,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -213,7 +213,7 @@ pub struct ContactListResult { pub next_link: Option, } impl azure_core::Continuable for ContactListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -439,7 +439,7 @@ pub struct ContactProfileListResult { pub next_link: Option, } impl azure_core::Continuable for ContactProfileListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -785,7 +785,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1004,7 +1004,7 @@ pub struct SpacecraftListResult { pub next_link: Option, } impl azure_core::Continuable for SpacecraftListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/orbital/src/package_2021_04_04_preview/operations.rs b/services/mgmt/orbital/src/package_2021_04_04_preview/operations.rs index 7346a9495a..ea7458020a 100644 --- a/services/mgmt/orbital/src/package_2021_04_04_preview/operations.rs +++ b/services/mgmt/orbital/src/package_2021_04_04_preview/operations.rs @@ -1351,9 +1351,9 @@ pub mod available_ground_stations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1372,6 +1372,9 @@ pub mod available_ground_stations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/orbital/src/package_2022_03_01/models.rs b/services/mgmt/orbital/src/package_2022_03_01/models.rs index ecaeeb3524..ae4a56b566 100644 --- a/services/mgmt/orbital/src/package_2022_03_01/models.rs +++ b/services/mgmt/orbital/src/package_2022_03_01/models.rs @@ -48,8 +48,8 @@ pub struct AvailableContactsListResult { pub next_link: Option, } impl azure_core::Continuable for AvailableContactsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableContactsListResult { @@ -92,8 +92,8 @@ pub struct AvailableGroundStationListResult { pub next_link: Option, } impl azure_core::Continuable for AvailableGroundStationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableGroundStationListResult { @@ -214,7 +214,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -308,8 +308,8 @@ pub struct ContactListResult { pub next_link: Option, } impl azure_core::Continuable for ContactListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContactListResult { @@ -538,8 +538,8 @@ pub struct ContactProfileListResult { pub next_link: Option, } impl azure_core::Continuable for ContactProfileListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContactProfileListResult { @@ -927,7 +927,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1252,8 +1252,8 @@ pub struct SpacecraftListResult { pub next_link: Option, } impl azure_core::Continuable for SpacecraftListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SpacecraftListResult { diff --git a/services/mgmt/orbital/src/package_2022_03_01/operations.rs b/services/mgmt/orbital/src/package_2022_03_01/operations.rs index e50de83d10..a83887c403 100644 --- a/services/mgmt/orbital/src/package_2022_03_01/operations.rs +++ b/services/mgmt/orbital/src/package_2022_03_01/operations.rs @@ -261,9 +261,9 @@ pub mod spacecrafts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -282,6 +282,9 @@ pub mod spacecrafts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -345,9 +348,9 @@ pub mod spacecrafts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -366,6 +369,9 @@ pub mod spacecrafts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -643,7 +649,7 @@ pub mod spacecrafts { Accepted202, } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202 => None, @@ -671,9 +677,9 @@ pub mod spacecrafts { &this.spacecraft_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -692,6 +698,9 @@ pub mod spacecrafts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -823,9 +832,9 @@ pub mod contacts { &this.spacecraft_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -844,6 +853,9 @@ pub mod contacts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1392,9 +1404,9 @@ pub mod contact_profiles { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1413,6 +1425,9 @@ pub mod contact_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1476,9 +1491,9 @@ pub mod contact_profiles { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1497,6 +1512,9 @@ pub mod contact_profiles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1574,9 +1592,9 @@ pub mod available_ground_stations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1595,6 +1613,9 @@ pub mod available_ground_stations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/peering/src/package_2020_04_01/models.rs b/services/mgmt/peering/src/package_2020_04_01/models.rs index 0da303ce07..96f710c844 100644 --- a/services/mgmt/peering/src/package_2020_04_01/models.rs +++ b/services/mgmt/peering/src/package_2020_04_01/models.rs @@ -457,7 +457,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -625,8 +625,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -659,8 +659,8 @@ pub struct PeerAsnListResult { pub next_link: Option, } impl azure_core::Continuable for PeerAsnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeerAsnListResult { @@ -832,8 +832,8 @@ pub struct PeeringListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringListResult { @@ -909,8 +909,8 @@ pub struct PeeringLocationListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringLocationListResult { @@ -1159,8 +1159,8 @@ pub struct PeeringReceivedRouteListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringReceivedRouteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringReceivedRouteListResult { @@ -1193,8 +1193,8 @@ pub struct PeeringRegisteredAsnListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringRegisteredAsnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringRegisteredAsnListResult { @@ -1289,8 +1289,8 @@ pub struct PeeringRegisteredPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringRegisteredPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringRegisteredPrefixListResult { @@ -1463,8 +1463,8 @@ pub struct PeeringServiceCountryListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceCountryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceCountryListResult { @@ -1483,8 +1483,8 @@ pub struct PeeringServiceListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceListResult { @@ -1517,8 +1517,8 @@ pub struct PeeringServiceLocationListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceLocationListResult { @@ -1593,8 +1593,8 @@ pub struct PeeringServicePrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServicePrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServicePrefixListResult { @@ -1849,8 +1849,8 @@ pub struct PeeringServiceProviderListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceProviderListResult { diff --git a/services/mgmt/peering/src/package_2020_04_01/operations.rs b/services/mgmt/peering/src/package_2020_04_01/operations.rs index 012d48b0e2..a6a55caf8a 100644 --- a/services/mgmt/peering/src/package_2020_04_01/operations.rs +++ b/services/mgmt/peering/src/package_2020_04_01/operations.rs @@ -222,9 +222,9 @@ pub mod legacy_peerings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -243,6 +243,9 @@ pub mod legacy_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -308,9 +311,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Peering/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -329,6 +332,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -583,9 +589,9 @@ pub mod peer_asns { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -604,6 +610,9 @@ pub mod peer_asns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -677,9 +686,9 @@ pub mod peering_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -698,6 +707,9 @@ pub mod peering_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1002,9 +1014,9 @@ pub mod registered_asns { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1023,6 +1035,9 @@ pub mod registered_asns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1320,9 +1335,9 @@ pub mod registered_prefixes { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1341,6 +1356,9 @@ pub mod registered_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1697,9 +1715,9 @@ pub mod peerings { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1718,6 +1736,9 @@ pub mod peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1771,9 +1792,9 @@ pub mod peerings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1792,6 +1813,9 @@ pub mod peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1898,9 +1922,9 @@ pub mod received_routes { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1919,6 +1943,9 @@ pub mod received_routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2003,9 +2030,9 @@ pub mod peering_service_countries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2024,6 +2051,9 @@ pub mod peering_service_countries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2095,9 +2125,9 @@ pub mod peering_service_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2116,6 +2146,9 @@ pub mod peering_service_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2431,9 +2464,9 @@ pub mod prefixes { &this.peering_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2452,6 +2485,9 @@ pub mod prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2520,9 +2556,9 @@ pub mod peering_service_providers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2541,6 +2577,9 @@ pub mod peering_service_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2897,9 +2936,9 @@ pub mod peering_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2918,6 +2957,9 @@ pub mod peering_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2971,9 +3013,9 @@ pub mod peering_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2992,6 +3034,9 @@ pub mod peering_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/peering/src/package_2020_10_01/models.rs b/services/mgmt/peering/src/package_2020_10_01/models.rs index 5fc27ff4ea..83aab6a1d9 100644 --- a/services/mgmt/peering/src/package_2020_10_01/models.rs +++ b/services/mgmt/peering/src/package_2020_10_01/models.rs @@ -184,8 +184,8 @@ pub struct CdnPeeringPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for CdnPeeringPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CdnPeeringPrefixListResult { @@ -518,7 +518,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -686,8 +686,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -720,8 +720,8 @@ pub struct PeerAsnListResult { pub next_link: Option, } impl azure_core::Continuable for PeerAsnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeerAsnListResult { @@ -893,8 +893,8 @@ pub struct PeeringListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringListResult { @@ -970,8 +970,8 @@ pub struct PeeringLocationListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringLocationListResult { @@ -1220,8 +1220,8 @@ pub struct PeeringReceivedRouteListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringReceivedRouteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringReceivedRouteListResult { @@ -1254,8 +1254,8 @@ pub struct PeeringRegisteredAsnListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringRegisteredAsnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringRegisteredAsnListResult { @@ -1350,8 +1350,8 @@ pub struct PeeringRegisteredPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringRegisteredPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringRegisteredPrefixListResult { @@ -1524,8 +1524,8 @@ pub struct PeeringServiceCountryListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceCountryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceCountryListResult { @@ -1544,8 +1544,8 @@ pub struct PeeringServiceListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceListResult { @@ -1578,8 +1578,8 @@ pub struct PeeringServiceLocationListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceLocationListResult { @@ -1654,8 +1654,8 @@ pub struct PeeringServicePrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServicePrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServicePrefixListResult { @@ -1910,8 +1910,8 @@ pub struct PeeringServiceProviderListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceProviderListResult { diff --git a/services/mgmt/peering/src/package_2020_10_01/operations.rs b/services/mgmt/peering/src/package_2020_10_01/operations.rs index 0223ed659f..57a6bcde48 100644 --- a/services/mgmt/peering/src/package_2020_10_01/operations.rs +++ b/services/mgmt/peering/src/package_2020_10_01/operations.rs @@ -149,9 +149,9 @@ pub mod cdn_peering_prefixes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -170,6 +170,9 @@ pub mod cdn_peering_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -315,9 +318,9 @@ pub mod legacy_peerings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -336,6 +339,9 @@ pub mod legacy_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -401,9 +407,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Peering/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -422,6 +428,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -676,9 +685,9 @@ pub mod peer_asns { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -697,6 +706,9 @@ pub mod peer_asns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -770,9 +782,9 @@ pub mod peering_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -791,6 +803,9 @@ pub mod peering_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1095,9 +1110,9 @@ pub mod registered_asns { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1116,6 +1131,9 @@ pub mod registered_asns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1413,9 +1431,9 @@ pub mod registered_prefixes { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1434,6 +1452,9 @@ pub mod registered_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1790,9 +1811,9 @@ pub mod peerings { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1811,6 +1832,9 @@ pub mod peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1864,9 +1888,9 @@ pub mod peerings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1885,6 +1909,9 @@ pub mod peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1991,9 +2018,9 @@ pub mod received_routes { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2012,6 +2039,9 @@ pub mod received_routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2096,9 +2126,9 @@ pub mod peering_service_countries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2117,6 +2147,9 @@ pub mod peering_service_countries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2188,9 +2221,9 @@ pub mod peering_service_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2209,6 +2242,9 @@ pub mod peering_service_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2524,9 +2560,9 @@ pub mod prefixes { &this.peering_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2545,6 +2581,9 @@ pub mod prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2613,9 +2652,9 @@ pub mod peering_service_providers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2634,6 +2673,9 @@ pub mod peering_service_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2990,9 +3032,9 @@ pub mod peering_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3011,6 +3053,9 @@ pub mod peering_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3064,9 +3109,9 @@ pub mod peering_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3085,6 +3130,9 @@ pub mod peering_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/peering/src/package_2021_01_01/models.rs b/services/mgmt/peering/src/package_2021_01_01/models.rs index d39ac1446c..517096b142 100644 --- a/services/mgmt/peering/src/package_2021_01_01/models.rs +++ b/services/mgmt/peering/src/package_2021_01_01/models.rs @@ -184,8 +184,8 @@ pub struct CdnPeeringPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for CdnPeeringPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CdnPeeringPrefixListResult { @@ -520,7 +520,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -688,8 +688,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -722,8 +722,8 @@ pub struct PeerAsnListResult { pub next_link: Option, } impl azure_core::Continuable for PeerAsnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeerAsnListResult { @@ -895,8 +895,8 @@ pub struct PeeringListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringListResult { @@ -972,8 +972,8 @@ pub struct PeeringLocationListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringLocationListResult { @@ -1224,8 +1224,8 @@ pub struct PeeringReceivedRouteListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringReceivedRouteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringReceivedRouteListResult { @@ -1258,8 +1258,8 @@ pub struct PeeringRegisteredAsnListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringRegisteredAsnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringRegisteredAsnListResult { @@ -1354,8 +1354,8 @@ pub struct PeeringRegisteredPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringRegisteredPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringRegisteredPrefixListResult { @@ -1528,8 +1528,8 @@ pub struct PeeringServiceCountryListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceCountryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceCountryListResult { @@ -1548,8 +1548,8 @@ pub struct PeeringServiceListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceListResult { @@ -1582,8 +1582,8 @@ pub struct PeeringServiceLocationListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceLocationListResult { @@ -1658,8 +1658,8 @@ pub struct PeeringServicePrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServicePrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServicePrefixListResult { @@ -1920,8 +1920,8 @@ pub struct PeeringServiceProviderListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceProviderListResult { diff --git a/services/mgmt/peering/src/package_2021_01_01/operations.rs b/services/mgmt/peering/src/package_2021_01_01/operations.rs index 5b0972b59c..ef5df6252d 100644 --- a/services/mgmt/peering/src/package_2021_01_01/operations.rs +++ b/services/mgmt/peering/src/package_2021_01_01/operations.rs @@ -149,9 +149,9 @@ pub mod cdn_peering_prefixes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -170,6 +170,9 @@ pub mod cdn_peering_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -315,9 +318,9 @@ pub mod legacy_peerings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -336,6 +339,9 @@ pub mod legacy_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -401,9 +407,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Peering/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -422,6 +428,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -676,9 +685,9 @@ pub mod peer_asns { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -697,6 +706,9 @@ pub mod peer_asns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -770,9 +782,9 @@ pub mod peering_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -791,6 +803,9 @@ pub mod peering_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1095,9 +1110,9 @@ pub mod registered_asns { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1116,6 +1131,9 @@ pub mod registered_asns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1413,9 +1431,9 @@ pub mod registered_prefixes { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1434,6 +1452,9 @@ pub mod registered_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1790,9 +1811,9 @@ pub mod peerings { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1811,6 +1832,9 @@ pub mod peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1864,9 +1888,9 @@ pub mod peerings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1885,6 +1909,9 @@ pub mod peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1991,9 +2018,9 @@ pub mod received_routes { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2012,6 +2039,9 @@ pub mod received_routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2096,9 +2126,9 @@ pub mod peering_service_countries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2117,6 +2147,9 @@ pub mod peering_service_countries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2188,9 +2221,9 @@ pub mod peering_service_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2209,6 +2242,9 @@ pub mod peering_service_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2524,9 +2560,9 @@ pub mod prefixes { &this.peering_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2545,6 +2581,9 @@ pub mod prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2613,9 +2652,9 @@ pub mod peering_service_providers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2634,6 +2673,9 @@ pub mod peering_service_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2990,9 +3032,9 @@ pub mod peering_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3011,6 +3053,9 @@ pub mod peering_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3064,9 +3109,9 @@ pub mod peering_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3085,6 +3130,9 @@ pub mod peering_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/peering/src/package_2021_06_01/models.rs b/services/mgmt/peering/src/package_2021_06_01/models.rs index 9f1b1856dd..3754e156af 100644 --- a/services/mgmt/peering/src/package_2021_06_01/models.rs +++ b/services/mgmt/peering/src/package_2021_06_01/models.rs @@ -184,8 +184,8 @@ pub struct CdnPeeringPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for CdnPeeringPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CdnPeeringPrefixListResult { @@ -257,8 +257,8 @@ pub struct ConnectionMonitorTestListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionMonitorTestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionMonitorTestListResult { @@ -628,7 +628,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -919,8 +919,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -965,8 +965,8 @@ pub struct PeerAsnListResult { pub next_link: Option, } impl azure_core::Continuable for PeerAsnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeerAsnListResult { @@ -1138,8 +1138,8 @@ pub struct PeeringListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringListResult { @@ -1215,8 +1215,8 @@ pub struct PeeringLocationListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringLocationListResult { @@ -1467,8 +1467,8 @@ pub struct PeeringReceivedRouteListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringReceivedRouteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringReceivedRouteListResult { @@ -1501,8 +1501,8 @@ pub struct PeeringRegisteredAsnListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringRegisteredAsnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringRegisteredAsnListResult { @@ -1597,8 +1597,8 @@ pub struct PeeringRegisteredPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringRegisteredPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringRegisteredPrefixListResult { @@ -1771,8 +1771,8 @@ pub struct PeeringServiceCountryListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceCountryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceCountryListResult { @@ -1791,8 +1791,8 @@ pub struct PeeringServiceListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceListResult { @@ -1825,8 +1825,8 @@ pub struct PeeringServiceLocationListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceLocationListResult { @@ -1901,8 +1901,8 @@ pub struct PeeringServicePrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServicePrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServicePrefixListResult { @@ -2166,8 +2166,8 @@ pub struct PeeringServiceProviderListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceProviderListResult { diff --git a/services/mgmt/peering/src/package_2021_06_01/operations.rs b/services/mgmt/peering/src/package_2021_06_01/operations.rs index c3c015e504..da663f134c 100644 --- a/services/mgmt/peering/src/package_2021_06_01/operations.rs +++ b/services/mgmt/peering/src/package_2021_06_01/operations.rs @@ -155,9 +155,9 @@ pub mod cdn_peering_prefixes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -176,6 +176,9 @@ pub mod cdn_peering_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -321,9 +324,9 @@ pub mod legacy_peerings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -342,6 +345,9 @@ pub mod legacy_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -491,9 +497,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Peering/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -512,6 +518,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -766,9 +775,9 @@ pub mod peer_asns { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -787,6 +796,9 @@ pub mod peer_asns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -860,9 +872,9 @@ pub mod peering_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -881,6 +893,9 @@ pub mod peering_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1185,9 +1200,9 @@ pub mod registered_asns { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1206,6 +1221,9 @@ pub mod registered_asns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1503,9 +1521,9 @@ pub mod registered_prefixes { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1524,6 +1542,9 @@ pub mod registered_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1880,9 +1901,9 @@ pub mod peerings { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1901,6 +1922,9 @@ pub mod peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1954,9 +1978,9 @@ pub mod peerings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1975,6 +1999,9 @@ pub mod peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2081,9 +2108,9 @@ pub mod received_routes { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2102,6 +2129,9 @@ pub mod received_routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2397,9 +2427,9 @@ pub mod connection_monitor_tests { &this.peering_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2418,6 +2448,9 @@ pub mod connection_monitor_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2483,9 +2516,9 @@ pub mod peering_service_countries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2504,6 +2537,9 @@ pub mod peering_service_countries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2575,9 +2611,9 @@ pub mod peering_service_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2596,6 +2632,9 @@ pub mod peering_service_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2911,9 +2950,9 @@ pub mod prefixes { &this.peering_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2932,6 +2971,9 @@ pub mod prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3000,9 +3042,9 @@ pub mod peering_service_providers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3021,6 +3063,9 @@ pub mod peering_service_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3383,9 +3428,9 @@ pub mod peering_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3404,6 +3449,9 @@ pub mod peering_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3457,9 +3505,9 @@ pub mod peering_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3478,6 +3526,9 @@ pub mod peering_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/peering/src/package_2022_01_01/models.rs b/services/mgmt/peering/src/package_2022_01_01/models.rs index 38b56e795f..13d0f92c01 100644 --- a/services/mgmt/peering/src/package_2022_01_01/models.rs +++ b/services/mgmt/peering/src/package_2022_01_01/models.rs @@ -184,8 +184,8 @@ pub struct CdnPeeringPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for CdnPeeringPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CdnPeeringPrefixListResult { @@ -257,8 +257,8 @@ pub struct ConnectionMonitorTestListResult { pub next_link: Option, } impl azure_core::Continuable for ConnectionMonitorTestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionMonitorTestListResult { @@ -630,7 +630,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -921,8 +921,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -967,8 +967,8 @@ pub struct PeerAsnListResult { pub next_link: Option, } impl azure_core::Continuable for PeerAsnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeerAsnListResult { @@ -1140,8 +1140,8 @@ pub struct PeeringListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringListResult { @@ -1217,8 +1217,8 @@ pub struct PeeringLocationListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringLocationListResult { @@ -1471,8 +1471,8 @@ pub struct PeeringReceivedRouteListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringReceivedRouteListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringReceivedRouteListResult { @@ -1505,8 +1505,8 @@ pub struct PeeringRegisteredAsnListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringRegisteredAsnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringRegisteredAsnListResult { @@ -1601,8 +1601,8 @@ pub struct PeeringRegisteredPrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringRegisteredPrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringRegisteredPrefixListResult { @@ -1775,8 +1775,8 @@ pub struct PeeringServiceCountryListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceCountryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceCountryListResult { @@ -1795,8 +1795,8 @@ pub struct PeeringServiceListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceListResult { @@ -1829,8 +1829,8 @@ pub struct PeeringServiceLocationListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceLocationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceLocationListResult { @@ -1905,8 +1905,8 @@ pub struct PeeringServicePrefixListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServicePrefixListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServicePrefixListResult { @@ -2170,8 +2170,8 @@ pub struct PeeringServiceProviderListResult { pub next_link: Option, } impl azure_core::Continuable for PeeringServiceProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PeeringServiceProviderListResult { diff --git a/services/mgmt/peering/src/package_2022_01_01/operations.rs b/services/mgmt/peering/src/package_2022_01_01/operations.rs index f01ef63f69..e15a2abfda 100644 --- a/services/mgmt/peering/src/package_2022_01_01/operations.rs +++ b/services/mgmt/peering/src/package_2022_01_01/operations.rs @@ -155,9 +155,9 @@ pub mod cdn_peering_prefixes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -176,6 +176,9 @@ pub mod cdn_peering_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -321,9 +324,9 @@ pub mod legacy_peerings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -342,6 +345,9 @@ pub mod legacy_peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -491,9 +497,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Peering/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -512,6 +518,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -766,9 +775,9 @@ pub mod peer_asns { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -787,6 +796,9 @@ pub mod peer_asns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -860,9 +872,9 @@ pub mod peering_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -881,6 +893,9 @@ pub mod peering_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1185,9 +1200,9 @@ pub mod registered_asns { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1206,6 +1221,9 @@ pub mod registered_asns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1503,9 +1521,9 @@ pub mod registered_prefixes { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1524,6 +1542,9 @@ pub mod registered_prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1880,9 +1901,9 @@ pub mod peerings { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1901,6 +1922,9 @@ pub mod peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1954,9 +1978,9 @@ pub mod peerings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1975,6 +1999,9 @@ pub mod peerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2081,9 +2108,9 @@ pub mod received_routes { &this.peering_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2102,6 +2129,9 @@ pub mod received_routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2397,9 +2427,9 @@ pub mod connection_monitor_tests { &this.peering_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2418,6 +2448,9 @@ pub mod connection_monitor_tests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2483,9 +2516,9 @@ pub mod peering_service_countries { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2504,6 +2537,9 @@ pub mod peering_service_countries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2575,9 +2611,9 @@ pub mod peering_service_locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2596,6 +2632,9 @@ pub mod peering_service_locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2911,9 +2950,9 @@ pub mod prefixes { &this.peering_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2932,6 +2971,9 @@ pub mod prefixes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3000,9 +3042,9 @@ pub mod peering_service_providers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3021,6 +3063,9 @@ pub mod peering_service_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3383,9 +3428,9 @@ pub mod peering_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3404,6 +3449,9 @@ pub mod peering_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3457,9 +3505,9 @@ pub mod peering_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3478,6 +3526,9 @@ pub mod peering_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/policyinsights/src/package_2020_07/models.rs b/services/mgmt/policyinsights/src/package_2020_07/models.rs index 50ece9a099..d875b5fb71 100644 --- a/services/mgmt/policyinsights/src/package_2020_07/models.rs +++ b/services/mgmt/policyinsights/src/package_2020_07/models.rs @@ -175,7 +175,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -603,8 +603,8 @@ pub struct PolicyEventsQueryResults { pub value: Vec, } impl azure_core::Continuable for PolicyEventsQueryResults { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyEventsQueryResults { @@ -659,8 +659,8 @@ pub struct PolicyMetadataCollection { pub next_link: Option, } impl azure_core::Continuable for PolicyMetadataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyMetadataCollection { @@ -861,8 +861,8 @@ pub struct PolicyStatesQueryResults { pub value: Vec, } impl azure_core::Continuable for PolicyStatesQueryResults { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyStatesQueryResults { @@ -905,8 +905,8 @@ pub struct PolicyTrackedResourcesQueryResults { pub next_link: Option, } impl azure_core::Continuable for PolicyTrackedResourcesQueryResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyTrackedResourcesQueryResults { @@ -922,7 +922,7 @@ pub struct QueryFailure { pub error: Option, } impl azure_core::Continuable for QueryFailure { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1029,8 +1029,8 @@ pub struct RemediationDeploymentsListResult { pub next_link: Option, } impl azure_core::Continuable for RemediationDeploymentsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RemediationDeploymentsListResult { @@ -1061,8 +1061,8 @@ pub struct RemediationListResult { pub next_link: Option, } impl azure_core::Continuable for RemediationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RemediationListResult { diff --git a/services/mgmt/policyinsights/src/package_2020_07/operations.rs b/services/mgmt/policyinsights/src/package_2020_07/operations.rs index eaec7e4ee1..9e8f748433 100644 --- a/services/mgmt/policyinsights/src/package_2020_07/operations.rs +++ b/services/mgmt/policyinsights/src/package_2020_07/operations.rs @@ -190,9 +190,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -211,6 +211,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -283,9 +286,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -304,6 +307,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -372,9 +378,9 @@ pub mod policy_tracked_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.PolicyInsights/policyTrackedResources/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . policy_tracked_resources_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -393,6 +399,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -465,9 +474,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -486,6 +495,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -851,9 +863,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -872,6 +884,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -994,9 +1009,9 @@ pub mod remediations { &this.management_group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1015,6 +1030,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1253,9 +1271,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1274,6 +1292,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1392,9 +1413,9 @@ pub mod remediations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1413,6 +1434,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1647,9 +1671,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1668,6 +1692,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1790,9 +1817,9 @@ pub mod remediations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1811,6 +1838,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2049,9 +2079,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2070,6 +2100,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2188,9 +2221,9 @@ pub mod remediations { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2209,6 +2242,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2723,9 +2759,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2744,6 +2780,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2864,9 +2903,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2885,6 +2924,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3007,9 +3049,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3028,6 +3070,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3153,9 +3198,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3174,6 +3219,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3294,9 +3342,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policySetDefinitions/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_set_definition_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3315,6 +3363,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3432,9 +3483,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyDefinitions/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_definition_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3453,6 +3504,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3570,9 +3624,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3591,6 +3645,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3709,9 +3766,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3730,6 +3787,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4256,9 +4316,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4277,6 +4337,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4482,9 +4545,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4503,6 +4566,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4708,9 +4774,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4729,6 +4795,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4939,9 +5008,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4960,6 +5029,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5262,9 +5334,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policySetDefinitions/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_set_definition_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5283,6 +5355,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5480,9 +5555,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyDefinitions/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_definition_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5501,6 +5576,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5698,9 +5776,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5719,6 +5797,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5917,9 +5998,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5938,6 +6019,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6219,9 +6303,9 @@ pub mod policy_metadata { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6240,6 +6324,9 @@ pub mod policy_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/policyinsights/src/package_2020_07_preview/models.rs b/services/mgmt/policyinsights/src/package_2020_07_preview/models.rs index 50ece9a099..d875b5fb71 100644 --- a/services/mgmt/policyinsights/src/package_2020_07_preview/models.rs +++ b/services/mgmt/policyinsights/src/package_2020_07_preview/models.rs @@ -175,7 +175,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -603,8 +603,8 @@ pub struct PolicyEventsQueryResults { pub value: Vec, } impl azure_core::Continuable for PolicyEventsQueryResults { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyEventsQueryResults { @@ -659,8 +659,8 @@ pub struct PolicyMetadataCollection { pub next_link: Option, } impl azure_core::Continuable for PolicyMetadataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyMetadataCollection { @@ -861,8 +861,8 @@ pub struct PolicyStatesQueryResults { pub value: Vec, } impl azure_core::Continuable for PolicyStatesQueryResults { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyStatesQueryResults { @@ -905,8 +905,8 @@ pub struct PolicyTrackedResourcesQueryResults { pub next_link: Option, } impl azure_core::Continuable for PolicyTrackedResourcesQueryResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyTrackedResourcesQueryResults { @@ -922,7 +922,7 @@ pub struct QueryFailure { pub error: Option, } impl azure_core::Continuable for QueryFailure { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1029,8 +1029,8 @@ pub struct RemediationDeploymentsListResult { pub next_link: Option, } impl azure_core::Continuable for RemediationDeploymentsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RemediationDeploymentsListResult { @@ -1061,8 +1061,8 @@ pub struct RemediationListResult { pub next_link: Option, } impl azure_core::Continuable for RemediationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RemediationListResult { diff --git a/services/mgmt/policyinsights/src/package_2020_07_preview/operations.rs b/services/mgmt/policyinsights/src/package_2020_07_preview/operations.rs index 7747500e05..d97d6f1b51 100644 --- a/services/mgmt/policyinsights/src/package_2020_07_preview/operations.rs +++ b/services/mgmt/policyinsights/src/package_2020_07_preview/operations.rs @@ -190,9 +190,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -211,6 +211,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -283,9 +286,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -304,6 +307,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -372,9 +378,9 @@ pub mod policy_tracked_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.PolicyInsights/policyTrackedResources/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . policy_tracked_resources_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -393,6 +399,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -465,9 +474,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -486,6 +495,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -851,9 +863,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -872,6 +884,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -994,9 +1009,9 @@ pub mod remediations { &this.management_group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1015,6 +1030,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1253,9 +1271,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1274,6 +1292,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1392,9 +1413,9 @@ pub mod remediations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1413,6 +1434,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1647,9 +1671,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1668,6 +1692,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1790,9 +1817,9 @@ pub mod remediations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1811,6 +1838,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2049,9 +2079,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2070,6 +2100,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2188,9 +2221,9 @@ pub mod remediations { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2209,6 +2242,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2723,9 +2759,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2744,6 +2780,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2864,9 +2903,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2885,6 +2924,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3007,9 +3049,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3028,6 +3070,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3153,9 +3198,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3174,6 +3219,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3294,9 +3342,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policySetDefinitions/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_set_definition_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3315,6 +3363,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3432,9 +3483,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyDefinitions/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_definition_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3453,6 +3504,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3570,9 +3624,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3591,6 +3645,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3709,9 +3766,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3730,6 +3787,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4256,9 +4316,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4277,6 +4337,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4482,9 +4545,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4503,6 +4566,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4708,9 +4774,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4729,6 +4795,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4939,9 +5008,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4960,6 +5029,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5262,9 +5334,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policySetDefinitions/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_set_definition_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5283,6 +5355,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5480,9 +5555,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyDefinitions/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_definition_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5501,6 +5576,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5698,9 +5776,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5719,6 +5797,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5917,9 +5998,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5938,6 +6019,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6219,9 +6303,9 @@ pub mod policy_metadata { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6240,6 +6324,9 @@ pub mod policy_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/policyinsights/src/package_2021_01/models.rs b/services/mgmt/policyinsights/src/package_2021_01/models.rs index 91726b03aa..8d66080046 100644 --- a/services/mgmt/policyinsights/src/package_2021_01/models.rs +++ b/services/mgmt/policyinsights/src/package_2021_01/models.rs @@ -50,8 +50,8 @@ pub struct AttestationListResult { pub next_link: Option, } impl azure_core::Continuable for AttestationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AttestationListResult { @@ -318,7 +318,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -746,8 +746,8 @@ pub struct PolicyEventsQueryResults { pub value: Vec, } impl azure_core::Continuable for PolicyEventsQueryResults { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyEventsQueryResults { @@ -802,8 +802,8 @@ pub struct PolicyMetadataCollection { pub next_link: Option, } impl azure_core::Continuable for PolicyMetadataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyMetadataCollection { @@ -1004,8 +1004,8 @@ pub struct PolicyStatesQueryResults { pub value: Vec, } impl azure_core::Continuable for PolicyStatesQueryResults { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyStatesQueryResults { @@ -1048,8 +1048,8 @@ pub struct PolicyTrackedResourcesQueryResults { pub next_link: Option, } impl azure_core::Continuable for PolicyTrackedResourcesQueryResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyTrackedResourcesQueryResults { @@ -1065,7 +1065,7 @@ pub struct QueryFailure { pub error: Option, } impl azure_core::Continuable for QueryFailure { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1172,8 +1172,8 @@ pub struct RemediationDeploymentsListResult { pub next_link: Option, } impl azure_core::Continuable for RemediationDeploymentsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RemediationDeploymentsListResult { @@ -1204,8 +1204,8 @@ pub struct RemediationListResult { pub next_link: Option, } impl azure_core::Continuable for RemediationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RemediationListResult { diff --git a/services/mgmt/policyinsights/src/package_2021_01/operations.rs b/services/mgmt/policyinsights/src/package_2021_01/operations.rs index 8711dfdcbe..7aa0b9aab3 100644 --- a/services/mgmt/policyinsights/src/package_2021_01/operations.rs +++ b/services/mgmt/policyinsights/src/package_2021_01/operations.rs @@ -193,9 +193,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -214,6 +214,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -286,9 +289,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -307,6 +310,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -375,9 +381,9 @@ pub mod policy_tracked_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.PolicyInsights/policyTrackedResources/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . policy_tracked_resources_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -396,6 +402,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -468,9 +477,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -489,6 +498,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -854,9 +866,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -875,6 +887,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -997,9 +1012,9 @@ pub mod remediations { &this.management_group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1018,6 +1033,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1256,9 +1274,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1277,6 +1295,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1395,9 +1416,9 @@ pub mod remediations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1416,6 +1437,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1650,9 +1674,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1671,6 +1695,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1793,9 +1820,9 @@ pub mod remediations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1814,6 +1841,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2052,9 +2082,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2073,6 +2103,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2191,9 +2224,9 @@ pub mod remediations { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2212,6 +2245,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2726,9 +2762,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2747,6 +2783,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2867,9 +2906,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2888,6 +2927,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3010,9 +3052,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3031,6 +3073,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3156,9 +3201,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3177,6 +3222,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3297,9 +3345,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policySetDefinitions/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_set_definition_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3318,6 +3366,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3435,9 +3486,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyDefinitions/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_definition_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3456,6 +3507,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3573,9 +3627,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3594,6 +3648,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3712,9 +3769,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3733,6 +3790,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4259,9 +4319,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4280,6 +4340,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4485,9 +4548,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4506,6 +4569,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4711,9 +4777,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4732,6 +4798,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4942,9 +5011,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4963,6 +5032,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5265,9 +5337,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policySetDefinitions/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_set_definition_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5286,6 +5358,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5483,9 +5558,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyDefinitions/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_definition_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5504,6 +5579,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5701,9 +5779,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5722,6 +5800,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5920,9 +6001,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5941,6 +6022,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6222,9 +6306,9 @@ pub mod policy_metadata { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6243,6 +6327,9 @@ pub mod policy_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6583,9 +6670,9 @@ pub mod attestations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6604,6 +6691,9 @@ pub mod attestations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6838,9 +6928,9 @@ pub mod attestations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6859,6 +6949,9 @@ pub mod attestations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7097,9 +7190,9 @@ pub mod attestations { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7118,6 +7211,9 @@ pub mod attestations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/policyinsights/src/package_2021_10/models.rs b/services/mgmt/policyinsights/src/package_2021_10/models.rs index 6a27eeebe6..3f07cccd99 100644 --- a/services/mgmt/policyinsights/src/package_2021_10/models.rs +++ b/services/mgmt/policyinsights/src/package_2021_10/models.rs @@ -50,8 +50,8 @@ pub struct AttestationListResult { pub next_link: Option, } impl azure_core::Continuable for AttestationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AttestationListResult { @@ -318,7 +318,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -746,8 +746,8 @@ pub struct PolicyEventsQueryResults { pub value: Vec, } impl azure_core::Continuable for PolicyEventsQueryResults { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyEventsQueryResults { @@ -802,8 +802,8 @@ pub struct PolicyMetadataCollection { pub next_link: Option, } impl azure_core::Continuable for PolicyMetadataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyMetadataCollection { @@ -1004,8 +1004,8 @@ pub struct PolicyStatesQueryResults { pub value: Vec, } impl azure_core::Continuable for PolicyStatesQueryResults { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyStatesQueryResults { @@ -1048,8 +1048,8 @@ pub struct PolicyTrackedResourcesQueryResults { pub next_link: Option, } impl azure_core::Continuable for PolicyTrackedResourcesQueryResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyTrackedResourcesQueryResults { @@ -1065,7 +1065,7 @@ pub struct QueryFailure { pub error: Option, } impl azure_core::Continuable for QueryFailure { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1175,8 +1175,8 @@ pub struct RemediationDeploymentsListResult { pub next_link: Option, } impl azure_core::Continuable for RemediationDeploymentsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RemediationDeploymentsListResult { @@ -1207,8 +1207,8 @@ pub struct RemediationListResult { pub next_link: Option, } impl azure_core::Continuable for RemediationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RemediationListResult { diff --git a/services/mgmt/policyinsights/src/package_2021_10/operations.rs b/services/mgmt/policyinsights/src/package_2021_10/operations.rs index 4b1f3ddf28..89e198dbc1 100644 --- a/services/mgmt/policyinsights/src/package_2021_10/operations.rs +++ b/services/mgmt/policyinsights/src/package_2021_10/operations.rs @@ -193,9 +193,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -214,6 +214,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -286,9 +289,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -307,6 +310,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -375,9 +381,9 @@ pub mod policy_tracked_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.PolicyInsights/policyTrackedResources/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . policy_tracked_resources_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -396,6 +402,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -468,9 +477,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -489,6 +498,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -854,9 +866,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -875,6 +887,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -997,9 +1012,9 @@ pub mod remediations { &this.management_group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1018,6 +1033,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1256,9 +1274,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1277,6 +1295,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1395,9 +1416,9 @@ pub mod remediations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1416,6 +1437,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1650,9 +1674,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1671,6 +1695,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1793,9 +1820,9 @@ pub mod remediations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1814,6 +1841,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2052,9 +2082,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2073,6 +2103,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2191,9 +2224,9 @@ pub mod remediations { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2212,6 +2245,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2726,9 +2762,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2747,6 +2783,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2867,9 +2906,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2888,6 +2927,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3010,9 +3052,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3031,6 +3073,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3156,9 +3201,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3177,6 +3222,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3297,9 +3345,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policySetDefinitions/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_set_definition_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3318,6 +3366,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3435,9 +3486,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyDefinitions/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_definition_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3456,6 +3507,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3573,9 +3627,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3594,6 +3648,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3712,9 +3769,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3733,6 +3790,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4259,9 +4319,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4280,6 +4340,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4485,9 +4548,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4506,6 +4569,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4711,9 +4777,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4732,6 +4798,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4942,9 +5011,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4963,6 +5032,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5265,9 +5337,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policySetDefinitions/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_set_definition_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5286,6 +5358,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5483,9 +5558,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyDefinitions/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_definition_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5504,6 +5579,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5701,9 +5779,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5722,6 +5800,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5920,9 +6001,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5941,6 +6022,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6222,9 +6306,9 @@ pub mod policy_metadata { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6243,6 +6327,9 @@ pub mod policy_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6583,9 +6670,9 @@ pub mod attestations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6604,6 +6691,9 @@ pub mod attestations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6838,9 +6928,9 @@ pub mod attestations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6859,6 +6949,9 @@ pub mod attestations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7097,9 +7190,9 @@ pub mod attestations { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7118,6 +7211,9 @@ pub mod attestations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/policyinsights/src/package_2022_03/models.rs b/services/mgmt/policyinsights/src/package_2022_03/models.rs index ab7faa66a6..b657053fda 100644 --- a/services/mgmt/policyinsights/src/package_2022_03/models.rs +++ b/services/mgmt/policyinsights/src/package_2022_03/models.rs @@ -50,8 +50,8 @@ pub struct AttestationListResult { pub next_link: Option, } impl azure_core::Continuable for AttestationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AttestationListResult { @@ -333,7 +333,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -761,8 +761,8 @@ pub struct PolicyEventsQueryResults { pub value: Vec, } impl azure_core::Continuable for PolicyEventsQueryResults { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyEventsQueryResults { @@ -817,8 +817,8 @@ pub struct PolicyMetadataCollection { pub next_link: Option, } impl azure_core::Continuable for PolicyMetadataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyMetadataCollection { @@ -1019,8 +1019,8 @@ pub struct PolicyStatesQueryResults { pub value: Vec, } impl azure_core::Continuable for PolicyStatesQueryResults { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyStatesQueryResults { @@ -1063,8 +1063,8 @@ pub struct PolicyTrackedResourcesQueryResults { pub next_link: Option, } impl azure_core::Continuable for PolicyTrackedResourcesQueryResults { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyTrackedResourcesQueryResults { @@ -1080,7 +1080,7 @@ pub struct QueryFailure { pub error: Option, } impl azure_core::Continuable for QueryFailure { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1190,8 +1190,8 @@ pub struct RemediationDeploymentsListResult { pub next_link: Option, } impl azure_core::Continuable for RemediationDeploymentsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RemediationDeploymentsListResult { @@ -1222,8 +1222,8 @@ pub struct RemediationListResult { pub next_link: Option, } impl azure_core::Continuable for RemediationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RemediationListResult { diff --git a/services/mgmt/policyinsights/src/package_2022_03/operations.rs b/services/mgmt/policyinsights/src/package_2022_03/operations.rs index 8ab7015877..4e6d947b8e 100644 --- a/services/mgmt/policyinsights/src/package_2022_03/operations.rs +++ b/services/mgmt/policyinsights/src/package_2022_03/operations.rs @@ -193,9 +193,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -214,6 +214,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -286,9 +289,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -307,6 +310,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -375,9 +381,9 @@ pub mod policy_tracked_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.PolicyInsights/policyTrackedResources/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . policy_tracked_resources_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -396,6 +402,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -468,9 +477,9 @@ pub mod policy_tracked_resources { &this.policy_tracked_resources_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -489,6 +498,9 @@ pub mod policy_tracked_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -854,9 +866,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -875,6 +887,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -997,9 +1012,9 @@ pub mod remediations { &this.management_group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1018,6 +1033,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1256,9 +1274,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1277,6 +1295,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1395,9 +1416,9 @@ pub mod remediations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1416,6 +1437,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1650,9 +1674,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1671,6 +1695,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1793,9 +1820,9 @@ pub mod remediations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1814,6 +1841,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2052,9 +2082,9 @@ pub mod remediations { &this.remediation_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2073,6 +2103,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2191,9 +2224,9 @@ pub mod remediations { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2212,6 +2245,9 @@ pub mod remediations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2726,9 +2762,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2747,6 +2783,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2867,9 +2906,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2888,6 +2927,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3010,9 +3052,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3031,6 +3073,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3156,9 +3201,9 @@ pub mod policy_events { &this.policy_events_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3177,6 +3222,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3297,9 +3345,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policySetDefinitions/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_set_definition_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3318,6 +3366,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3435,9 +3486,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyDefinitions/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_definition_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3456,6 +3507,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3573,9 +3627,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3594,6 +3648,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3712,9 +3769,9 @@ pub mod policy_events { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyEvents/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_events_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3733,6 +3790,9 @@ pub mod policy_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4259,9 +4319,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4280,6 +4340,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4485,9 +4548,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4506,6 +4569,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4711,9 +4777,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4732,6 +4798,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4942,9 +5011,9 @@ pub mod policy_states { &this.policy_states_resource ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4963,6 +5032,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5265,9 +5337,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policySetDefinitions/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_set_definition_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5286,6 +5358,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5483,9 +5558,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyDefinitions/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_definition_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5504,6 +5579,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5701,9 +5779,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5722,6 +5800,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5920,9 +6001,9 @@ pub mod policy_states { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourcegroups/{}/providers/{}/policyAssignments/{}/providers/Microsoft.PolicyInsights/policyStates/{}/queryResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . authorization_namespace , & this . policy_assignment_name , & this . policy_states_resource)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5941,6 +6022,9 @@ pub mod policy_states { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6222,9 +6306,9 @@ pub mod policy_metadata { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6243,6 +6327,9 @@ pub mod policy_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6648,9 +6735,9 @@ pub mod attestations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6669,6 +6756,9 @@ pub mod attestations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6903,9 +6993,9 @@ pub mod attestations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6924,6 +7014,9 @@ pub mod attestations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7162,9 +7255,9 @@ pub mod attestations { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7183,6 +7276,9 @@ pub mod attestations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/portal/src/package_2015_08_01_preview/models.rs b/services/mgmt/portal/src/package_2015_08_01_preview/models.rs index b4f5d15494..48cedbb22a 100644 --- a/services/mgmt/portal/src/package_2015_08_01_preview/models.rs +++ b/services/mgmt/portal/src/package_2015_08_01_preview/models.rs @@ -68,8 +68,8 @@ pub struct DashboardListResult { pub next_link: Option, } impl azure_core::Continuable for DashboardListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DashboardListResult { @@ -171,7 +171,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -248,8 +248,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/portal/src/package_2015_08_01_preview/operations.rs b/services/mgmt/portal/src/package_2015_08_01_preview/operations.rs index 9b503cce68..abf01ddfe8 100644 --- a/services/mgmt/portal/src/package_2015_08_01_preview/operations.rs +++ b/services/mgmt/portal/src/package_2015_08_01_preview/operations.rs @@ -104,9 +104,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Portal/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -125,6 +125,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -481,9 +484,9 @@ pub mod dashboards { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -502,6 +505,9 @@ pub mod dashboards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -555,9 +561,9 @@ pub mod dashboards { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -576,6 +582,9 @@ pub mod dashboards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/portal/src/package_2018_10_01_preview/models.rs b/services/mgmt/portal/src/package_2018_10_01_preview/models.rs index b4f5d15494..48cedbb22a 100644 --- a/services/mgmt/portal/src/package_2018_10_01_preview/models.rs +++ b/services/mgmt/portal/src/package_2018_10_01_preview/models.rs @@ -68,8 +68,8 @@ pub struct DashboardListResult { pub next_link: Option, } impl azure_core::Continuable for DashboardListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DashboardListResult { @@ -171,7 +171,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -248,8 +248,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/portal/src/package_2018_10_01_preview/operations.rs b/services/mgmt/portal/src/package_2018_10_01_preview/operations.rs index 34217a0529..070708b6c3 100644 --- a/services/mgmt/portal/src/package_2018_10_01_preview/operations.rs +++ b/services/mgmt/portal/src/package_2018_10_01_preview/operations.rs @@ -104,9 +104,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Portal/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -125,6 +125,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -481,9 +484,9 @@ pub mod dashboards { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -502,6 +505,9 @@ pub mod dashboards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -555,9 +561,9 @@ pub mod dashboards { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -576,6 +582,9 @@ pub mod dashboards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/portal/src/package_2019_01_01_preview/models.rs b/services/mgmt/portal/src/package_2019_01_01_preview/models.rs index 48136c6079..ad857f2b56 100644 --- a/services/mgmt/portal/src/package_2019_01_01_preview/models.rs +++ b/services/mgmt/portal/src/package_2019_01_01_preview/models.rs @@ -109,8 +109,8 @@ pub struct DashboardListResult { pub next_link: Option, } impl azure_core::Continuable for DashboardListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DashboardListResult { @@ -212,7 +212,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -318,8 +318,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { diff --git a/services/mgmt/portal/src/package_2019_01_01_preview/operations.rs b/services/mgmt/portal/src/package_2019_01_01_preview/operations.rs index 0326b60b4e..64c847d534 100644 --- a/services/mgmt/portal/src/package_2019_01_01_preview/operations.rs +++ b/services/mgmt/portal/src/package_2019_01_01_preview/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Portal/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -484,9 +487,9 @@ pub mod dashboards { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -505,6 +508,9 @@ pub mod dashboards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -558,9 +564,9 @@ pub mod dashboards { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -579,6 +585,9 @@ pub mod dashboards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/portal/src/package_2020_09_01_preview/models.rs b/services/mgmt/portal/src/package_2020_09_01_preview/models.rs index a34048b884..a874b4d578 100644 --- a/services/mgmt/portal/src/package_2020_09_01_preview/models.rs +++ b/services/mgmt/portal/src/package_2020_09_01_preview/models.rs @@ -29,8 +29,8 @@ pub struct ConfigurationList { pub next_link: Option, } impl azure_core::Continuable for ConfigurationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationList { @@ -114,8 +114,8 @@ pub struct DashboardListResult { pub next_link: Option, } impl azure_core::Continuable for DashboardListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DashboardListResult { @@ -221,7 +221,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -405,8 +405,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { @@ -443,8 +443,8 @@ pub struct ViolationsList { pub next_link: Option, } impl azure_core::Continuable for ViolationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ViolationsList { diff --git a/services/mgmt/portal/src/package_2020_09_01_preview/operations.rs b/services/mgmt/portal/src/package_2020_09_01_preview/operations.rs index 481fb5a31c..386a6ec9c0 100644 --- a/services/mgmt/portal/src/package_2020_09_01_preview/operations.rs +++ b/services/mgmt/portal/src/package_2020_09_01_preview/operations.rs @@ -110,9 +110,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Portal/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -131,6 +131,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -487,9 +490,9 @@ pub mod dashboards { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -508,6 +511,9 @@ pub mod dashboards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -561,9 +567,9 @@ pub mod dashboards { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -582,6 +588,9 @@ pub mod dashboards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -665,9 +674,9 @@ pub mod tenant_configurations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -686,6 +695,9 @@ pub mod tenant_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -902,9 +914,9 @@ pub mod list_tenant_configuration_violations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -923,6 +935,9 @@ pub mod list_tenant_configuration_violations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/postgresql/src/package_2021_04_10_privatepreview/models.rs b/services/mgmt/postgresql/src/package_2021_04_10_privatepreview/models.rs index 8018f57300..14b93bf339 100644 --- a/services/mgmt/postgresql/src/package_2021_04_10_privatepreview/models.rs +++ b/services/mgmt/postgresql/src/package_2021_04_10_privatepreview/models.rs @@ -15,8 +15,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -46,7 +46,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -80,8 +80,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -185,8 +185,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -290,8 +290,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -643,8 +643,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { diff --git a/services/mgmt/postgresql/src/package_2021_04_10_privatepreview/operations.rs b/services/mgmt/postgresql/src/package_2021_04_10_privatepreview/operations.rs index c0c88e8c87..b1950d60e9 100644 --- a/services/mgmt/postgresql/src/package_2021_04_10_privatepreview/operations.rs +++ b/services/mgmt/postgresql/src/package_2021_04_10_privatepreview/operations.rs @@ -373,9 +373,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -394,6 +394,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -864,9 +867,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -885,6 +888,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -938,9 +944,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -959,6 +965,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1427,9 +1436,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1448,6 +1457,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1556,9 +1568,9 @@ pub mod configurations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1577,6 +1589,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1814,9 +1829,9 @@ pub mod location_based_capabilities { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1835,6 +1850,9 @@ pub mod location_based_capabilities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/models.rs b/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/models.rs index 5da3306b5b..c5414706ea 100644 --- a/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/models.rs +++ b/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/models.rs @@ -108,8 +108,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -153,7 +153,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -190,8 +190,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -373,8 +373,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -759,8 +759,8 @@ pub struct MigrationResourceListResult { pub next_link: Option, } impl azure_core::Continuable for MigrationResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationResourceListResult { @@ -1376,8 +1376,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { @@ -1721,7 +1721,7 @@ pub struct ServiceError { pub error: Option, } impl azure_core::Continuable for ServiceError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/operations.rs b/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/operations.rs index a2368c4549..2af9a02f6b 100644 --- a/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/operations.rs +++ b/services/mgmt/postgresql/src/package_2021_06_15_privatepreview/operations.rs @@ -440,9 +440,9 @@ pub mod migrations { &this.target_db_server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -461,6 +461,9 @@ pub mod migrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -940,9 +943,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -961,6 +964,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1014,9 +1020,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1035,6 +1041,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1512,9 +1521,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1533,6 +1542,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1658,9 +1670,9 @@ pub mod configurations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1679,6 +1691,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1971,9 +1986,9 @@ pub mod location_based_capabilities { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1992,6 +2007,9 @@ pub mod location_based_capabilities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2021_06/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2021_06/models.rs index 9418bbc531..82065e7d9b 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2021_06/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2021_06/models.rs @@ -78,8 +78,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -126,7 +126,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -163,8 +163,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -286,8 +286,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -395,8 +395,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -999,8 +999,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2021_06/operations.rs b/services/mgmt/postgresql/src/package_flexibleserver_2021_06/operations.rs index aaf11b7f2e..9882757668 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2021_06/operations.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2021_06/operations.rs @@ -475,9 +475,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -496,6 +496,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -549,9 +552,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -570,6 +573,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1047,9 +1053,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1068,6 +1074,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1193,9 +1202,9 @@ pub mod configurations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1214,6 +1223,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1506,9 +1518,9 @@ pub mod location_based_capabilities { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1527,6 +1539,9 @@ pub mod location_based_capabilities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1956,9 +1971,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1977,6 +1992,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/models.rs index 15f7c5cfea..ef31e1afa1 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/models.rs @@ -37,8 +37,8 @@ pub struct AdvisorsResultList { pub next_link: Option, } impl azure_core::Continuable for AdvisorsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AdvisorsResultList { @@ -120,8 +120,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -165,7 +165,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -202,8 +202,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -325,8 +325,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -434,8 +434,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -1053,8 +1053,8 @@ pub struct QueryTextsResultList { pub next_link: Option, } impl azure_core::Continuable for QueryTextsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QueryTextsResultList { @@ -1120,8 +1120,8 @@ pub struct RecommendationActionsResultList { pub next_link: Option, } impl azure_core::Continuable for RecommendationActionsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecommendationActionsResultList { @@ -1262,8 +1262,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { @@ -1709,8 +1709,8 @@ pub struct TopQueryStatisticsResultList { pub next_link: Option, } impl azure_core::Continuable for TopQueryStatisticsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopQueryStatisticsResultList { @@ -1879,8 +1879,8 @@ pub struct WaitStatisticsResultList { pub next_link: Option, } impl azure_core::Continuable for WaitStatisticsResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WaitStatisticsResultList { diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/operations.rs b/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/operations.rs index 8509ad97f8..646edd815a 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/operations.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2021_06_preview/operations.rs @@ -493,9 +493,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -514,6 +514,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -567,9 +570,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -588,6 +591,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1065,9 +1071,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1086,6 +1092,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1211,9 +1220,9 @@ pub mod configurations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1232,6 +1241,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1524,9 +1536,9 @@ pub mod location_based_capabilities { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1545,6 +1557,9 @@ pub mod location_based_capabilities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1974,9 +1989,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1995,6 +2010,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2203,9 +2221,9 @@ pub mod advisors { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2224,6 +2242,9 @@ pub mod advisors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2303,9 +2324,9 @@ pub mod recommended_actions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{}/advisors/{}/recommendedActions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . advisor_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2324,6 +2345,9 @@ pub mod recommended_actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2541,9 +2565,9 @@ pub mod query_texts { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2562,6 +2586,9 @@ pub mod query_texts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2636,9 +2663,9 @@ pub mod top_query_statistics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{}/topQueryStatistics" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2657,6 +2684,9 @@ pub mod top_query_statistics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2736,9 +2766,9 @@ pub mod wait_statistics { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2757,6 +2787,9 @@ pub mod wait_statistics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs index 563d5ef0fd..6eaef0d0f9 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs @@ -78,8 +78,8 @@ pub struct CapabilitiesListResult { pub next_link: Option, } impl azure_core::Continuable for CapabilitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CapabilitiesListResult { @@ -126,7 +126,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -163,8 +163,8 @@ pub struct ConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConfigurationListResult { @@ -286,8 +286,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -395,8 +395,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -998,8 +998,8 @@ pub struct ServerBackupListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBackupListResult { @@ -1056,8 +1056,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/operations.rs b/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/operations.rs index 94021c51f7..9b4c00207f 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/operations.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/operations.rs @@ -373,9 +373,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -394,6 +394,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -858,9 +861,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -879,6 +882,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -932,9 +938,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -953,6 +959,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1275,9 +1284,9 @@ pub mod backup_list_by_server { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1296,6 +1305,9 @@ pub mod backup_list_by_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1598,9 +1610,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1619,6 +1631,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1744,9 +1759,9 @@ pub mod configurations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1765,6 +1780,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2057,9 +2075,9 @@ pub mod location_based_capabilities { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2078,6 +2096,9 @@ pub mod location_based_capabilities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs b/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs index 5280af3964..b78ca1f077 100644 --- a/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs +++ b/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs @@ -66,7 +66,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -124,7 +124,7 @@ pub struct FirewallRuleListResult { pub value: Vec, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -317,7 +317,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -419,7 +419,7 @@ pub struct RoleListResult { pub value: Vec, } impl azure_core::Continuable for RoleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -467,8 +467,8 @@ pub struct ServerConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ServerConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerConfigurationListResult { @@ -602,8 +602,8 @@ pub struct ServerGroupConfigurationListResult { pub next_link: Option, } impl azure_core::Continuable for ServerGroupConfigurationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerGroupConfigurationListResult { @@ -710,8 +710,8 @@ pub struct ServerGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ServerGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerGroupListResult { @@ -967,7 +967,7 @@ pub struct ServerGroupServerListResult { pub value: Vec, } impl azure_core::Continuable for ServerGroupServerListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/operations.rs b/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/operations.rs index b15b9b1169..2bda1570d5 100644 --- a/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/operations.rs +++ b/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/operations.rs @@ -240,9 +240,9 @@ pub mod server_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -261,6 +261,9 @@ pub mod server_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -316,9 +319,9 @@ pub mod server_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -337,6 +340,9 @@ pub mod server_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1045,9 +1051,9 @@ pub mod configurations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{}/servers/{}/configurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_group_name , & this . server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1066,6 +1072,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1123,9 +1132,9 @@ pub mod configurations { &this.server_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1144,6 +1153,9 @@ pub mod configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/powerbidedicated/src/package_2017_10_01/models.rs b/services/mgmt/powerbidedicated/src/package_2017_10_01/models.rs index e0c68b5c2d..dd00347aab 100644 --- a/services/mgmt/powerbidedicated/src/package_2017_10_01/models.rs +++ b/services/mgmt/powerbidedicated/src/package_2017_10_01/models.rs @@ -44,7 +44,7 @@ pub struct DedicatedCapacities { pub value: Vec, } impl azure_core::Continuable for DedicatedCapacities { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -263,7 +263,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -406,8 +406,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/powerbidedicated/src/package_2017_10_01/operations.rs b/services/mgmt/powerbidedicated/src/package_2017_10_01/operations.rs index 4bce4155ae..29f2c541aa 100644 --- a/services/mgmt/powerbidedicated/src/package_2017_10_01/operations.rs +++ b/services/mgmt/powerbidedicated/src/package_2017_10_01/operations.rs @@ -841,9 +841,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -862,6 +862,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/powerbidedicated/src/package_2021_01_01/models.rs b/services/mgmt/powerbidedicated/src/package_2021_01_01/models.rs index d690a0f9db..ff0c9774d3 100644 --- a/services/mgmt/powerbidedicated/src/package_2021_01_01/models.rs +++ b/services/mgmt/powerbidedicated/src/package_2021_01_01/models.rs @@ -31,7 +31,7 @@ pub struct AutoScaleVCoreListResult { pub value: Vec, } impl azure_core::Continuable for AutoScaleVCoreListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -288,7 +288,7 @@ pub struct DedicatedCapacities { pub value: Vec, } impl azure_core::Continuable for DedicatedCapacities { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -550,7 +550,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -734,8 +734,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/powerbidedicated/src/package_2021_01_01/operations.rs b/services/mgmt/powerbidedicated/src/package_2021_01_01/operations.rs index 7baee85ed9..835dc9088c 100644 --- a/services/mgmt/powerbidedicated/src/package_2021_01_01/operations.rs +++ b/services/mgmt/powerbidedicated/src/package_2021_01_01/operations.rs @@ -844,9 +844,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -865,6 +865,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/powerbiembedded/src/package_2016_01/models.rs b/services/mgmt/powerbiembedded/src/package_2016_01/models.rs index 0b1a93da1c..bb066512f8 100644 --- a/services/mgmt/powerbiembedded/src/package_2016_01/models.rs +++ b/services/mgmt/powerbiembedded/src/package_2016_01/models.rs @@ -210,7 +210,7 @@ pub struct Error { pub details: Vec, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -370,7 +370,7 @@ pub struct WorkspaceCollectionList { pub value: Vec, } impl azure_core::Continuable for WorkspaceCollectionList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -385,7 +385,7 @@ pub struct WorkspaceList { pub value: Vec, } impl azure_core::Continuable for WorkspaceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/models.rs b/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/models.rs index 7bb3115cac..2348950b4a 100644 --- a/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/models.rs +++ b/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/models.rs @@ -144,7 +144,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -312,8 +312,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -365,8 +365,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -511,8 +511,8 @@ pub struct PrivateLinkResourcesListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourcesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourcesListResult { diff --git a/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/operations.rs b/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/operations.rs index 8d7792918a..f855089125 100644 --- a/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/operations.rs +++ b/services/mgmt/powerbiprivatelinks/src/package_2020_06_01/operations.rs @@ -119,9 +119,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.PowerBI/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -140,6 +140,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -738,9 +741,9 @@ pub mod private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{}/privateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . azure_resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -759,6 +762,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -927,9 +933,9 @@ pub mod private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . azure_resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -948,6 +954,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs b/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs index 17c51a3771..5f058e082d 100644 --- a/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs +++ b/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs @@ -36,8 +36,8 @@ pub struct AccountList { pub next_link: Option, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -164,8 +164,8 @@ pub struct EnterprisePolicyList { pub next_link: Option, } impl azure_core::Continuable for EnterprisePolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EnterprisePolicyList { @@ -220,7 +220,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -380,8 +380,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -483,7 +483,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -616,7 +616,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/powerplatform/src/package_2020_10_30_preview/operations.rs b/services/mgmt/powerplatform/src/package_2020_10_30_preview/operations.rs index 222eca01e4..b641456ea7 100644 --- a/services/mgmt/powerplatform/src/package_2020_10_30_preview/operations.rs +++ b/services/mgmt/powerplatform/src/package_2020_10_30_preview/operations.rs @@ -411,9 +411,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -432,6 +432,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -485,9 +488,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -506,6 +509,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -862,9 +868,9 @@ pub mod enterprise_policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -883,6 +889,9 @@ pub mod enterprise_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -936,9 +945,9 @@ pub mod enterprise_policies { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -957,6 +966,9 @@ pub mod enterprise_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1015,9 +1027,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.PowerPlatform/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1036,6 +1048,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/privatedns/src/package_2018_09/models.rs b/services/mgmt/privatedns/src/package_2018_09/models.rs index dcbfdd8caa..40b5404d8d 100644 --- a/services/mgmt/privatedns/src/package_2018_09/models.rs +++ b/services/mgmt/privatedns/src/package_2018_09/models.rs @@ -36,7 +36,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -121,8 +121,8 @@ pub struct PrivateZoneListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateZoneListResult { @@ -276,8 +276,8 @@ pub struct RecordSetListResult { pub next_link: Option, } impl azure_core::Continuable for RecordSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecordSetListResult { @@ -468,8 +468,8 @@ pub struct VirtualNetworkLinkListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkLinkListResult { diff --git a/services/mgmt/privatedns/src/package_2018_09/operations.rs b/services/mgmt/privatedns/src/package_2018_09/operations.rs index bc012ddff4..f69b684742 100644 --- a/services/mgmt/privatedns/src/package_2018_09/operations.rs +++ b/services/mgmt/privatedns/src/package_2018_09/operations.rs @@ -458,9 +458,9 @@ pub mod private_zones { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -479,6 +479,9 @@ pub mod private_zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -542,9 +545,9 @@ pub mod private_zones { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -563,6 +566,9 @@ pub mod private_zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -990,9 +996,9 @@ pub mod virtual_network_links { &this.private_zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1011,6 +1017,9 @@ pub mod virtual_network_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1467,9 +1476,9 @@ pub mod record_sets { &this.record_type ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1488,6 +1497,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1563,9 +1575,9 @@ pub mod record_sets { &this.private_zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1584,6 +1596,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/privatedns/src/package_2020_01/models.rs b/services/mgmt/privatedns/src/package_2020_01/models.rs index 97d12cbcd5..4fbecbdb0a 100644 --- a/services/mgmt/privatedns/src/package_2020_01/models.rs +++ b/services/mgmt/privatedns/src/package_2020_01/models.rs @@ -36,7 +36,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -121,8 +121,8 @@ pub struct PrivateZoneListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateZoneListResult { @@ -279,8 +279,8 @@ pub struct RecordSetListResult { pub next_link: Option, } impl azure_core::Continuable for RecordSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecordSetListResult { @@ -471,8 +471,8 @@ pub struct VirtualNetworkLinkListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkLinkListResult { diff --git a/services/mgmt/privatedns/src/package_2020_01/operations.rs b/services/mgmt/privatedns/src/package_2020_01/operations.rs index e5d54436b5..799a6f0d57 100644 --- a/services/mgmt/privatedns/src/package_2020_01/operations.rs +++ b/services/mgmt/privatedns/src/package_2020_01/operations.rs @@ -458,9 +458,9 @@ pub mod private_zones { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -479,6 +479,9 @@ pub mod private_zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -542,9 +545,9 @@ pub mod private_zones { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -563,6 +566,9 @@ pub mod private_zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -990,9 +996,9 @@ pub mod virtual_network_links { &this.private_zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1011,6 +1017,9 @@ pub mod virtual_network_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1467,9 +1476,9 @@ pub mod record_sets { &this.record_type ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1488,6 +1497,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1563,9 +1575,9 @@ pub mod record_sets { &this.private_zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1584,6 +1596,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/privatedns/src/package_2020_06/models.rs b/services/mgmt/privatedns/src/package_2020_06/models.rs index 97d12cbcd5..4fbecbdb0a 100644 --- a/services/mgmt/privatedns/src/package_2020_06/models.rs +++ b/services/mgmt/privatedns/src/package_2020_06/models.rs @@ -36,7 +36,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -121,8 +121,8 @@ pub struct PrivateZoneListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateZoneListResult { @@ -279,8 +279,8 @@ pub struct RecordSetListResult { pub next_link: Option, } impl azure_core::Continuable for RecordSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecordSetListResult { @@ -471,8 +471,8 @@ pub struct VirtualNetworkLinkListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkLinkListResult { diff --git a/services/mgmt/privatedns/src/package_2020_06/operations.rs b/services/mgmt/privatedns/src/package_2020_06/operations.rs index 23090c4b9e..d516449dcd 100644 --- a/services/mgmt/privatedns/src/package_2020_06/operations.rs +++ b/services/mgmt/privatedns/src/package_2020_06/operations.rs @@ -458,9 +458,9 @@ pub mod private_zones { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -479,6 +479,9 @@ pub mod private_zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -542,9 +545,9 @@ pub mod private_zones { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -563,6 +566,9 @@ pub mod private_zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -990,9 +996,9 @@ pub mod virtual_network_links { &this.private_zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1011,6 +1017,9 @@ pub mod virtual_network_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1467,9 +1476,9 @@ pub mod record_sets { &this.record_type ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1488,6 +1497,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1563,9 +1575,9 @@ pub mod record_sets { &this.private_zone_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1584,6 +1596,9 @@ pub mod record_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/providerhub/src/package_2020_11_20/models.rs b/services/mgmt/providerhub/src/package_2020_11_20/models.rs index 11d640a60b..02abf02a52 100644 --- a/services/mgmt/providerhub/src/package_2020_11_20/models.rs +++ b/services/mgmt/providerhub/src/package_2020_11_20/models.rs @@ -102,8 +102,8 @@ pub struct CustomRolloutArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for CustomRolloutArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomRolloutArrayResponseWithContinuation { @@ -241,8 +241,8 @@ pub struct DefaultRolloutArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for DefaultRolloutArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DefaultRolloutArrayResponseWithContinuation { @@ -488,7 +488,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -990,8 +990,8 @@ pub struct NotificationRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for NotificationRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationRegistrationArrayResponseWithContinuation { @@ -1217,8 +1217,8 @@ pub struct OperationsDefinitionArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for OperationsDefinitionArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsDefinitionArrayResponseWithContinuation { @@ -1287,8 +1287,8 @@ pub struct ProviderRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for ProviderRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderRegistrationArrayResponseWithContinuation { @@ -2057,8 +2057,8 @@ pub struct ResourceTypeRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for ResourceTypeRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceTypeRegistrationArrayResponseWithContinuation { @@ -2574,8 +2574,8 @@ pub struct SkuResourceArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for SkuResourceArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuResourceArrayResponseWithContinuation { diff --git a/services/mgmt/providerhub/src/package_2020_11_20/operations.rs b/services/mgmt/providerhub/src/package_2020_11_20/operations.rs index 1987920d69..481c0f9cbd 100644 --- a/services/mgmt/providerhub/src/package_2020_11_20/operations.rs +++ b/services/mgmt/providerhub/src/package_2020_11_20/operations.rs @@ -267,9 +267,9 @@ pub mod custom_rollouts { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -288,6 +288,9 @@ pub mod custom_rollouts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -583,9 +586,9 @@ pub mod default_rollouts { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -604,6 +607,9 @@ pub mod default_rollouts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1054,9 +1060,9 @@ pub mod notification_registrations { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1075,6 +1081,9 @@ pub mod notification_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1165,9 +1174,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ProviderHub/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1179,6 +1188,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1592,9 +1604,9 @@ pub mod provider_registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1613,6 +1625,9 @@ pub mod provider_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1947,9 +1962,9 @@ pub mod resource_type_registrations { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1968,6 +1983,9 @@ pub mod resource_type_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2908,9 +2926,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2929,6 +2947,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2981,9 +3002,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3002,6 +3023,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3055,9 +3079,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first , & this . nested_resource_type_second)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3076,6 +3100,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3130,9 +3157,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first , & this . nested_resource_type_second , & this . nested_resource_type_third)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3151,6 +3178,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs b/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs index bca7611457..7352ce617f 100644 --- a/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs +++ b/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs @@ -102,8 +102,8 @@ pub struct CustomRolloutArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for CustomRolloutArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomRolloutArrayResponseWithContinuation { @@ -180,8 +180,8 @@ pub struct DefaultRolloutArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for DefaultRolloutArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DefaultRolloutArrayResponseWithContinuation { @@ -368,7 +368,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -882,8 +882,8 @@ pub struct NotificationRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for NotificationRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationRegistrationArrayResponseWithContinuation { @@ -1051,8 +1051,8 @@ pub struct OperationsDefinitionArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for OperationsDefinitionArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsDefinitionArrayResponseWithContinuation { @@ -1121,8 +1121,8 @@ pub struct ProviderRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for ProviderRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderRegistrationArrayResponseWithContinuation { @@ -1941,8 +1941,8 @@ pub struct ResourceTypeRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for ResourceTypeRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceTypeRegistrationArrayResponseWithContinuation { @@ -2345,8 +2345,8 @@ pub struct SkuResourceArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for SkuResourceArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuResourceArrayResponseWithContinuation { diff --git a/services/mgmt/providerhub/src/package_2021_05_01_preview/operations.rs b/services/mgmt/providerhub/src/package_2021_05_01_preview/operations.rs index c496ef58ba..ae70b0c005 100644 --- a/services/mgmt/providerhub/src/package_2021_05_01_preview/operations.rs +++ b/services/mgmt/providerhub/src/package_2021_05_01_preview/operations.rs @@ -267,9 +267,9 @@ pub mod custom_rollouts { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -288,6 +288,9 @@ pub mod custom_rollouts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -583,9 +586,9 @@ pub mod default_rollouts { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -604,6 +607,9 @@ pub mod default_rollouts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1054,9 +1060,9 @@ pub mod notification_registrations { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1075,6 +1081,9 @@ pub mod notification_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1165,9 +1174,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ProviderHub/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1179,6 +1188,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1592,9 +1604,9 @@ pub mod provider_registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1613,6 +1625,9 @@ pub mod provider_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1947,9 +1962,9 @@ pub mod resource_type_registrations { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1968,6 +1983,9 @@ pub mod resource_type_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2908,9 +2926,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2929,6 +2947,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2981,9 +3002,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3002,6 +3023,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3055,9 +3079,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first , & this . nested_resource_type_second)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3076,6 +3100,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3130,9 +3157,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first , & this . nested_resource_type_second , & this . nested_resource_type_third)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3151,6 +3178,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs b/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs index 7d12ce8577..3199e24b59 100644 --- a/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs +++ b/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs @@ -106,8 +106,8 @@ pub struct CustomRolloutArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for CustomRolloutArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomRolloutArrayResponseWithContinuation { @@ -187,8 +187,8 @@ pub struct DefaultRolloutArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for DefaultRolloutArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DefaultRolloutArrayResponseWithContinuation { @@ -375,7 +375,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1014,8 +1014,8 @@ pub struct NotificationRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for NotificationRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationRegistrationArrayResponseWithContinuation { @@ -1215,8 +1215,8 @@ pub struct OperationsDefinitionArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for OperationsDefinitionArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsDefinitionArrayResponseWithContinuation { @@ -1291,8 +1291,8 @@ pub struct ProviderRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for ProviderRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderRegistrationArrayResponseWithContinuation { @@ -2248,8 +2248,8 @@ pub struct ResourceTypeRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for ResourceTypeRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceTypeRegistrationArrayResponseWithContinuation { @@ -2657,8 +2657,8 @@ pub struct SkuResourceArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for SkuResourceArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuResourceArrayResponseWithContinuation { diff --git a/services/mgmt/providerhub/src/package_2021_06_01_preview/operations.rs b/services/mgmt/providerhub/src/package_2021_06_01_preview/operations.rs index d3255a55de..f3c8fef70b 100644 --- a/services/mgmt/providerhub/src/package_2021_06_01_preview/operations.rs +++ b/services/mgmt/providerhub/src/package_2021_06_01_preview/operations.rs @@ -270,9 +270,9 @@ pub mod custom_rollouts { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -291,6 +291,9 @@ pub mod custom_rollouts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -586,9 +589,9 @@ pub mod default_rollouts { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -607,6 +610,9 @@ pub mod default_rollouts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1057,9 +1063,9 @@ pub mod notification_registrations { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1078,6 +1084,9 @@ pub mod notification_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1168,9 +1177,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ProviderHub/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1182,6 +1191,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1595,9 +1607,9 @@ pub mod provider_registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1616,6 +1628,9 @@ pub mod provider_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1950,9 +1965,9 @@ pub mod resource_type_registrations { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1971,6 +1986,9 @@ pub mod resource_type_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2911,9 +2929,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2932,6 +2950,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2984,9 +3005,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3005,6 +3026,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3058,9 +3082,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first , & this . nested_resource_type_second)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3079,6 +3103,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3133,9 +3160,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first , & this . nested_resource_type_second , & this . nested_resource_type_third)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3154,6 +3181,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs b/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs index 3958017001..4cf5b0c0d1 100644 --- a/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs @@ -106,8 +106,8 @@ pub struct CustomRolloutArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for CustomRolloutArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomRolloutArrayResponseWithContinuation { @@ -187,8 +187,8 @@ pub struct DefaultRolloutArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for DefaultRolloutArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DefaultRolloutArrayResponseWithContinuation { @@ -375,7 +375,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1014,8 +1014,8 @@ pub struct NotificationRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for NotificationRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationRegistrationArrayResponseWithContinuation { @@ -1215,8 +1215,8 @@ pub struct OperationsDefinitionArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for OperationsDefinitionArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsDefinitionArrayResponseWithContinuation { @@ -1291,8 +1291,8 @@ pub struct ProviderRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for ProviderRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderRegistrationArrayResponseWithContinuation { @@ -2248,8 +2248,8 @@ pub struct ResourceTypeRegistrationArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for ResourceTypeRegistrationArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceTypeRegistrationArrayResponseWithContinuation { @@ -2714,8 +2714,8 @@ pub struct SkuResourceArrayResponseWithContinuation { pub next_link: Option, } impl azure_core::Continuable for SkuResourceArrayResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuResourceArrayResponseWithContinuation { diff --git a/services/mgmt/providerhub/src/package_2021_09_01_preview/operations.rs b/services/mgmt/providerhub/src/package_2021_09_01_preview/operations.rs index 2700527419..9c3eed6711 100644 --- a/services/mgmt/providerhub/src/package_2021_09_01_preview/operations.rs +++ b/services/mgmt/providerhub/src/package_2021_09_01_preview/operations.rs @@ -270,9 +270,9 @@ pub mod custom_rollouts { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -291,6 +291,9 @@ pub mod custom_rollouts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -586,9 +589,9 @@ pub mod default_rollouts { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -607,6 +610,9 @@ pub mod default_rollouts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1057,9 +1063,9 @@ pub mod notification_registrations { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1078,6 +1084,9 @@ pub mod notification_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1168,9 +1177,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ProviderHub/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1182,6 +1191,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1595,9 +1607,9 @@ pub mod provider_registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1616,6 +1628,9 @@ pub mod provider_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1950,9 +1965,9 @@ pub mod resource_type_registrations { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1971,6 +1986,9 @@ pub mod resource_type_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2911,9 +2929,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2932,6 +2950,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2984,9 +3005,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3005,6 +3026,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3058,9 +3082,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first , & this . nested_resource_type_second)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3079,6 +3103,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3133,9 +3160,9 @@ pub mod skus { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.ProviderHub/providerRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/resourcetypeRegistrations/{}/skus" , this . client . endpoint () , & this . subscription_id , & this . provider_namespace , & this . resource_type , & this . nested_resource_type_first , & this . nested_resource_type_second , & this . nested_resource_type_third)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3154,6 +3181,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/purview/src/package_2020_12_01_preview/models.rs b/services/mgmt/purview/src/package_2020_12_01_preview/models.rs index 267f1f072a..81cd27ba14 100644 --- a/services/mgmt/purview/src/package_2020_12_01_preview/models.rs +++ b/services/mgmt/purview/src/package_2020_12_01_preview/models.rs @@ -67,8 +67,8 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -488,7 +488,7 @@ pub struct ErrorResponseModel { pub error: Option, } impl azure_core::Continuable for ErrorResponseModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -629,8 +629,8 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -771,8 +771,8 @@ pub struct PrivateEndpointConnectionList { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -836,8 +836,8 @@ pub struct PrivateLinkResourceList { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { diff --git a/services/mgmt/purview/src/package_2020_12_01_preview/operations.rs b/services/mgmt/purview/src/package_2020_12_01_preview/operations.rs index 384272a098..07eda6e8b4 100644 --- a/services/mgmt/purview/src/package_2020_12_01_preview/operations.rs +++ b/services/mgmt/purview/src/package_2020_12_01_preview/operations.rs @@ -228,9 +228,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -249,6 +249,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -310,9 +313,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -331,6 +334,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -929,9 +935,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Purview/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -950,6 +956,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1083,9 +1092,9 @@ pub mod private_endpoint_connections { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1104,6 +1113,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1378,9 +1390,9 @@ pub mod private_link_resources { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1399,6 +1411,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/purview/src/package_2021_07_01/models.rs b/services/mgmt/purview/src/package_2021_07_01/models.rs index 27ae6485c9..d19de0cc35 100644 --- a/services/mgmt/purview/src/package_2021_07_01/models.rs +++ b/services/mgmt/purview/src/package_2021_07_01/models.rs @@ -67,8 +67,8 @@ pub struct AccountList { pub value: Vec, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -502,7 +502,7 @@ pub struct ErrorResponseModel { pub error: Option, } impl azure_core::Continuable for ErrorResponseModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -650,8 +650,8 @@ pub struct OperationList { pub value: Vec, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -792,8 +792,8 @@ pub struct PrivateEndpointConnectionList { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -857,8 +857,8 @@ pub struct PrivateLinkResourceList { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { diff --git a/services/mgmt/purview/src/package_2021_07_01/operations.rs b/services/mgmt/purview/src/package_2021_07_01/operations.rs index ab18a3065a..7e4a18efd4 100644 --- a/services/mgmt/purview/src/package_2021_07_01/operations.rs +++ b/services/mgmt/purview/src/package_2021_07_01/operations.rs @@ -244,9 +244,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -265,6 +265,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -326,9 +329,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -347,6 +350,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -995,9 +1001,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Purview/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1016,6 +1022,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1149,9 +1158,9 @@ pub mod private_endpoint_connections { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1170,6 +1179,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1444,9 +1456,9 @@ pub mod private_link_resources { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1465,6 +1477,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/quantum/src/package_2019_11_04_preview/models.rs b/services/mgmt/quantum/src/package_2019_11_04_preview/models.rs index 0a0d668ac9..4db5619721 100644 --- a/services/mgmt/quantum/src/package_2019_11_04_preview/models.rs +++ b/services/mgmt/quantum/src/package_2019_11_04_preview/models.rs @@ -84,7 +84,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -104,8 +104,8 @@ pub struct OfferingsListResult { pub next_link: Option, } impl azure_core::Continuable for OfferingsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OfferingsListResult { @@ -545,8 +545,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { @@ -717,8 +717,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { diff --git a/services/mgmt/quantum/src/package_2019_11_04_preview/operations.rs b/services/mgmt/quantum/src/package_2019_11_04_preview/operations.rs index f051db561c..0a416ce3d5 100644 --- a/services/mgmt/quantum/src/package_2019_11_04_preview/operations.rs +++ b/services/mgmt/quantum/src/package_2019_11_04_preview/operations.rs @@ -410,9 +410,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -431,6 +431,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -486,9 +489,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -507,6 +510,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -575,9 +581,9 @@ pub mod offerings { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -596,6 +602,9 @@ pub mod offerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -654,9 +663,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Quantum/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -675,6 +684,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/quantum/src/package_2022_01_10_preview/models.rs b/services/mgmt/quantum/src/package_2022_01_10_preview/models.rs index 9ef73d2921..fee79c564b 100644 --- a/services/mgmt/quantum/src/package_2022_01_10_preview/models.rs +++ b/services/mgmt/quantum/src/package_2022_01_10_preview/models.rs @@ -84,7 +84,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -104,8 +104,8 @@ pub struct OfferingsListResult { pub next_link: Option, } impl azure_core::Continuable for OfferingsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OfferingsListResult { @@ -548,8 +548,8 @@ pub struct WorkspaceListResult { pub next_link: Option, } impl azure_core::Continuable for WorkspaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceListResult { @@ -720,8 +720,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { diff --git a/services/mgmt/quantum/src/package_2022_01_10_preview/operations.rs b/services/mgmt/quantum/src/package_2022_01_10_preview/operations.rs index cfbcf0c9c7..3e428065ae 100644 --- a/services/mgmt/quantum/src/package_2022_01_10_preview/operations.rs +++ b/services/mgmt/quantum/src/package_2022_01_10_preview/operations.rs @@ -410,9 +410,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -431,6 +431,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -486,9 +489,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -507,6 +510,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -575,9 +581,9 @@ pub mod offerings { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -596,6 +602,9 @@ pub mod offerings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -654,9 +663,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Quantum/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -675,6 +684,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/quota/src/package_2021_03_15/models.rs b/services/mgmt/quota/src/package_2021_03_15/models.rs index be4b5ae491..8259fcc519 100644 --- a/services/mgmt/quota/src/package_2021_03_15/models.rs +++ b/services/mgmt/quota/src/package_2021_03_15/models.rs @@ -63,7 +63,7 @@ pub struct ExceptionResponse { pub error: Option, } impl azure_core::Continuable for ExceptionResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -101,8 +101,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -135,8 +135,8 @@ pub struct QuotaLimits { pub next_link: Option, } impl azure_core::Continuable for QuotaLimits { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaLimits { @@ -224,8 +224,8 @@ pub struct QuotaRequestDetailsList { pub next_link: Option, } impl azure_core::Continuable for QuotaRequestDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaRequestDetailsList { diff --git a/services/mgmt/quota/src/package_2021_03_15/operations.rs b/services/mgmt/quota/src/package_2021_03_15/operations.rs index 0953ce6375..77c69795fc 100644 --- a/services/mgmt/quota/src/package_2021_03_15/operations.rs +++ b/services/mgmt/quota/src/package_2021_03_15/operations.rs @@ -324,9 +324,9 @@ pub mod quota { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -345,6 +345,9 @@ pub mod quota { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -485,9 +488,9 @@ pub mod quota_request_status { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -506,6 +509,9 @@ pub mod quota_request_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -626,9 +632,9 @@ pub mod operation { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Quota/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -647,6 +653,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/quota/src/package_2021_03_15_preview/models.rs b/services/mgmt/quota/src/package_2021_03_15_preview/models.rs index 424a12cf7b..13eb20798e 100644 --- a/services/mgmt/quota/src/package_2021_03_15_preview/models.rs +++ b/services/mgmt/quota/src/package_2021_03_15_preview/models.rs @@ -84,7 +84,7 @@ pub struct ExceptionResponse { pub error: Option, } impl azure_core::Continuable for ExceptionResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -226,8 +226,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -260,8 +260,8 @@ pub struct QuotaLimits { pub next_link: Option, } impl azure_core::Continuable for QuotaLimits { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaLimits { @@ -346,8 +346,8 @@ pub struct QuotaRequestDetailsList { pub next_link: Option, } impl azure_core::Continuable for QuotaRequestDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaRequestDetailsList { @@ -608,8 +608,8 @@ pub struct UsagesLimits { pub next_link: Option, } impl azure_core::Continuable for UsagesLimits { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsagesLimits { diff --git a/services/mgmt/quota/src/package_2021_03_15_preview/operations.rs b/services/mgmt/quota/src/package_2021_03_15_preview/operations.rs index 6dd4f74c10..08e3ab0679 100644 --- a/services/mgmt/quota/src/package_2021_03_15_preview/operations.rs +++ b/services/mgmt/quota/src/package_2021_03_15_preview/operations.rs @@ -174,9 +174,9 @@ pub mod usages { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -195,6 +195,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -459,9 +462,9 @@ pub mod quota { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -480,6 +483,9 @@ pub mod quota { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -620,9 +626,9 @@ pub mod quota_request_status { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -641,6 +647,9 @@ pub mod quota_request_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -708,9 +717,9 @@ pub mod quota_operation { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Quota/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -729,6 +738,9 @@ pub mod quota_operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recommendationsservice/src/package_2022_02_01/models.rs b/services/mgmt/recommendationsservice/src/package_2022_02_01/models.rs index 96b65af116..50679d2825 100644 --- a/services/mgmt/recommendationsservice/src/package_2022_02_01/models.rs +++ b/services/mgmt/recommendationsservice/src/package_2022_02_01/models.rs @@ -139,8 +139,8 @@ pub struct AccountResourceList { pub value: Vec, } impl azure_core::Continuable for AccountResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountResourceList { @@ -370,7 +370,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -600,8 +600,8 @@ pub struct ModelingResourceList { pub value: Vec, } impl azure_core::Continuable for ModelingResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ModelingResourceList { @@ -745,8 +745,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -896,8 +896,8 @@ pub struct ServiceEndpointResourceList { pub value: Vec, } impl azure_core::Continuable for ServiceEndpointResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceEndpointResourceList { diff --git a/services/mgmt/recommendationsservice/src/package_2022_02_01/operations.rs b/services/mgmt/recommendationsservice/src/package_2022_02_01/operations.rs index 8e723b9730..c436993894 100644 --- a/services/mgmt/recommendationsservice/src/package_2022_02_01/operations.rs +++ b/services/mgmt/recommendationsservice/src/package_2022_02_01/operations.rs @@ -261,9 +261,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -282,6 +282,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -337,9 +340,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -358,6 +361,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -787,9 +793,9 @@ pub mod modeling { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -808,6 +814,9 @@ pub mod modeling { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1192,9 +1201,9 @@ pub mod service_endpoints { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1213,6 +1222,9 @@ pub mod service_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1552,9 +1564,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1573,6 +1585,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservices/src/package_2022_02/models.rs b/services/mgmt/recoveryservices/src/package_2022_02/models.rs index 268af41b91..442fa4e4d2 100644 --- a/services/mgmt/recoveryservices/src/package_2022_02/models.rs +++ b/services/mgmt/recoveryservices/src/package_2022_02/models.rs @@ -120,8 +120,8 @@ pub struct ClientDiscoveryResponse { pub next_link: Option, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -158,7 +158,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -576,8 +576,8 @@ pub struct PrivateLinkResources { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResources { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResources { @@ -745,7 +745,7 @@ pub struct ReplicationUsageList { pub value: Vec, } impl azure_core::Continuable for ReplicationUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1211,8 +1211,8 @@ pub struct VaultList { pub next_link: Option, } impl azure_core::Continuable for VaultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultList { @@ -1590,7 +1590,7 @@ pub struct VaultUsageList { pub value: Vec, } impl azure_core::Continuable for VaultUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/recoveryservices/src/package_2022_02/operations.rs b/services/mgmt/recoveryservices/src/package_2022_02/operations.rs index 98b06ff37f..a97e48860d 100644 --- a/services/mgmt/recoveryservices/src/package_2022_02/operations.rs +++ b/services/mgmt/recoveryservices/src/package_2022_02/operations.rs @@ -382,9 +382,9 @@ pub mod private_link_resources { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -403,6 +403,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -665,9 +668,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -686,6 +689,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -741,9 +747,9 @@ pub mod vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -762,6 +768,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1046,9 +1055,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1067,6 +1076,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservices/src/package_2022_03/models.rs b/services/mgmt/recoveryservices/src/package_2022_03/models.rs index 19a1bdf82b..67c044b88d 100644 --- a/services/mgmt/recoveryservices/src/package_2022_03/models.rs +++ b/services/mgmt/recoveryservices/src/package_2022_03/models.rs @@ -220,8 +220,8 @@ pub struct ClientDiscoveryResponse { pub next_link: Option, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -258,7 +258,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -691,8 +691,8 @@ pub struct PrivateLinkResources { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResources { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResources { @@ -860,7 +860,7 @@ pub struct ReplicationUsageList { pub value: Vec, } impl azure_core::Continuable for ReplicationUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1326,8 +1326,8 @@ pub struct VaultList { pub next_link: Option, } impl azure_core::Continuable for VaultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultList { @@ -1708,7 +1708,7 @@ pub struct VaultUsageList { pub value: Vec, } impl azure_core::Continuable for VaultUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/recoveryservices/src/package_2022_03/operations.rs b/services/mgmt/recoveryservices/src/package_2022_03/operations.rs index 295f0be96b..e7b483ba84 100644 --- a/services/mgmt/recoveryservices/src/package_2022_03/operations.rs +++ b/services/mgmt/recoveryservices/src/package_2022_03/operations.rs @@ -382,9 +382,9 @@ pub mod private_link_resources { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -403,6 +403,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -665,9 +668,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -686,6 +689,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -741,9 +747,9 @@ pub mod vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -762,6 +768,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1046,9 +1055,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1067,6 +1076,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservices/src/package_2022_04/models.rs b/services/mgmt/recoveryservices/src/package_2022_04/models.rs index c3bb91c9b3..cceed276a6 100644 --- a/services/mgmt/recoveryservices/src/package_2022_04/models.rs +++ b/services/mgmt/recoveryservices/src/package_2022_04/models.rs @@ -220,8 +220,8 @@ pub struct ClientDiscoveryResponse { pub next_link: Option, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -258,7 +258,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -691,8 +691,8 @@ pub struct PrivateLinkResources { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResources { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResources { @@ -860,7 +860,7 @@ pub struct ReplicationUsageList { pub value: Vec, } impl azure_core::Continuable for ReplicationUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1330,8 +1330,8 @@ pub struct VaultList { pub next_link: Option, } impl azure_core::Continuable for VaultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultList { @@ -1809,7 +1809,7 @@ pub struct VaultUsageList { pub value: Vec, } impl azure_core::Continuable for VaultUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/recoveryservices/src/package_2022_04/operations.rs b/services/mgmt/recoveryservices/src/package_2022_04/operations.rs index 95bec74821..b755b729d3 100644 --- a/services/mgmt/recoveryservices/src/package_2022_04/operations.rs +++ b/services/mgmt/recoveryservices/src/package_2022_04/operations.rs @@ -382,9 +382,9 @@ pub mod private_link_resources { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -403,6 +403,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -665,9 +668,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -686,6 +689,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -741,9 +747,9 @@ pub mod vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -762,6 +768,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1046,9 +1055,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1067,6 +1076,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservices/src/package_preview_2021_11/models.rs b/services/mgmt/recoveryservices/src/package_preview_2021_11/models.rs index 268af41b91..442fa4e4d2 100644 --- a/services/mgmt/recoveryservices/src/package_preview_2021_11/models.rs +++ b/services/mgmt/recoveryservices/src/package_preview_2021_11/models.rs @@ -120,8 +120,8 @@ pub struct ClientDiscoveryResponse { pub next_link: Option, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -158,7 +158,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -576,8 +576,8 @@ pub struct PrivateLinkResources { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResources { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResources { @@ -745,7 +745,7 @@ pub struct ReplicationUsageList { pub value: Vec, } impl azure_core::Continuable for ReplicationUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1211,8 +1211,8 @@ pub struct VaultList { pub next_link: Option, } impl azure_core::Continuable for VaultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultList { @@ -1590,7 +1590,7 @@ pub struct VaultUsageList { pub value: Vec, } impl azure_core::Continuable for VaultUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/recoveryservices/src/package_preview_2021_11/operations.rs b/services/mgmt/recoveryservices/src/package_preview_2021_11/operations.rs index ef43f75842..be808209f2 100644 --- a/services/mgmt/recoveryservices/src/package_preview_2021_11/operations.rs +++ b/services/mgmt/recoveryservices/src/package_preview_2021_11/operations.rs @@ -382,9 +382,9 @@ pub mod private_link_resources { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -403,6 +403,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -665,9 +668,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -686,6 +689,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -741,9 +747,9 @@ pub mod vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -762,6 +768,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1046,9 +1055,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1067,6 +1076,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservices/src/package_preview_2022_01/models.rs b/services/mgmt/recoveryservices/src/package_preview_2022_01/models.rs index a15760a850..c318ca3068 100644 --- a/services/mgmt/recoveryservices/src/package_preview_2022_01/models.rs +++ b/services/mgmt/recoveryservices/src/package_preview_2022_01/models.rs @@ -159,8 +159,8 @@ pub struct ClientDiscoveryResponse { pub next_link: Option, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -197,7 +197,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -681,8 +681,8 @@ pub struct PrivateLinkResources { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResources { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResources { @@ -850,7 +850,7 @@ pub struct ReplicationUsageList { pub value: Vec, } impl azure_core::Continuable for ReplicationUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1345,8 +1345,8 @@ pub struct VaultList { pub next_link: Option, } impl azure_core::Continuable for VaultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultList { @@ -1724,7 +1724,7 @@ pub struct VaultUsageList { pub value: Vec, } impl azure_core::Continuable for VaultUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/recoveryservices/src/package_preview_2022_01/operations.rs b/services/mgmt/recoveryservices/src/package_preview_2022_01/operations.rs index 9d3ef15618..9ebfbf215d 100644 --- a/services/mgmt/recoveryservices/src/package_preview_2022_01/operations.rs +++ b/services/mgmt/recoveryservices/src/package_preview_2022_01/operations.rs @@ -382,9 +382,9 @@ pub mod private_link_resources { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -403,6 +403,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -731,9 +734,9 @@ pub mod vaults { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -752,6 +755,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -807,9 +813,9 @@ pub mod vaults { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -828,6 +834,9 @@ pub mod vaults { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1112,9 +1121,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1133,6 +1142,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservicesbackup/src/package_2022_01/models.rs b/services/mgmt/recoveryservicesbackup/src/package_2022_01/models.rs index 30cba8e562..805889005b 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2022_01/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2022_01/models.rs @@ -4112,7 +4112,7 @@ pub struct BackupEngineBaseResourceList { pub value: Vec, } impl azure_core::Continuable for BackupEngineBaseResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4237,7 +4237,7 @@ pub struct BackupManagementUsageList { pub value: Vec, } impl azure_core::Continuable for BackupManagementUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5245,8 +5245,8 @@ pub struct ClientDiscoveryResponse { pub next_link: Option, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -5307,7 +5307,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6828,7 +6828,7 @@ pub struct JobResourceList { pub value: Vec, } impl azure_core::Continuable for JobResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8556,7 +8556,7 @@ pub struct ProtectableContainerResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectableContainerResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9035,7 +9035,7 @@ pub struct ProtectedItemResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectedItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9240,7 +9240,7 @@ pub struct ProtectionContainerResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectionContainerResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9580,7 +9580,7 @@ pub struct ProtectionIntentResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectionIntentResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9779,7 +9779,7 @@ pub struct ProtectionPolicyResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectionPolicyResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9912,7 +9912,7 @@ pub struct RecoveryPointResourceList { pub value: Vec, } impl azure_core::Continuable for RecoveryPointResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10146,7 +10146,7 @@ pub struct ResourceGuardProxyBaseResourceList { pub value: Vec, } impl azure_core::Continuable for ResourceGuardProxyBaseResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -11201,7 +11201,7 @@ pub struct WorkloadItemResourceList { pub value: Vec, } impl azure_core::Continuable for WorkloadItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -11310,7 +11310,7 @@ pub struct WorkloadProtectableItemResourceList { pub value: Vec, } impl azure_core::Continuable for WorkloadProtectableItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/recoveryservicesbackup/src/package_2022_01/operations.rs b/services/mgmt/recoveryservicesbackup/src/package_2022_01/operations.rs index 8de9c2c74b..94b48bcd65 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2022_01/operations.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2022_01/operations.rs @@ -870,9 +870,9 @@ pub mod backup_protection_intent { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -891,6 +891,9 @@ pub mod backup_protection_intent { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1047,9 +1050,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1068,6 +1071,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2444,9 +2450,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/protectedItems/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name , & this . protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2465,6 +2471,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2678,9 +2687,9 @@ pub mod backup_policies { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2699,6 +2708,9 @@ pub mod backup_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3085,9 +3097,9 @@ pub mod backup_jobs { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3106,6 +3118,9 @@ pub mod backup_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3575,9 +3590,9 @@ pub mod backup_protected_items { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3596,6 +3611,9 @@ pub mod backup_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3989,9 +4007,9 @@ pub mod backup_engines { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4010,6 +4028,9 @@ pub mod backup_engines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4237,9 +4258,9 @@ pub mod protectable_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectableContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4258,6 +4279,9 @@ pub mod protectable_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4702,9 +4726,9 @@ pub mod backup_workload_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/items" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4723,6 +4747,9 @@ pub mod backup_workload_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5411,9 +5438,9 @@ pub mod backup_protectable_items { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5432,6 +5459,9 @@ pub mod backup_protectable_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5514,9 +5544,9 @@ pub mod backup_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5535,6 +5565,9 @@ pub mod backup_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5702,9 +5735,9 @@ pub mod recovery_points_recommended_for_move { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/protectedItems/{}/recoveryPointsRecommendedForMove" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name , & this . protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5723,6 +5756,9 @@ pub mod recovery_points_recommended_for_move { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5794,9 +5830,9 @@ pub mod resource_guard_proxies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupResourceGuardProxies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5815,6 +5851,9 @@ pub mod resource_guard_proxies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservicesbackup/src/package_2022_02/models.rs b/services/mgmt/recoveryservicesbackup/src/package_2022_02/models.rs index 30cba8e562..805889005b 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2022_02/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2022_02/models.rs @@ -4112,7 +4112,7 @@ pub struct BackupEngineBaseResourceList { pub value: Vec, } impl azure_core::Continuable for BackupEngineBaseResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4237,7 +4237,7 @@ pub struct BackupManagementUsageList { pub value: Vec, } impl azure_core::Continuable for BackupManagementUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5245,8 +5245,8 @@ pub struct ClientDiscoveryResponse { pub next_link: Option, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -5307,7 +5307,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6828,7 +6828,7 @@ pub struct JobResourceList { pub value: Vec, } impl azure_core::Continuable for JobResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8556,7 +8556,7 @@ pub struct ProtectableContainerResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectableContainerResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9035,7 +9035,7 @@ pub struct ProtectedItemResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectedItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9240,7 +9240,7 @@ pub struct ProtectionContainerResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectionContainerResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9580,7 +9580,7 @@ pub struct ProtectionIntentResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectionIntentResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9779,7 +9779,7 @@ pub struct ProtectionPolicyResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectionPolicyResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9912,7 +9912,7 @@ pub struct RecoveryPointResourceList { pub value: Vec, } impl azure_core::Continuable for RecoveryPointResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10146,7 +10146,7 @@ pub struct ResourceGuardProxyBaseResourceList { pub value: Vec, } impl azure_core::Continuable for ResourceGuardProxyBaseResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -11201,7 +11201,7 @@ pub struct WorkloadItemResourceList { pub value: Vec, } impl azure_core::Continuable for WorkloadItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -11310,7 +11310,7 @@ pub struct WorkloadProtectableItemResourceList { pub value: Vec, } impl azure_core::Continuable for WorkloadProtectableItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/recoveryservicesbackup/src/package_2022_02/operations.rs b/services/mgmt/recoveryservicesbackup/src/package_2022_02/operations.rs index 87acbefe40..65bc98771e 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2022_02/operations.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2022_02/operations.rs @@ -870,9 +870,9 @@ pub mod backup_protection_intent { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -891,6 +891,9 @@ pub mod backup_protection_intent { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1047,9 +1050,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1068,6 +1071,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2444,9 +2450,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/protectedItems/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name , & this . protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2465,6 +2471,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2678,9 +2687,9 @@ pub mod backup_policies { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2699,6 +2708,9 @@ pub mod backup_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3085,9 +3097,9 @@ pub mod backup_jobs { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3106,6 +3118,9 @@ pub mod backup_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3575,9 +3590,9 @@ pub mod backup_protected_items { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3596,6 +3611,9 @@ pub mod backup_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3989,9 +4007,9 @@ pub mod backup_engines { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4010,6 +4028,9 @@ pub mod backup_engines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4237,9 +4258,9 @@ pub mod protectable_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectableContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4258,6 +4279,9 @@ pub mod protectable_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4702,9 +4726,9 @@ pub mod backup_workload_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/items" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4723,6 +4747,9 @@ pub mod backup_workload_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5411,9 +5438,9 @@ pub mod backup_protectable_items { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5432,6 +5459,9 @@ pub mod backup_protectable_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5514,9 +5544,9 @@ pub mod backup_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5535,6 +5565,9 @@ pub mod backup_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5702,9 +5735,9 @@ pub mod recovery_points_recommended_for_move { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/protectedItems/{}/recoveryPointsRecommendedForMove" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name , & this . protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5723,6 +5756,9 @@ pub mod recovery_points_recommended_for_move { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5794,9 +5830,9 @@ pub mod resource_guard_proxies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupResourceGuardProxies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5815,6 +5851,9 @@ pub mod resource_guard_proxies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservicesbackup/src/package_2022_03/models.rs b/services/mgmt/recoveryservicesbackup/src/package_2022_03/models.rs index 30cba8e562..805889005b 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2022_03/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2022_03/models.rs @@ -4112,7 +4112,7 @@ pub struct BackupEngineBaseResourceList { pub value: Vec, } impl azure_core::Continuable for BackupEngineBaseResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4237,7 +4237,7 @@ pub struct BackupManagementUsageList { pub value: Vec, } impl azure_core::Continuable for BackupManagementUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5245,8 +5245,8 @@ pub struct ClientDiscoveryResponse { pub next_link: Option, } impl azure_core::Continuable for ClientDiscoveryResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientDiscoveryResponse { @@ -5307,7 +5307,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6828,7 +6828,7 @@ pub struct JobResourceList { pub value: Vec, } impl azure_core::Continuable for JobResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8556,7 +8556,7 @@ pub struct ProtectableContainerResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectableContainerResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9035,7 +9035,7 @@ pub struct ProtectedItemResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectedItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9240,7 +9240,7 @@ pub struct ProtectionContainerResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectionContainerResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9580,7 +9580,7 @@ pub struct ProtectionIntentResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectionIntentResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9779,7 +9779,7 @@ pub struct ProtectionPolicyResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectionPolicyResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9912,7 +9912,7 @@ pub struct RecoveryPointResourceList { pub value: Vec, } impl azure_core::Continuable for RecoveryPointResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10146,7 +10146,7 @@ pub struct ResourceGuardProxyBaseResourceList { pub value: Vec, } impl azure_core::Continuable for ResourceGuardProxyBaseResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -11201,7 +11201,7 @@ pub struct WorkloadItemResourceList { pub value: Vec, } impl azure_core::Continuable for WorkloadItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -11310,7 +11310,7 @@ pub struct WorkloadProtectableItemResourceList { pub value: Vec, } impl azure_core::Continuable for WorkloadProtectableItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/recoveryservicesbackup/src/package_2022_03/operations.rs b/services/mgmt/recoveryservicesbackup/src/package_2022_03/operations.rs index 7971294d05..2ea0b59fe3 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2022_03/operations.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2022_03/operations.rs @@ -870,9 +870,9 @@ pub mod backup_protection_intent { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -891,6 +891,9 @@ pub mod backup_protection_intent { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1047,9 +1050,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1068,6 +1071,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2444,9 +2450,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/protectedItems/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name , & this . protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2465,6 +2471,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2678,9 +2687,9 @@ pub mod backup_policies { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2699,6 +2708,9 @@ pub mod backup_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3085,9 +3097,9 @@ pub mod backup_jobs { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3106,6 +3118,9 @@ pub mod backup_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3575,9 +3590,9 @@ pub mod backup_protected_items { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3596,6 +3611,9 @@ pub mod backup_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3989,9 +4007,9 @@ pub mod backup_engines { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4010,6 +4028,9 @@ pub mod backup_engines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4237,9 +4258,9 @@ pub mod protectable_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectableContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4258,6 +4279,9 @@ pub mod protectable_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4702,9 +4726,9 @@ pub mod backup_workload_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/items" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4723,6 +4747,9 @@ pub mod backup_workload_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5411,9 +5438,9 @@ pub mod backup_protectable_items { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5432,6 +5459,9 @@ pub mod backup_protectable_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5514,9 +5544,9 @@ pub mod backup_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5535,6 +5565,9 @@ pub mod backup_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5702,9 +5735,9 @@ pub mod recovery_points_recommended_for_move { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/protectedItems/{}/recoveryPointsRecommendedForMove" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name , & this . protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5723,6 +5756,9 @@ pub mod recovery_points_recommended_for_move { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5794,9 +5830,9 @@ pub mod resource_guard_proxies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupResourceGuardProxies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5815,6 +5851,9 @@ pub mod resource_guard_proxies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/models.rs b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/models.rs index 45b101e651..f4da402b2d 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/models.rs @@ -1912,7 +1912,7 @@ pub struct BackupManagementUsageList { pub value: Vec, } impl azure_core::Continuable for BackupManagementUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3293,7 +3293,7 @@ pub struct JobResourceList { pub value: Vec, } impl azure_core::Continuable for JobResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3722,7 +3722,7 @@ pub struct NewErrorResponse { pub error: Option, } impl azure_core::Continuable for NewErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4414,7 +4414,7 @@ pub struct ProtectedItemResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectedItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4492,7 +4492,7 @@ pub struct RecoveryPointResourceList { pub value: Vec, } impl azure_core::Continuable for RecoveryPointResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/operations.rs b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/operations.rs index a867694aac..10e89046a4 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/operations.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2018_12_20/operations.rs @@ -470,9 +470,9 @@ pub mod backup_crr_jobs { &this.azure_region ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -491,6 +491,9 @@ pub mod backup_crr_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -995,9 +998,9 @@ pub mod recovery_points_crr { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/protectedItems/{}/recoveryPoints/" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name , & this . protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1016,6 +1019,9 @@ pub mod recovery_points_crr { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1107,9 +1113,9 @@ pub mod backup_protected_items_crr { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1128,6 +1134,9 @@ pub mod backup_protected_items_crr { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/models.rs b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/models.rs index 45b101e651..f4da402b2d 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/models.rs @@ -1912,7 +1912,7 @@ pub struct BackupManagementUsageList { pub value: Vec, } impl azure_core::Continuable for BackupManagementUsageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3293,7 +3293,7 @@ pub struct JobResourceList { pub value: Vec, } impl azure_core::Continuable for JobResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3722,7 +3722,7 @@ pub struct NewErrorResponse { pub error: Option, } impl azure_core::Continuable for NewErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4414,7 +4414,7 @@ pub struct ProtectedItemResourceList { pub value: Vec, } impl azure_core::Continuable for ProtectedItemResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4492,7 +4492,7 @@ pub struct RecoveryPointResourceList { pub value: Vec, } impl azure_core::Continuable for RecoveryPointResourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/operations.rs b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/operations.rs index 286b562c34..7f64f80dc2 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/operations.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2021_11_15/operations.rs @@ -470,9 +470,9 @@ pub mod backup_crr_jobs { &this.azure_region ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -491,6 +491,9 @@ pub mod backup_crr_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -995,9 +998,9 @@ pub mod recovery_points_crr { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/backupFabrics/{}/protectionContainers/{}/protectedItems/{}/recoveryPoints/" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . vault_name , & this . fabric_name , & this . container_name , & this . protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1016,6 +1019,9 @@ pub mod recovery_points_crr { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1107,9 +1113,9 @@ pub mod backup_protected_items_crr { &this.vault_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1128,6 +1134,9 @@ pub mod backup_protected_items_crr { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/models.rs index 40c17e65a4..6e9d0b9a2e 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/models.rs @@ -2483,8 +2483,8 @@ pub struct AlertCollection { pub next_link: Option, } impl azure_core::Continuable for AlertCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertCollection { @@ -2521,8 +2521,8 @@ pub struct ApplianceCollection { pub next_link: Option, } impl azure_core::Continuable for ApplianceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplianceCollection { @@ -3570,8 +3570,8 @@ pub struct EventCollection { pub next_link: Option, } impl azure_core::Continuable for EventCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventCollection { @@ -3882,8 +3882,8 @@ pub struct FabricCollection { pub next_link: Option, } impl azure_core::Continuable for FabricCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FabricCollection { @@ -10488,8 +10488,8 @@ pub struct JobCollection { pub next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -10778,8 +10778,8 @@ pub struct LogicalNetworkCollection { pub next_link: Option, } impl azure_core::Continuable for LogicalNetworkCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalNetworkCollection { @@ -11036,8 +11036,8 @@ pub struct MigrationItemCollection { pub next_link: Option, } impl azure_core::Continuable for MigrationItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationItemCollection { @@ -11298,8 +11298,8 @@ pub struct MigrationRecoveryPointCollection { pub next_link: Option, } impl azure_core::Continuable for MigrationRecoveryPointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationRecoveryPointCollection { @@ -11407,8 +11407,8 @@ pub struct NetworkCollection { pub next_link: Option, } impl azure_core::Continuable for NetworkCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkCollection { @@ -11441,8 +11441,8 @@ pub struct NetworkMappingCollection { pub next_link: Option, } impl azure_core::Continuable for NetworkMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkMappingCollection { @@ -11713,8 +11713,8 @@ pub struct OperationsDiscoveryCollection { pub next_link: Option, } impl azure_core::Continuable for OperationsDiscoveryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsDiscoveryCollection { @@ -11794,8 +11794,8 @@ pub struct PolicyCollection { pub next_link: Option, } impl azure_core::Continuable for PolicyCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyCollection { @@ -12414,8 +12414,8 @@ pub struct ProtectableItemCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectableItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectableItemCollection { @@ -12563,8 +12563,8 @@ pub struct ProtectionContainerCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectionContainerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectionContainerCollection { @@ -12609,8 +12609,8 @@ pub struct ProtectionContainerMappingCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectionContainerMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectionContainerMappingCollection { @@ -13224,8 +13224,8 @@ pub struct RecoveryPlanCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryPlanCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryPlanCollection { @@ -14276,8 +14276,8 @@ pub struct RecoveryPointCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryPointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryPointCollection { @@ -14352,8 +14352,8 @@ pub struct RecoveryServicesProviderCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryServicesProviderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryServicesProviderCollection { @@ -14742,8 +14742,8 @@ pub struct ReplicationProtectedItemCollection { pub next_link: Option, } impl azure_core::Continuable for ReplicationProtectedItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationProtectedItemCollection { @@ -14883,8 +14883,8 @@ pub struct ReplicationProtectionIntentCollection { pub next_link: Option, } impl azure_core::Continuable for ReplicationProtectionIntentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationProtectionIntentCollection { @@ -15406,8 +15406,8 @@ pub struct StorageClassificationCollection { pub next_link: Option, } impl azure_core::Continuable for StorageClassificationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageClassificationCollection { @@ -15440,8 +15440,8 @@ pub struct StorageClassificationMappingCollection { pub next_link: Option, } impl azure_core::Continuable for StorageClassificationMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageClassificationMappingCollection { @@ -15701,8 +15701,8 @@ pub struct TargetComputeSizeCollection { pub next_link: Option, } impl azure_core::Continuable for TargetComputeSizeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TargetComputeSizeCollection { @@ -16354,8 +16354,8 @@ pub struct VCenterCollection { pub next_link: Option, } impl azure_core::Continuable for VCenterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VCenterCollection { @@ -17920,8 +17920,8 @@ pub struct VaultSettingCollection { pub next_link: Option, } impl azure_core::Continuable for VaultSettingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultSettingCollection { diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/operations.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/operations.rs index 31a95f432a..dfe72d3399 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/operations.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2021_11/operations.rs @@ -193,9 +193,9 @@ pub mod operations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -214,6 +214,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -325,9 +328,9 @@ pub mod replication_alert_settings { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -346,6 +349,9 @@ pub mod replication_alert_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -525,9 +531,9 @@ pub mod replication_appliances { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -546,6 +552,9 @@ pub mod replication_appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -774,9 +783,9 @@ pub mod replication_events { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -795,6 +804,9 @@ pub mod replication_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1064,9 +1076,9 @@ pub mod replication_fabrics { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1085,6 +1097,9 @@ pub mod replication_fabrics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1621,9 +1636,9 @@ pub mod replication_logical_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationLogicalNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1642,6 +1657,9 @@ pub mod replication_logical_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1796,9 +1814,9 @@ pub mod replication_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1817,6 +1835,9 @@ pub mod replication_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1922,9 +1943,9 @@ pub mod replication_networks { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1943,6 +1964,9 @@ pub mod replication_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2118,9 +2142,9 @@ pub mod replication_network_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationNetworks/{}/replicationNetworkMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . network_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2139,6 +2163,9 @@ pub mod replication_network_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2404,9 +2431,9 @@ pub mod replication_network_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationNetworkMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2425,6 +2452,9 @@ pub mod replication_network_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2609,9 +2639,9 @@ pub mod replication_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2630,6 +2660,9 @@ pub mod replication_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2948,9 +2981,9 @@ pub mod replication_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2969,6 +3002,9 @@ pub mod replication_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3254,9 +3290,9 @@ pub mod replication_migration_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationMigrationItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3275,6 +3311,9 @@ pub mod replication_migration_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3800,9 +3839,9 @@ pub mod replication_migration_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationMigrationItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3821,6 +3860,9 @@ pub mod replication_migration_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3932,9 +3974,9 @@ pub mod migration_recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationMigrationItems/{}/migrationRecoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . migration_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3953,6 +3995,9 @@ pub mod migration_recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4118,9 +4163,9 @@ pub mod replication_protectable_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectableItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4139,6 +4184,9 @@ pub mod replication_protectable_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4720,9 +4768,9 @@ pub mod replication_protected_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4741,6 +4789,9 @@ pub mod replication_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5921,9 +5972,9 @@ pub mod replication_protected_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectedItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5942,6 +5993,9 @@ pub mod replication_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6050,9 +6104,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . replicated_protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6071,6 +6125,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6201,9 +6258,9 @@ pub mod target_compute_sizes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems/{}/targetComputeSizes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . replicated_protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6222,6 +6279,9 @@ pub mod target_compute_sizes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6419,9 +6479,9 @@ pub mod replication_protection_container_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectionContainerMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6440,6 +6500,9 @@ pub mod replication_protection_container_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6758,9 +6821,9 @@ pub mod replication_protection_container_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionContainerMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6779,6 +6842,9 @@ pub mod replication_protection_container_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6959,9 +7025,9 @@ pub mod replication_recovery_services_providers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationRecoveryServicesProviders" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6980,6 +7046,9 @@ pub mod replication_recovery_services_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7291,9 +7360,9 @@ pub mod replication_recovery_services_providers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationRecoveryServicesProviders" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7312,6 +7381,9 @@ pub mod replication_recovery_services_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7418,9 +7490,9 @@ pub mod replication_storage_classifications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationStorageClassifications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7439,6 +7511,9 @@ pub mod replication_storage_classifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7538,9 +7613,9 @@ pub mod replication_storage_classifications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationStorageClassifications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7559,6 +7634,9 @@ pub mod replication_storage_classifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7712,9 +7790,9 @@ pub mod replication_storage_classification_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationStorageClassifications/{}/replicationStorageClassificationMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . storage_classification_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7733,6 +7811,9 @@ pub mod replication_storage_classification_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7941,9 +8022,9 @@ pub mod replication_storage_classification_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationStorageClassificationMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7962,6 +8043,9 @@ pub mod replication_storage_classification_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8126,9 +8210,9 @@ pub mod replicationv_centers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationvCenters" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8147,6 +8231,9 @@ pub mod replicationv_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8414,9 +8501,9 @@ pub mod replicationv_centers { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8435,6 +8522,9 @@ pub mod replicationv_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8600,9 +8690,9 @@ pub mod replication_jobs { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8621,6 +8711,9 @@ pub mod replication_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9046,9 +9139,9 @@ pub mod replication_policies { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9067,6 +9160,9 @@ pub mod replication_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9418,9 +9514,9 @@ pub mod replication_protection_intents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionIntents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9439,6 +9535,9 @@ pub mod replication_protection_intents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9806,9 +9905,9 @@ pub mod replication_recovery_plans { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9827,6 +9926,9 @@ pub mod replication_recovery_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10740,9 +10842,9 @@ pub mod replication_vault_setting { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10761,6 +10863,9 @@ pub mod replication_vault_setting { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/models.rs index 1c865c32e5..22feb16fd5 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/models.rs @@ -2483,8 +2483,8 @@ pub struct AlertCollection { pub next_link: Option, } impl azure_core::Continuable for AlertCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertCollection { @@ -2521,8 +2521,8 @@ pub struct ApplianceCollection { pub next_link: Option, } impl azure_core::Continuable for ApplianceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplianceCollection { @@ -3570,8 +3570,8 @@ pub struct EventCollection { pub next_link: Option, } impl azure_core::Continuable for EventCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventCollection { @@ -3882,8 +3882,8 @@ pub struct FabricCollection { pub next_link: Option, } impl azure_core::Continuable for FabricCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FabricCollection { @@ -10488,8 +10488,8 @@ pub struct JobCollection { pub next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -10778,8 +10778,8 @@ pub struct LogicalNetworkCollection { pub next_link: Option, } impl azure_core::Continuable for LogicalNetworkCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalNetworkCollection { @@ -11036,8 +11036,8 @@ pub struct MigrationItemCollection { pub next_link: Option, } impl azure_core::Continuable for MigrationItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationItemCollection { @@ -11298,8 +11298,8 @@ pub struct MigrationRecoveryPointCollection { pub next_link: Option, } impl azure_core::Continuable for MigrationRecoveryPointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationRecoveryPointCollection { @@ -11407,8 +11407,8 @@ pub struct NetworkCollection { pub next_link: Option, } impl azure_core::Continuable for NetworkCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkCollection { @@ -11441,8 +11441,8 @@ pub struct NetworkMappingCollection { pub next_link: Option, } impl azure_core::Continuable for NetworkMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkMappingCollection { @@ -11713,8 +11713,8 @@ pub struct OperationsDiscoveryCollection { pub next_link: Option, } impl azure_core::Continuable for OperationsDiscoveryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsDiscoveryCollection { @@ -11794,8 +11794,8 @@ pub struct PolicyCollection { pub next_link: Option, } impl azure_core::Continuable for PolicyCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyCollection { @@ -12414,8 +12414,8 @@ pub struct ProtectableItemCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectableItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectableItemCollection { @@ -12563,8 +12563,8 @@ pub struct ProtectionContainerCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectionContainerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectionContainerCollection { @@ -12609,8 +12609,8 @@ pub struct ProtectionContainerMappingCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectionContainerMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectionContainerMappingCollection { @@ -13224,8 +13224,8 @@ pub struct RecoveryPlanCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryPlanCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryPlanCollection { @@ -14276,8 +14276,8 @@ pub struct RecoveryPointCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryPointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryPointCollection { @@ -14352,8 +14352,8 @@ pub struct RecoveryServicesProviderCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryServicesProviderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryServicesProviderCollection { @@ -14742,8 +14742,8 @@ pub struct ReplicationProtectedItemCollection { pub next_link: Option, } impl azure_core::Continuable for ReplicationProtectedItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationProtectedItemCollection { @@ -14883,8 +14883,8 @@ pub struct ReplicationProtectionIntentCollection { pub next_link: Option, } impl azure_core::Continuable for ReplicationProtectionIntentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationProtectionIntentCollection { @@ -15406,8 +15406,8 @@ pub struct StorageClassificationCollection { pub next_link: Option, } impl azure_core::Continuable for StorageClassificationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageClassificationCollection { @@ -15440,8 +15440,8 @@ pub struct StorageClassificationMappingCollection { pub next_link: Option, } impl azure_core::Continuable for StorageClassificationMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageClassificationMappingCollection { @@ -15701,8 +15701,8 @@ pub struct TargetComputeSizeCollection { pub next_link: Option, } impl azure_core::Continuable for TargetComputeSizeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TargetComputeSizeCollection { @@ -16354,8 +16354,8 @@ pub struct VCenterCollection { pub next_link: Option, } impl azure_core::Continuable for VCenterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VCenterCollection { @@ -17916,8 +17916,8 @@ pub struct VaultSettingCollection { pub next_link: Option, } impl azure_core::Continuable for VaultSettingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultSettingCollection { diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/operations.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/operations.rs index 6afa6ee76a..e7a5fb058b 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/operations.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2021_12/operations.rs @@ -193,9 +193,9 @@ pub mod operations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -214,6 +214,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -325,9 +328,9 @@ pub mod replication_alert_settings { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -346,6 +349,9 @@ pub mod replication_alert_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -525,9 +531,9 @@ pub mod replication_appliances { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -546,6 +552,9 @@ pub mod replication_appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -774,9 +783,9 @@ pub mod replication_events { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -795,6 +804,9 @@ pub mod replication_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1064,9 +1076,9 @@ pub mod replication_fabrics { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1085,6 +1097,9 @@ pub mod replication_fabrics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1621,9 +1636,9 @@ pub mod replication_logical_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationLogicalNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1642,6 +1657,9 @@ pub mod replication_logical_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1796,9 +1814,9 @@ pub mod replication_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1817,6 +1835,9 @@ pub mod replication_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1922,9 +1943,9 @@ pub mod replication_networks { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1943,6 +1964,9 @@ pub mod replication_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2118,9 +2142,9 @@ pub mod replication_network_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationNetworks/{}/replicationNetworkMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . network_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2139,6 +2163,9 @@ pub mod replication_network_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2404,9 +2431,9 @@ pub mod replication_network_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationNetworkMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2425,6 +2452,9 @@ pub mod replication_network_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2609,9 +2639,9 @@ pub mod replication_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2630,6 +2660,9 @@ pub mod replication_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2948,9 +2981,9 @@ pub mod replication_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2969,6 +3002,9 @@ pub mod replication_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3254,9 +3290,9 @@ pub mod replication_migration_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationMigrationItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3275,6 +3311,9 @@ pub mod replication_migration_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3800,9 +3839,9 @@ pub mod replication_migration_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationMigrationItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3821,6 +3860,9 @@ pub mod replication_migration_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3932,9 +3974,9 @@ pub mod migration_recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationMigrationItems/{}/migrationRecoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . migration_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3953,6 +3995,9 @@ pub mod migration_recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4118,9 +4163,9 @@ pub mod replication_protectable_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectableItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4139,6 +4184,9 @@ pub mod replication_protectable_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4720,9 +4768,9 @@ pub mod replication_protected_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4741,6 +4789,9 @@ pub mod replication_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5921,9 +5972,9 @@ pub mod replication_protected_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectedItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5942,6 +5993,9 @@ pub mod replication_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6050,9 +6104,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . replicated_protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6071,6 +6125,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6201,9 +6258,9 @@ pub mod target_compute_sizes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems/{}/targetComputeSizes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . replicated_protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6222,6 +6279,9 @@ pub mod target_compute_sizes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6419,9 +6479,9 @@ pub mod replication_protection_container_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectionContainerMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6440,6 +6500,9 @@ pub mod replication_protection_container_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6758,9 +6821,9 @@ pub mod replication_protection_container_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionContainerMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6779,6 +6842,9 @@ pub mod replication_protection_container_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6959,9 +7025,9 @@ pub mod replication_recovery_services_providers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationRecoveryServicesProviders" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6980,6 +7046,9 @@ pub mod replication_recovery_services_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7291,9 +7360,9 @@ pub mod replication_recovery_services_providers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationRecoveryServicesProviders" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7312,6 +7381,9 @@ pub mod replication_recovery_services_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7418,9 +7490,9 @@ pub mod replication_storage_classifications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationStorageClassifications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7439,6 +7511,9 @@ pub mod replication_storage_classifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7538,9 +7613,9 @@ pub mod replication_storage_classifications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationStorageClassifications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7559,6 +7634,9 @@ pub mod replication_storage_classifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7712,9 +7790,9 @@ pub mod replication_storage_classification_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationStorageClassifications/{}/replicationStorageClassificationMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . storage_classification_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7733,6 +7811,9 @@ pub mod replication_storage_classification_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7941,9 +8022,9 @@ pub mod replication_storage_classification_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationStorageClassificationMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7962,6 +8043,9 @@ pub mod replication_storage_classification_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8126,9 +8210,9 @@ pub mod replicationv_centers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationvCenters" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8147,6 +8231,9 @@ pub mod replicationv_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8414,9 +8501,9 @@ pub mod replicationv_centers { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8435,6 +8522,9 @@ pub mod replicationv_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8600,9 +8690,9 @@ pub mod replication_jobs { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8621,6 +8711,9 @@ pub mod replication_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9046,9 +9139,9 @@ pub mod replication_policies { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9067,6 +9160,9 @@ pub mod replication_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9418,9 +9514,9 @@ pub mod replication_protection_intents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionIntents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9439,6 +9535,9 @@ pub mod replication_protection_intents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9806,9 +9905,9 @@ pub mod replication_recovery_plans { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9827,6 +9926,9 @@ pub mod replication_recovery_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10740,9 +10842,9 @@ pub mod replication_vault_setting { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10761,6 +10863,9 @@ pub mod replication_vault_setting { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/models.rs index b6e53ca873..3a8afcd3c3 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/models.rs @@ -2483,8 +2483,8 @@ pub struct AlertCollection { pub next_link: Option, } impl azure_core::Continuable for AlertCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertCollection { @@ -2521,8 +2521,8 @@ pub struct ApplianceCollection { pub next_link: Option, } impl azure_core::Continuable for ApplianceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplianceCollection { @@ -3570,8 +3570,8 @@ pub struct EventCollection { pub next_link: Option, } impl azure_core::Continuable for EventCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventCollection { @@ -3882,8 +3882,8 @@ pub struct FabricCollection { pub next_link: Option, } impl azure_core::Continuable for FabricCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FabricCollection { @@ -10488,8 +10488,8 @@ pub struct JobCollection { pub next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -10778,8 +10778,8 @@ pub struct LogicalNetworkCollection { pub next_link: Option, } impl azure_core::Continuable for LogicalNetworkCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalNetworkCollection { @@ -11036,8 +11036,8 @@ pub struct MigrationItemCollection { pub next_link: Option, } impl azure_core::Continuable for MigrationItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationItemCollection { @@ -11298,8 +11298,8 @@ pub struct MigrationRecoveryPointCollection { pub next_link: Option, } impl azure_core::Continuable for MigrationRecoveryPointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationRecoveryPointCollection { @@ -11407,8 +11407,8 @@ pub struct NetworkCollection { pub next_link: Option, } impl azure_core::Continuable for NetworkCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkCollection { @@ -11441,8 +11441,8 @@ pub struct NetworkMappingCollection { pub next_link: Option, } impl azure_core::Continuable for NetworkMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkMappingCollection { @@ -11713,8 +11713,8 @@ pub struct OperationsDiscoveryCollection { pub next_link: Option, } impl azure_core::Continuable for OperationsDiscoveryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsDiscoveryCollection { @@ -11794,8 +11794,8 @@ pub struct PolicyCollection { pub next_link: Option, } impl azure_core::Continuable for PolicyCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyCollection { @@ -12414,8 +12414,8 @@ pub struct ProtectableItemCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectableItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectableItemCollection { @@ -12563,8 +12563,8 @@ pub struct ProtectionContainerCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectionContainerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectionContainerCollection { @@ -12609,8 +12609,8 @@ pub struct ProtectionContainerMappingCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectionContainerMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectionContainerMappingCollection { @@ -13224,8 +13224,8 @@ pub struct RecoveryPlanCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryPlanCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryPlanCollection { @@ -14276,8 +14276,8 @@ pub struct RecoveryPointCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryPointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryPointCollection { @@ -14352,8 +14352,8 @@ pub struct RecoveryServicesProviderCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryServicesProviderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryServicesProviderCollection { @@ -14742,8 +14742,8 @@ pub struct ReplicationProtectedItemCollection { pub next_link: Option, } impl azure_core::Continuable for ReplicationProtectedItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationProtectedItemCollection { @@ -14883,8 +14883,8 @@ pub struct ReplicationProtectionIntentCollection { pub next_link: Option, } impl azure_core::Continuable for ReplicationProtectionIntentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationProtectionIntentCollection { @@ -15406,8 +15406,8 @@ pub struct StorageClassificationCollection { pub next_link: Option, } impl azure_core::Continuable for StorageClassificationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageClassificationCollection { @@ -15440,8 +15440,8 @@ pub struct StorageClassificationMappingCollection { pub next_link: Option, } impl azure_core::Continuable for StorageClassificationMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageClassificationMappingCollection { @@ -15701,8 +15701,8 @@ pub struct TargetComputeSizeCollection { pub next_link: Option, } impl azure_core::Continuable for TargetComputeSizeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TargetComputeSizeCollection { @@ -16354,8 +16354,8 @@ pub struct VCenterCollection { pub next_link: Option, } impl azure_core::Continuable for VCenterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VCenterCollection { @@ -17989,8 +17989,8 @@ pub struct VaultSettingCollection { pub next_link: Option, } impl azure_core::Continuable for VaultSettingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultSettingCollection { diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/operations.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/operations.rs index 72c4fb7eec..2c1e2db295 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/operations.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2022_01/operations.rs @@ -193,9 +193,9 @@ pub mod operations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -214,6 +214,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -325,9 +328,9 @@ pub mod replication_alert_settings { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -346,6 +349,9 @@ pub mod replication_alert_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -525,9 +531,9 @@ pub mod replication_appliances { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -546,6 +552,9 @@ pub mod replication_appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -774,9 +783,9 @@ pub mod replication_events { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -795,6 +804,9 @@ pub mod replication_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1064,9 +1076,9 @@ pub mod replication_fabrics { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1085,6 +1097,9 @@ pub mod replication_fabrics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1621,9 +1636,9 @@ pub mod replication_logical_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationLogicalNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1642,6 +1657,9 @@ pub mod replication_logical_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1796,9 +1814,9 @@ pub mod replication_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1817,6 +1835,9 @@ pub mod replication_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1922,9 +1943,9 @@ pub mod replication_networks { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1943,6 +1964,9 @@ pub mod replication_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2118,9 +2142,9 @@ pub mod replication_network_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationNetworks/{}/replicationNetworkMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . network_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2139,6 +2163,9 @@ pub mod replication_network_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2404,9 +2431,9 @@ pub mod replication_network_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationNetworkMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2425,6 +2452,9 @@ pub mod replication_network_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2609,9 +2639,9 @@ pub mod replication_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2630,6 +2660,9 @@ pub mod replication_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2948,9 +2981,9 @@ pub mod replication_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2969,6 +3002,9 @@ pub mod replication_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3254,9 +3290,9 @@ pub mod replication_migration_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationMigrationItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3275,6 +3311,9 @@ pub mod replication_migration_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3800,9 +3839,9 @@ pub mod replication_migration_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationMigrationItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3821,6 +3860,9 @@ pub mod replication_migration_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3932,9 +3974,9 @@ pub mod migration_recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationMigrationItems/{}/migrationRecoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . migration_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3953,6 +3995,9 @@ pub mod migration_recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4118,9 +4163,9 @@ pub mod replication_protectable_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectableItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4139,6 +4184,9 @@ pub mod replication_protectable_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4720,9 +4768,9 @@ pub mod replication_protected_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4741,6 +4789,9 @@ pub mod replication_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5921,9 +5972,9 @@ pub mod replication_protected_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectedItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5942,6 +5993,9 @@ pub mod replication_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6050,9 +6104,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . replicated_protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6071,6 +6125,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6201,9 +6258,9 @@ pub mod target_compute_sizes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems/{}/targetComputeSizes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . replicated_protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6222,6 +6279,9 @@ pub mod target_compute_sizes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6419,9 +6479,9 @@ pub mod replication_protection_container_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectionContainerMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6440,6 +6500,9 @@ pub mod replication_protection_container_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6758,9 +6821,9 @@ pub mod replication_protection_container_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionContainerMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6779,6 +6842,9 @@ pub mod replication_protection_container_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6959,9 +7025,9 @@ pub mod replication_recovery_services_providers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationRecoveryServicesProviders" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6980,6 +7046,9 @@ pub mod replication_recovery_services_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7291,9 +7360,9 @@ pub mod replication_recovery_services_providers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationRecoveryServicesProviders" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7312,6 +7381,9 @@ pub mod replication_recovery_services_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7418,9 +7490,9 @@ pub mod replication_storage_classifications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationStorageClassifications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7439,6 +7511,9 @@ pub mod replication_storage_classifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7538,9 +7613,9 @@ pub mod replication_storage_classifications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationStorageClassifications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7559,6 +7634,9 @@ pub mod replication_storage_classifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7712,9 +7790,9 @@ pub mod replication_storage_classification_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationStorageClassifications/{}/replicationStorageClassificationMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . storage_classification_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7733,6 +7811,9 @@ pub mod replication_storage_classification_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7941,9 +8022,9 @@ pub mod replication_storage_classification_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationStorageClassificationMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7962,6 +8043,9 @@ pub mod replication_storage_classification_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8126,9 +8210,9 @@ pub mod replicationv_centers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationvCenters" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8147,6 +8231,9 @@ pub mod replicationv_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8414,9 +8501,9 @@ pub mod replicationv_centers { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8435,6 +8522,9 @@ pub mod replicationv_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8600,9 +8690,9 @@ pub mod replication_jobs { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8621,6 +8711,9 @@ pub mod replication_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9046,9 +9139,9 @@ pub mod replication_policies { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9067,6 +9160,9 @@ pub mod replication_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9418,9 +9514,9 @@ pub mod replication_protection_intents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionIntents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9439,6 +9535,9 @@ pub mod replication_protection_intents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9806,9 +9905,9 @@ pub mod replication_recovery_plans { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9827,6 +9926,9 @@ pub mod replication_recovery_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10740,9 +10842,9 @@ pub mod replication_vault_setting { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10761,6 +10863,9 @@ pub mod replication_vault_setting { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/models.rs index dc24f69fd6..0f0c01cd89 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/models.rs @@ -2483,8 +2483,8 @@ pub struct AlertCollection { pub next_link: Option, } impl azure_core::Continuable for AlertCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertCollection { @@ -2521,8 +2521,8 @@ pub struct ApplianceCollection { pub next_link: Option, } impl azure_core::Continuable for ApplianceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplianceCollection { @@ -3570,8 +3570,8 @@ pub struct EventCollection { pub next_link: Option, } impl azure_core::Continuable for EventCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventCollection { @@ -3882,8 +3882,8 @@ pub struct FabricCollection { pub next_link: Option, } impl azure_core::Continuable for FabricCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FabricCollection { @@ -10488,8 +10488,8 @@ pub struct JobCollection { pub next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -10778,8 +10778,8 @@ pub struct LogicalNetworkCollection { pub next_link: Option, } impl azure_core::Continuable for LogicalNetworkCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalNetworkCollection { @@ -11036,8 +11036,8 @@ pub struct MigrationItemCollection { pub next_link: Option, } impl azure_core::Continuable for MigrationItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationItemCollection { @@ -11298,8 +11298,8 @@ pub struct MigrationRecoveryPointCollection { pub next_link: Option, } impl azure_core::Continuable for MigrationRecoveryPointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationRecoveryPointCollection { @@ -11407,8 +11407,8 @@ pub struct NetworkCollection { pub next_link: Option, } impl azure_core::Continuable for NetworkCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkCollection { @@ -11441,8 +11441,8 @@ pub struct NetworkMappingCollection { pub next_link: Option, } impl azure_core::Continuable for NetworkMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkMappingCollection { @@ -11713,8 +11713,8 @@ pub struct OperationsDiscoveryCollection { pub next_link: Option, } impl azure_core::Continuable for OperationsDiscoveryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsDiscoveryCollection { @@ -11794,8 +11794,8 @@ pub struct PolicyCollection { pub next_link: Option, } impl azure_core::Continuable for PolicyCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyCollection { @@ -12414,8 +12414,8 @@ pub struct ProtectableItemCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectableItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectableItemCollection { @@ -12563,8 +12563,8 @@ pub struct ProtectionContainerCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectionContainerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectionContainerCollection { @@ -12609,8 +12609,8 @@ pub struct ProtectionContainerMappingCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectionContainerMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectionContainerMappingCollection { @@ -13224,8 +13224,8 @@ pub struct RecoveryPlanCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryPlanCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryPlanCollection { @@ -14276,8 +14276,8 @@ pub struct RecoveryPointCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryPointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryPointCollection { @@ -14352,8 +14352,8 @@ pub struct RecoveryServicesProviderCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryServicesProviderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryServicesProviderCollection { @@ -14742,8 +14742,8 @@ pub struct ReplicationProtectedItemCollection { pub next_link: Option, } impl azure_core::Continuable for ReplicationProtectedItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationProtectedItemCollection { @@ -14883,8 +14883,8 @@ pub struct ReplicationProtectionIntentCollection { pub next_link: Option, } impl azure_core::Continuable for ReplicationProtectionIntentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationProtectionIntentCollection { @@ -15406,8 +15406,8 @@ pub struct StorageClassificationCollection { pub next_link: Option, } impl azure_core::Continuable for StorageClassificationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageClassificationCollection { @@ -15440,8 +15440,8 @@ pub struct StorageClassificationMappingCollection { pub next_link: Option, } impl azure_core::Continuable for StorageClassificationMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageClassificationMappingCollection { @@ -15701,8 +15701,8 @@ pub struct TargetComputeSizeCollection { pub next_link: Option, } impl azure_core::Continuable for TargetComputeSizeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TargetComputeSizeCollection { @@ -16354,8 +16354,8 @@ pub struct VCenterCollection { pub next_link: Option, } impl azure_core::Continuable for VCenterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VCenterCollection { @@ -17993,8 +17993,8 @@ pub struct VaultSettingCollection { pub next_link: Option, } impl azure_core::Continuable for VaultSettingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultSettingCollection { diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/operations.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/operations.rs index 83acc5a0ad..fc9cfd4a3b 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/operations.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2022_02/operations.rs @@ -193,9 +193,9 @@ pub mod operations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -214,6 +214,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -325,9 +328,9 @@ pub mod replication_alert_settings { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -346,6 +349,9 @@ pub mod replication_alert_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -525,9 +531,9 @@ pub mod replication_appliances { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -546,6 +552,9 @@ pub mod replication_appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -774,9 +783,9 @@ pub mod replication_events { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -795,6 +804,9 @@ pub mod replication_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1064,9 +1076,9 @@ pub mod replication_fabrics { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1085,6 +1097,9 @@ pub mod replication_fabrics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1621,9 +1636,9 @@ pub mod replication_logical_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationLogicalNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1642,6 +1657,9 @@ pub mod replication_logical_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1796,9 +1814,9 @@ pub mod replication_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1817,6 +1835,9 @@ pub mod replication_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1922,9 +1943,9 @@ pub mod replication_networks { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1943,6 +1964,9 @@ pub mod replication_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2118,9 +2142,9 @@ pub mod replication_network_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationNetworks/{}/replicationNetworkMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . network_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2139,6 +2163,9 @@ pub mod replication_network_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2404,9 +2431,9 @@ pub mod replication_network_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationNetworkMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2425,6 +2452,9 @@ pub mod replication_network_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2609,9 +2639,9 @@ pub mod replication_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2630,6 +2660,9 @@ pub mod replication_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2948,9 +2981,9 @@ pub mod replication_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2969,6 +3002,9 @@ pub mod replication_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3254,9 +3290,9 @@ pub mod replication_migration_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationMigrationItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3275,6 +3311,9 @@ pub mod replication_migration_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3800,9 +3839,9 @@ pub mod replication_migration_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationMigrationItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3821,6 +3860,9 @@ pub mod replication_migration_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3932,9 +3974,9 @@ pub mod migration_recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationMigrationItems/{}/migrationRecoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . migration_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3953,6 +3995,9 @@ pub mod migration_recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4118,9 +4163,9 @@ pub mod replication_protectable_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectableItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4139,6 +4184,9 @@ pub mod replication_protectable_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4720,9 +4768,9 @@ pub mod replication_protected_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4741,6 +4789,9 @@ pub mod replication_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5921,9 +5972,9 @@ pub mod replication_protected_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectedItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5942,6 +5993,9 @@ pub mod replication_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6050,9 +6104,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . replicated_protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6071,6 +6125,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6201,9 +6258,9 @@ pub mod target_compute_sizes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems/{}/targetComputeSizes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . replicated_protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6222,6 +6279,9 @@ pub mod target_compute_sizes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6419,9 +6479,9 @@ pub mod replication_protection_container_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectionContainerMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6440,6 +6500,9 @@ pub mod replication_protection_container_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6758,9 +6821,9 @@ pub mod replication_protection_container_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionContainerMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6779,6 +6842,9 @@ pub mod replication_protection_container_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6959,9 +7025,9 @@ pub mod replication_recovery_services_providers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationRecoveryServicesProviders" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6980,6 +7046,9 @@ pub mod replication_recovery_services_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7291,9 +7360,9 @@ pub mod replication_recovery_services_providers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationRecoveryServicesProviders" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7312,6 +7381,9 @@ pub mod replication_recovery_services_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7418,9 +7490,9 @@ pub mod replication_storage_classifications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationStorageClassifications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7439,6 +7511,9 @@ pub mod replication_storage_classifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7538,9 +7613,9 @@ pub mod replication_storage_classifications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationStorageClassifications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7559,6 +7634,9 @@ pub mod replication_storage_classifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7712,9 +7790,9 @@ pub mod replication_storage_classification_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationStorageClassifications/{}/replicationStorageClassificationMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . storage_classification_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7733,6 +7811,9 @@ pub mod replication_storage_classification_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7941,9 +8022,9 @@ pub mod replication_storage_classification_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationStorageClassificationMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7962,6 +8043,9 @@ pub mod replication_storage_classification_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8126,9 +8210,9 @@ pub mod replicationv_centers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationvCenters" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8147,6 +8231,9 @@ pub mod replicationv_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8414,9 +8501,9 @@ pub mod replicationv_centers { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8435,6 +8522,9 @@ pub mod replicationv_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8600,9 +8690,9 @@ pub mod replication_jobs { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8621,6 +8711,9 @@ pub mod replication_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9046,9 +9139,9 @@ pub mod replication_policies { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9067,6 +9160,9 @@ pub mod replication_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9418,9 +9514,9 @@ pub mod replication_protection_intents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionIntents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9439,6 +9535,9 @@ pub mod replication_protection_intents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9806,9 +9905,9 @@ pub mod replication_recovery_plans { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9827,6 +9926,9 @@ pub mod replication_recovery_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10740,9 +10842,9 @@ pub mod replication_vault_setting { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10761,6 +10863,9 @@ pub mod replication_vault_setting { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/models.rs index dc24f69fd6..0f0c01cd89 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/models.rs @@ -2483,8 +2483,8 @@ pub struct AlertCollection { pub next_link: Option, } impl azure_core::Continuable for AlertCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertCollection { @@ -2521,8 +2521,8 @@ pub struct ApplianceCollection { pub next_link: Option, } impl azure_core::Continuable for ApplianceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplianceCollection { @@ -3570,8 +3570,8 @@ pub struct EventCollection { pub next_link: Option, } impl azure_core::Continuable for EventCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventCollection { @@ -3882,8 +3882,8 @@ pub struct FabricCollection { pub next_link: Option, } impl azure_core::Continuable for FabricCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FabricCollection { @@ -10488,8 +10488,8 @@ pub struct JobCollection { pub next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -10778,8 +10778,8 @@ pub struct LogicalNetworkCollection { pub next_link: Option, } impl azure_core::Continuable for LogicalNetworkCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalNetworkCollection { @@ -11036,8 +11036,8 @@ pub struct MigrationItemCollection { pub next_link: Option, } impl azure_core::Continuable for MigrationItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationItemCollection { @@ -11298,8 +11298,8 @@ pub struct MigrationRecoveryPointCollection { pub next_link: Option, } impl azure_core::Continuable for MigrationRecoveryPointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationRecoveryPointCollection { @@ -11407,8 +11407,8 @@ pub struct NetworkCollection { pub next_link: Option, } impl azure_core::Continuable for NetworkCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkCollection { @@ -11441,8 +11441,8 @@ pub struct NetworkMappingCollection { pub next_link: Option, } impl azure_core::Continuable for NetworkMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkMappingCollection { @@ -11713,8 +11713,8 @@ pub struct OperationsDiscoveryCollection { pub next_link: Option, } impl azure_core::Continuable for OperationsDiscoveryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsDiscoveryCollection { @@ -11794,8 +11794,8 @@ pub struct PolicyCollection { pub next_link: Option, } impl azure_core::Continuable for PolicyCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyCollection { @@ -12414,8 +12414,8 @@ pub struct ProtectableItemCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectableItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectableItemCollection { @@ -12563,8 +12563,8 @@ pub struct ProtectionContainerCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectionContainerCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectionContainerCollection { @@ -12609,8 +12609,8 @@ pub struct ProtectionContainerMappingCollection { pub next_link: Option, } impl azure_core::Continuable for ProtectionContainerMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProtectionContainerMappingCollection { @@ -13224,8 +13224,8 @@ pub struct RecoveryPlanCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryPlanCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryPlanCollection { @@ -14276,8 +14276,8 @@ pub struct RecoveryPointCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryPointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryPointCollection { @@ -14352,8 +14352,8 @@ pub struct RecoveryServicesProviderCollection { pub next_link: Option, } impl azure_core::Continuable for RecoveryServicesProviderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoveryServicesProviderCollection { @@ -14742,8 +14742,8 @@ pub struct ReplicationProtectedItemCollection { pub next_link: Option, } impl azure_core::Continuable for ReplicationProtectedItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationProtectedItemCollection { @@ -14883,8 +14883,8 @@ pub struct ReplicationProtectionIntentCollection { pub next_link: Option, } impl azure_core::Continuable for ReplicationProtectionIntentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationProtectionIntentCollection { @@ -15406,8 +15406,8 @@ pub struct StorageClassificationCollection { pub next_link: Option, } impl azure_core::Continuable for StorageClassificationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageClassificationCollection { @@ -15440,8 +15440,8 @@ pub struct StorageClassificationMappingCollection { pub next_link: Option, } impl azure_core::Continuable for StorageClassificationMappingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageClassificationMappingCollection { @@ -15701,8 +15701,8 @@ pub struct TargetComputeSizeCollection { pub next_link: Option, } impl azure_core::Continuable for TargetComputeSizeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TargetComputeSizeCollection { @@ -16354,8 +16354,8 @@ pub struct VCenterCollection { pub next_link: Option, } impl azure_core::Continuable for VCenterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VCenterCollection { @@ -17993,8 +17993,8 @@ pub struct VaultSettingCollection { pub next_link: Option, } impl azure_core::Continuable for VaultSettingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VaultSettingCollection { diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/operations.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/operations.rs index 257a1206b3..25787561a5 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/operations.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2022_03/operations.rs @@ -193,9 +193,9 @@ pub mod operations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -214,6 +214,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -325,9 +328,9 @@ pub mod replication_alert_settings { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -346,6 +349,9 @@ pub mod replication_alert_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -525,9 +531,9 @@ pub mod replication_appliances { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -546,6 +552,9 @@ pub mod replication_appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -774,9 +783,9 @@ pub mod replication_events { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -795,6 +804,9 @@ pub mod replication_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1064,9 +1076,9 @@ pub mod replication_fabrics { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1085,6 +1097,9 @@ pub mod replication_fabrics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1621,9 +1636,9 @@ pub mod replication_logical_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationLogicalNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1642,6 +1657,9 @@ pub mod replication_logical_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1796,9 +1814,9 @@ pub mod replication_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationNetworks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1817,6 +1835,9 @@ pub mod replication_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1922,9 +1943,9 @@ pub mod replication_networks { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1943,6 +1964,9 @@ pub mod replication_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2118,9 +2142,9 @@ pub mod replication_network_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationNetworks/{}/replicationNetworkMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . network_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2139,6 +2163,9 @@ pub mod replication_network_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2404,9 +2431,9 @@ pub mod replication_network_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationNetworkMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2425,6 +2452,9 @@ pub mod replication_network_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2609,9 +2639,9 @@ pub mod replication_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2630,6 +2660,9 @@ pub mod replication_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2948,9 +2981,9 @@ pub mod replication_protection_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionContainers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2969,6 +3002,9 @@ pub mod replication_protection_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3254,9 +3290,9 @@ pub mod replication_migration_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationMigrationItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3275,6 +3311,9 @@ pub mod replication_migration_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3800,9 +3839,9 @@ pub mod replication_migration_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationMigrationItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3821,6 +3860,9 @@ pub mod replication_migration_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3932,9 +3974,9 @@ pub mod migration_recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationMigrationItems/{}/migrationRecoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . migration_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3953,6 +3995,9 @@ pub mod migration_recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4118,9 +4163,9 @@ pub mod replication_protectable_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectableItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4139,6 +4184,9 @@ pub mod replication_protectable_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4720,9 +4768,9 @@ pub mod replication_protected_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4741,6 +4789,9 @@ pub mod replication_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5921,9 +5972,9 @@ pub mod replication_protected_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectedItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5942,6 +5993,9 @@ pub mod replication_protected_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6050,9 +6104,9 @@ pub mod recovery_points { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems/{}/recoveryPoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . replicated_protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6071,6 +6125,9 @@ pub mod recovery_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6201,9 +6258,9 @@ pub mod target_compute_sizes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectedItems/{}/targetComputeSizes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name , & this . replicated_protected_item_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6222,6 +6279,9 @@ pub mod target_compute_sizes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6419,9 +6479,9 @@ pub mod replication_protection_container_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationProtectionContainers/{}/replicationProtectionContainerMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . protection_container_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6440,6 +6500,9 @@ pub mod replication_protection_container_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6758,9 +6821,9 @@ pub mod replication_protection_container_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionContainerMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6779,6 +6842,9 @@ pub mod replication_protection_container_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6959,9 +7025,9 @@ pub mod replication_recovery_services_providers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationRecoveryServicesProviders" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6980,6 +7046,9 @@ pub mod replication_recovery_services_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7291,9 +7360,9 @@ pub mod replication_recovery_services_providers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationRecoveryServicesProviders" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7312,6 +7381,9 @@ pub mod replication_recovery_services_providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7418,9 +7490,9 @@ pub mod replication_storage_classifications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationStorageClassifications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7439,6 +7511,9 @@ pub mod replication_storage_classifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7538,9 +7613,9 @@ pub mod replication_storage_classifications { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationStorageClassifications" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7559,6 +7634,9 @@ pub mod replication_storage_classifications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7712,9 +7790,9 @@ pub mod replication_storage_classification_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationStorageClassifications/{}/replicationStorageClassificationMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name , & this . storage_classification_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7733,6 +7811,9 @@ pub mod replication_storage_classification_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7941,9 +8022,9 @@ pub mod replication_storage_classification_mappings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationStorageClassificationMappings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7962,6 +8043,9 @@ pub mod replication_storage_classification_mappings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8126,9 +8210,9 @@ pub mod replicationv_centers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationFabrics/{}/replicationvCenters" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name , & this . fabric_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8147,6 +8231,9 @@ pub mod replicationv_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8414,9 +8501,9 @@ pub mod replicationv_centers { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8435,6 +8522,9 @@ pub mod replicationv_centers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8600,9 +8690,9 @@ pub mod replication_jobs { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8621,6 +8711,9 @@ pub mod replication_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9046,9 +9139,9 @@ pub mod replication_policies { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9067,6 +9160,9 @@ pub mod replication_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9418,9 +9514,9 @@ pub mod replication_protection_intents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.RecoveryServices/vaults/{}/replicationProtectionIntents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9439,6 +9535,9 @@ pub mod replication_protection_intents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9806,9 +9905,9 @@ pub mod replication_recovery_plans { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9827,6 +9926,9 @@ pub mod replication_recovery_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10740,9 +10842,9 @@ pub mod replication_vault_setting { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10761,6 +10863,9 @@ pub mod replication_vault_setting { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redhatopenshift/src/package_2020_04_30/models.rs b/services/mgmt/redhatopenshift/src/package_2020_04_30/models.rs index c963827a4b..e9ee14e0a4 100644 --- a/services/mgmt/redhatopenshift/src/package_2020_04_30/models.rs +++ b/services/mgmt/redhatopenshift/src/package_2020_04_30/models.rs @@ -30,7 +30,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -205,8 +205,8 @@ pub struct OpenShiftClusterList { pub next_link: Option, } impl azure_core::Continuable for OpenShiftClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OpenShiftClusterList { @@ -294,8 +294,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/redhatopenshift/src/package_2020_04_30/operations.rs b/services/mgmt/redhatopenshift/src/package_2020_04_30/operations.rs index 5e674b615f..2334a9021f 100644 --- a/services/mgmt/redhatopenshift/src/package_2020_04_30/operations.rs +++ b/services/mgmt/redhatopenshift/src/package_2020_04_30/operations.rs @@ -107,9 +107,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -280,9 +283,9 @@ pub mod open_shift_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -301,6 +304,9 @@ pub mod open_shift_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -356,9 +362,9 @@ pub mod open_shift_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -377,6 +383,9 @@ pub mod open_shift_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/models.rs b/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/models.rs index 7632facafa..c8ee151e48 100644 --- a/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/models.rs @@ -30,7 +30,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -267,8 +267,8 @@ pub struct OpenShiftClusterList { pub next_link: Option, } impl azure_core::Continuable for OpenShiftClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OpenShiftClusterList { @@ -359,8 +359,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/operations.rs b/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/operations.rs index e3e63f22c2..2e4b0a2861 100644 --- a/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/operations.rs +++ b/services/mgmt/redhatopenshift/src/package_2021_09_01_preview/operations.rs @@ -107,9 +107,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -294,9 +297,9 @@ pub mod open_shift_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -315,6 +318,9 @@ pub mod open_shift_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -370,9 +376,9 @@ pub mod open_shift_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -391,6 +397,9 @@ pub mod open_shift_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redhatopenshift/src/package_2022_04_01/models.rs b/services/mgmt/redhatopenshift/src/package_2022_04_01/models.rs index 8a3604d638..5c38aa3bfe 100644 --- a/services/mgmt/redhatopenshift/src/package_2022_04_01/models.rs +++ b/services/mgmt/redhatopenshift/src/package_2022_04_01/models.rs @@ -30,7 +30,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -304,8 +304,8 @@ pub struct OpenShiftClusterList { pub next_link: Option, } impl azure_core::Continuable for OpenShiftClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OpenShiftClusterList { @@ -396,8 +396,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/redhatopenshift/src/package_2022_04_01/operations.rs b/services/mgmt/redhatopenshift/src/package_2022_04_01/operations.rs index 543188df93..47b5b9cd41 100644 --- a/services/mgmt/redhatopenshift/src/package_2022_04_01/operations.rs +++ b/services/mgmt/redhatopenshift/src/package_2022_04_01/operations.rs @@ -107,9 +107,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -294,9 +297,9 @@ pub mod open_shift_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -315,6 +318,9 @@ pub mod open_shift_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -370,9 +376,9 @@ pub mod open_shift_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -391,6 +397,9 @@ pub mod open_shift_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redis/src/package_2018_03/models.rs b/services/mgmt/redis/src/package_2018_03/models.rs index 01522b971a..a455ea8100 100644 --- a/services/mgmt/redis/src/package_2018_03/models.rs +++ b/services/mgmt/redis/src/package_2018_03/models.rs @@ -117,8 +117,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -307,8 +307,8 @@ pub struct RedisFirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for RedisFirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisFirewallRuleListResult { @@ -443,8 +443,8 @@ pub struct RedisLinkedServerWithPropertiesList { pub next_link: Option, } impl azure_core::Continuable for RedisLinkedServerWithPropertiesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisLinkedServerWithPropertiesList { @@ -463,8 +463,8 @@ pub struct RedisListResult { pub next_link: Option, } impl azure_core::Continuable for RedisListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisListResult { @@ -499,8 +499,8 @@ pub struct RedisPatchScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for RedisPatchScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisPatchScheduleListResult { diff --git a/services/mgmt/redis/src/package_2018_03/operations.rs b/services/mgmt/redis/src/package_2018_03/operations.rs index 317175e6f1..6aefe6ea20 100644 --- a/services/mgmt/redis/src/package_2018_03/operations.rs +++ b/services/mgmt/redis/src/package_2018_03/operations.rs @@ -112,9 +112,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -133,6 +133,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -693,9 +696,9 @@ pub mod redis { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -714,6 +717,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -767,9 +773,9 @@ pub mod redis { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -788,6 +794,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1188,9 +1197,9 @@ pub mod firewall_rules { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1209,6 +1218,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1506,9 +1518,9 @@ pub mod patch_schedules { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1527,6 +1539,9 @@ pub mod patch_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1994,9 +2009,9 @@ pub mod linked_server { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2015,6 +2030,9 @@ pub mod linked_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redis/src/package_2019_07_preview/models.rs b/services/mgmt/redis/src/package_2019_07_preview/models.rs index 49b42f5c2f..10be6b8f08 100644 --- a/services/mgmt/redis/src/package_2019_07_preview/models.rs +++ b/services/mgmt/redis/src/package_2019_07_preview/models.rs @@ -117,8 +117,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -310,8 +310,8 @@ pub struct RedisFirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for RedisFirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisFirewallRuleListResult { @@ -470,8 +470,8 @@ pub struct RedisLinkedServerWithPropertiesList { pub next_link: Option, } impl azure_core::Continuable for RedisLinkedServerWithPropertiesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisLinkedServerWithPropertiesList { @@ -490,8 +490,8 @@ pub struct RedisListResult { pub next_link: Option, } impl azure_core::Continuable for RedisListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisListResult { @@ -526,8 +526,8 @@ pub struct RedisPatchScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for RedisPatchScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisPatchScheduleListResult { diff --git a/services/mgmt/redis/src/package_2019_07_preview/operations.rs b/services/mgmt/redis/src/package_2019_07_preview/operations.rs index 8406d0fd67..0ca6b523c4 100644 --- a/services/mgmt/redis/src/package_2019_07_preview/operations.rs +++ b/services/mgmt/redis/src/package_2019_07_preview/operations.rs @@ -112,9 +112,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -133,6 +133,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -693,9 +696,9 @@ pub mod redis { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -714,6 +717,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -767,9 +773,9 @@ pub mod redis { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -788,6 +794,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1188,9 +1197,9 @@ pub mod firewall_rules { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1209,6 +1218,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1506,9 +1518,9 @@ pub mod patch_schedules { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1527,6 +1539,9 @@ pub mod patch_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1994,9 +2009,9 @@ pub mod linked_server { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2015,6 +2030,9 @@ pub mod linked_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redis/src/package_2020_06/models.rs b/services/mgmt/redis/src/package_2020_06/models.rs index d0838794ea..271512c9fd 100644 --- a/services/mgmt/redis/src/package_2020_06/models.rs +++ b/services/mgmt/redis/src/package_2020_06/models.rs @@ -65,7 +65,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -173,8 +173,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -216,7 +216,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -349,7 +349,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -665,8 +665,8 @@ pub struct RedisFirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for RedisFirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisFirewallRuleListResult { @@ -825,8 +825,8 @@ pub struct RedisLinkedServerWithPropertiesList { pub next_link: Option, } impl azure_core::Continuable for RedisLinkedServerWithPropertiesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisLinkedServerWithPropertiesList { @@ -845,8 +845,8 @@ pub struct RedisListResult { pub next_link: Option, } impl azure_core::Continuable for RedisListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisListResult { @@ -881,8 +881,8 @@ pub struct RedisPatchScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for RedisPatchScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisPatchScheduleListResult { diff --git a/services/mgmt/redis/src/package_2020_06/operations.rs b/services/mgmt/redis/src/package_2020_06/operations.rs index bf1e844e24..96ce5716c0 100644 --- a/services/mgmt/redis/src/package_2020_06/operations.rs +++ b/services/mgmt/redis/src/package_2020_06/operations.rs @@ -118,9 +118,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -139,6 +139,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -699,9 +702,9 @@ pub mod redis { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -720,6 +723,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -773,9 +779,9 @@ pub mod redis { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -794,6 +800,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1194,9 +1203,9 @@ pub mod firewall_rules { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1215,6 +1224,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1512,9 +1524,9 @@ pub mod patch_schedules { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1533,6 +1545,9 @@ pub mod patch_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2005,9 +2020,9 @@ pub mod linked_server { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2026,6 +2041,9 @@ pub mod linked_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redis/src/package_2020_12/models.rs b/services/mgmt/redis/src/package_2020_12/models.rs index f6a95acbe5..524089149f 100644 --- a/services/mgmt/redis/src/package_2020_12/models.rs +++ b/services/mgmt/redis/src/package_2020_12/models.rs @@ -65,7 +65,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -119,8 +119,8 @@ pub struct NotificationListResponse { pub next_link: Option, } impl azure_core::Continuable for NotificationListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationListResponse { @@ -178,8 +178,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -221,7 +221,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -354,7 +354,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -679,8 +679,8 @@ pub struct RedisFirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for RedisFirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisFirewallRuleListResult { @@ -842,8 +842,8 @@ pub struct RedisLinkedServerWithPropertiesList { pub next_link: Option, } impl azure_core::Continuable for RedisLinkedServerWithPropertiesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisLinkedServerWithPropertiesList { @@ -862,8 +862,8 @@ pub struct RedisListResult { pub next_link: Option, } impl azure_core::Continuable for RedisListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisListResult { @@ -902,8 +902,8 @@ pub struct RedisPatchScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for RedisPatchScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisPatchScheduleListResult { diff --git a/services/mgmt/redis/src/package_2020_12/operations.rs b/services/mgmt/redis/src/package_2020_12/operations.rs index de9e1927cd..b2cfb08f78 100644 --- a/services/mgmt/redis/src/package_2020_12/operations.rs +++ b/services/mgmt/redis/src/package_2020_12/operations.rs @@ -118,9 +118,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -139,6 +139,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -421,9 +424,9 @@ pub mod redis { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -442,6 +445,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -725,9 +731,9 @@ pub mod redis { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -746,6 +752,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -799,9 +808,9 @@ pub mod redis { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -820,6 +829,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1220,9 +1232,9 @@ pub mod firewall_rules { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1241,6 +1253,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1538,9 +1553,9 @@ pub mod patch_schedules { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1559,6 +1574,9 @@ pub mod patch_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2031,9 +2049,9 @@ pub mod linked_server { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2052,6 +2070,9 @@ pub mod linked_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redis/src/package_2021_06/models.rs b/services/mgmt/redis/src/package_2021_06/models.rs index be74e60385..b04ac5da7d 100644 --- a/services/mgmt/redis/src/package_2021_06/models.rs +++ b/services/mgmt/redis/src/package_2021_06/models.rs @@ -65,7 +65,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -189,8 +189,8 @@ pub struct NotificationListResponse { pub next_link: Option, } impl azure_core::Continuable for NotificationListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationListResponse { @@ -248,8 +248,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -349,7 +349,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -482,7 +482,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -821,8 +821,8 @@ pub struct RedisFirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for RedisFirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisFirewallRuleListResult { @@ -984,8 +984,8 @@ pub struct RedisLinkedServerWithPropertiesList { pub next_link: Option, } impl azure_core::Continuable for RedisLinkedServerWithPropertiesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisLinkedServerWithPropertiesList { @@ -1004,8 +1004,8 @@ pub struct RedisListResult { pub next_link: Option, } impl azure_core::Continuable for RedisListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisListResult { @@ -1044,8 +1044,8 @@ pub struct RedisPatchScheduleListResult { pub next_link: Option, } impl azure_core::Continuable for RedisPatchScheduleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RedisPatchScheduleListResult { diff --git a/services/mgmt/redis/src/package_2021_06/operations.rs b/services/mgmt/redis/src/package_2021_06/operations.rs index 7b89f97ac5..e438e826e3 100644 --- a/services/mgmt/redis/src/package_2021_06/operations.rs +++ b/services/mgmt/redis/src/package_2021_06/operations.rs @@ -121,9 +121,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -142,6 +142,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -424,9 +427,9 @@ pub mod redis { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -445,6 +448,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -728,9 +734,9 @@ pub mod redis { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -749,6 +755,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -802,9 +811,9 @@ pub mod redis { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -823,6 +832,9 @@ pub mod redis { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1223,9 +1235,9 @@ pub mod firewall_rules { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1244,6 +1256,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1541,9 +1556,9 @@ pub mod patch_schedules { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1562,6 +1577,9 @@ pub mod patch_schedules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2034,9 +2052,9 @@ pub mod linked_server { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2055,6 +2073,9 @@ pub mod linked_server { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redisenterprise/src/package_2020_10_01_preview/models.rs b/services/mgmt/redisenterprise/src/package_2020_10_01_preview/models.rs index b0b9d123a0..29c039f53d 100644 --- a/services/mgmt/redisenterprise/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/redisenterprise/src/package_2020_10_01_preview/models.rs @@ -54,8 +54,8 @@ pub struct ClusterList { pub next_link: Option, } impl azure_core::Continuable for ClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterList { @@ -133,8 +133,8 @@ pub struct DatabaseList { pub next_link: Option, } impl azure_core::Continuable for DatabaseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseList { @@ -363,7 +363,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -553,8 +553,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -623,7 +623,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -756,7 +756,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/redisenterprise/src/package_2020_10_01_preview/operations.rs b/services/mgmt/redisenterprise/src/package_2020_10_01_preview/operations.rs index a566692fb2..842dc5a830 100644 --- a/services/mgmt/redisenterprise/src/package_2020_10_01_preview/operations.rs +++ b/services/mgmt/redisenterprise/src/package_2020_10_01_preview/operations.rs @@ -115,9 +115,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -573,9 +576,9 @@ pub mod redis_enterprise { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -594,6 +597,9 @@ pub mod redis_enterprise { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -647,9 +653,9 @@ pub mod redis_enterprise { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -668,6 +674,9 @@ pub mod redis_enterprise { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -874,9 +883,9 @@ pub mod databases { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -895,6 +904,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redisenterprise/src/package_2021_03/models.rs b/services/mgmt/redisenterprise/src/package_2021_03/models.rs index 56f19db04c..5f74436b2f 100644 --- a/services/mgmt/redisenterprise/src/package_2021_03/models.rs +++ b/services/mgmt/redisenterprise/src/package_2021_03/models.rs @@ -54,8 +54,8 @@ pub struct ClusterList { pub next_link: Option, } impl azure_core::Continuable for ClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterList { @@ -178,8 +178,8 @@ pub struct DatabaseList { pub next_link: Option, } impl azure_core::Continuable for DatabaseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseList { @@ -411,7 +411,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -601,8 +601,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -776,7 +776,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -909,7 +909,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/redisenterprise/src/package_2021_03/operations.rs b/services/mgmt/redisenterprise/src/package_2021_03/operations.rs index ab33808b5b..cd21a81539 100644 --- a/services/mgmt/redisenterprise/src/package_2021_03/operations.rs +++ b/services/mgmt/redisenterprise/src/package_2021_03/operations.rs @@ -115,9 +115,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -573,9 +576,9 @@ pub mod redis_enterprise { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -594,6 +597,9 @@ pub mod redis_enterprise { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -647,9 +653,9 @@ pub mod redis_enterprise { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -668,6 +674,9 @@ pub mod redis_enterprise { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -874,9 +883,9 @@ pub mod databases { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -895,6 +904,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redisenterprise/src/package_2021_08/models.rs b/services/mgmt/redisenterprise/src/package_2021_08/models.rs index e911370fd8..fd826dd917 100644 --- a/services/mgmt/redisenterprise/src/package_2021_08/models.rs +++ b/services/mgmt/redisenterprise/src/package_2021_08/models.rs @@ -54,8 +54,8 @@ pub struct ClusterList { pub next_link: Option, } impl azure_core::Continuable for ClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterList { @@ -178,8 +178,8 @@ pub struct DatabaseList { pub next_link: Option, } impl azure_core::Continuable for DatabaseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseList { @@ -411,7 +411,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -601,8 +601,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -776,7 +776,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -909,7 +909,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/redisenterprise/src/package_2021_08/operations.rs b/services/mgmt/redisenterprise/src/package_2021_08/operations.rs index 992cfb93c9..21230a90e6 100644 --- a/services/mgmt/redisenterprise/src/package_2021_08/operations.rs +++ b/services/mgmt/redisenterprise/src/package_2021_08/operations.rs @@ -115,9 +115,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -573,9 +576,9 @@ pub mod redis_enterprise { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -594,6 +597,9 @@ pub mod redis_enterprise { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -647,9 +653,9 @@ pub mod redis_enterprise { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -668,6 +674,9 @@ pub mod redis_enterprise { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -874,9 +883,9 @@ pub mod databases { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -895,6 +904,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redisenterprise/src/package_2022_01/models.rs b/services/mgmt/redisenterprise/src/package_2022_01/models.rs index 970296a650..ac81bdba11 100644 --- a/services/mgmt/redisenterprise/src/package_2022_01/models.rs +++ b/services/mgmt/redisenterprise/src/package_2022_01/models.rs @@ -54,8 +54,8 @@ pub struct ClusterList { pub next_link: Option, } impl azure_core::Continuable for ClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterList { @@ -178,8 +178,8 @@ pub struct DatabaseList { pub next_link: Option, } impl azure_core::Continuable for DatabaseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseList { @@ -429,7 +429,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -691,8 +691,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -866,7 +866,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -999,7 +999,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/redisenterprise/src/package_2022_01/operations.rs b/services/mgmt/redisenterprise/src/package_2022_01/operations.rs index 0acb0697da..d45f63a848 100644 --- a/services/mgmt/redisenterprise/src/package_2022_01/operations.rs +++ b/services/mgmt/redisenterprise/src/package_2022_01/operations.rs @@ -115,9 +115,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -573,9 +576,9 @@ pub mod redis_enterprise { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -594,6 +597,9 @@ pub mod redis_enterprise { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -647,9 +653,9 @@ pub mod redis_enterprise { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -668,6 +674,9 @@ pub mod redis_enterprise { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -891,9 +900,9 @@ pub mod databases { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -912,6 +921,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/redisenterprise/src/package_preview_2021_02/models.rs b/services/mgmt/redisenterprise/src/package_preview_2021_02/models.rs index d4c219f2c6..441227bce7 100644 --- a/services/mgmt/redisenterprise/src/package_preview_2021_02/models.rs +++ b/services/mgmt/redisenterprise/src/package_preview_2021_02/models.rs @@ -54,8 +54,8 @@ pub struct ClusterList { pub next_link: Option, } impl azure_core::Continuable for ClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterList { @@ -178,8 +178,8 @@ pub struct DatabaseList { pub next_link: Option, } impl azure_core::Continuable for DatabaseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseList { @@ -429,7 +429,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -691,8 +691,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -866,7 +866,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -999,7 +999,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/redisenterprise/src/package_preview_2021_02/operations.rs b/services/mgmt/redisenterprise/src/package_preview_2021_02/operations.rs index 0f4a55e60b..56c4705ffd 100644 --- a/services/mgmt/redisenterprise/src/package_preview_2021_02/operations.rs +++ b/services/mgmt/redisenterprise/src/package_preview_2021_02/operations.rs @@ -115,9 +115,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Cache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -573,9 +576,9 @@ pub mod redis_enterprise { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -594,6 +597,9 @@ pub mod redis_enterprise { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -647,9 +653,9 @@ pub mod redis_enterprise { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -668,6 +674,9 @@ pub mod redis_enterprise { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -891,9 +900,9 @@ pub mod databases { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -912,6 +921,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/relay/src/package_2016_07/models.rs b/services/mgmt/relay/src/package_2016_07/models.rs index 90bc2dcc55..796545187d 100644 --- a/services/mgmt/relay/src/package_2016_07/models.rs +++ b/services/mgmt/relay/src/package_2016_07/models.rs @@ -55,8 +55,8 @@ pub struct AuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationRuleListResult { @@ -115,7 +115,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -149,8 +149,8 @@ pub struct HybridConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for HybridConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridConnectionListResult { @@ -229,8 +229,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -322,8 +322,8 @@ pub struct RelayNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for RelayNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelayNamespaceListResult { @@ -602,8 +602,8 @@ pub struct WcfRelaysListResult { pub next_link: Option, } impl azure_core::Continuable for WcfRelaysListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WcfRelaysListResult { diff --git a/services/mgmt/relay/src/package_2016_07/operations.rs b/services/mgmt/relay/src/package_2016_07/operations.rs index 628da74f98..bfdb81954f 100644 --- a/services/mgmt/relay/src/package_2016_07/operations.rs +++ b/services/mgmt/relay/src/package_2016_07/operations.rs @@ -109,9 +109,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Relay/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -443,9 +446,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -464,6 +467,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -519,9 +525,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -540,6 +546,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -819,9 +828,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -840,6 +849,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -897,9 +909,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -918,6 +930,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -1502,9 +1517,9 @@ pub mod hybrid_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1523,6 +1538,9 @@ pub mod hybrid_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1740,9 +1758,9 @@ pub mod hybrid_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Relay/namespaces/{}/HybridConnections/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . hybrid_connection_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1761,6 +1779,9 @@ pub mod hybrid_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1813,9 +1834,9 @@ pub mod hybrid_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Relay/namespaces/{}/HybridConnections/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . hybrid_connection_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1834,6 +1855,9 @@ pub mod hybrid_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2389,9 +2413,9 @@ pub mod wcf_relays { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2410,6 +2434,9 @@ pub mod wcf_relays { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2639,9 +2666,9 @@ pub mod wcf_relays { &this.relay_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2660,6 +2687,9 @@ pub mod wcf_relays { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2719,9 +2749,9 @@ pub mod wcf_relays { &this.relay_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2740,6 +2770,9 @@ pub mod wcf_relays { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/mgmt/relay/src/package_2017_04/models.rs b/services/mgmt/relay/src/package_2017_04/models.rs index b4474c8915..cd683ba7ed 100644 --- a/services/mgmt/relay/src/package_2017_04/models.rs +++ b/services/mgmt/relay/src/package_2017_04/models.rs @@ -69,8 +69,8 @@ pub struct AuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationRuleListResult { @@ -118,7 +118,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -179,8 +179,8 @@ pub struct HybridConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for HybridConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridConnectionListResult { @@ -235,8 +235,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -300,8 +300,8 @@ pub struct RelayNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for RelayNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelayNamespaceListResult { @@ -520,8 +520,8 @@ pub struct WcfRelaysListResult { pub next_link: Option, } impl azure_core::Continuable for WcfRelaysListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WcfRelaysListResult { diff --git a/services/mgmt/relay/src/package_2017_04/operations.rs b/services/mgmt/relay/src/package_2017_04/operations.rs index c3312ff2c4..e2177e2a36 100644 --- a/services/mgmt/relay/src/package_2017_04/operations.rs +++ b/services/mgmt/relay/src/package_2017_04/operations.rs @@ -109,9 +109,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Relay/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -415,9 +418,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -436,6 +439,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -491,9 +497,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -512,6 +518,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -804,9 +813,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -825,6 +834,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1321,9 +1333,9 @@ pub mod hybrid_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1342,6 +1354,9 @@ pub mod hybrid_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1559,9 +1574,9 @@ pub mod hybrid_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Relay/namespaces/{}/hybridConnections/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . hybrid_connection_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1580,6 +1595,9 @@ pub mod hybrid_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2053,9 +2071,9 @@ pub mod wcf_relays { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2074,6 +2092,9 @@ pub mod wcf_relays { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2303,9 +2324,9 @@ pub mod wcf_relays { &this.relay_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2324,6 +2345,9 @@ pub mod wcf_relays { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/relay/src/package_2018_01_preview/models.rs b/services/mgmt/relay/src/package_2018_01_preview/models.rs index a1aa51a9e3..2a49c64220 100644 --- a/services/mgmt/relay/src/package_2018_01_preview/models.rs +++ b/services/mgmt/relay/src/package_2018_01_preview/models.rs @@ -44,7 +44,7 @@ pub struct ErrorResponse { pub message: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -225,8 +225,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -301,7 +301,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -442,7 +442,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -519,8 +519,8 @@ pub struct RelayNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for RelayNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelayNamespaceListResult { diff --git a/services/mgmt/relay/src/package_2018_01_preview/operations.rs b/services/mgmt/relay/src/package_2018_01_preview/operations.rs index caa9f4239c..b99e5d9cfd 100644 --- a/services/mgmt/relay/src/package_2018_01_preview/operations.rs +++ b/services/mgmt/relay/src/package_2018_01_preview/operations.rs @@ -109,9 +109,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Relay/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -130,6 +130,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -351,9 +354,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -372,6 +375,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -427,9 +433,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -448,6 +454,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -912,9 +921,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -933,6 +942,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1250,9 +1262,9 @@ pub mod private_link_resources_get { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1271,6 +1283,9 @@ pub mod private_link_resources_get { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/relay/src/package_2021_11_01/models.rs b/services/mgmt/relay/src/package_2021_11_01/models.rs index fe757b9193..16ac7e7907 100644 --- a/services/mgmt/relay/src/package_2021_11_01/models.rs +++ b/services/mgmt/relay/src/package_2021_11_01/models.rs @@ -70,8 +70,8 @@ pub struct AuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for AuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AuthorizationRuleListResult { @@ -214,7 +214,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -278,8 +278,8 @@ pub struct HybridConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for HybridConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridConnectionListResult { @@ -471,8 +471,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -520,8 +520,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -761,8 +761,8 @@ pub struct RelayNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for RelayNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelayNamespaceListResult { @@ -1126,8 +1126,8 @@ pub struct WcfRelaysListResult { pub next_link: Option, } impl azure_core::Continuable for WcfRelaysListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WcfRelaysListResult { diff --git a/services/mgmt/relay/src/package_2021_11_01/operations.rs b/services/mgmt/relay/src/package_2021_11_01/operations.rs index a7ff15bfaf..c11cb27e0b 100644 --- a/services/mgmt/relay/src/package_2021_11_01/operations.rs +++ b/services/mgmt/relay/src/package_2021_11_01/operations.rs @@ -325,9 +325,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -346,6 +346,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -718,9 +721,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -739,6 +742,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -794,9 +800,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -815,6 +821,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1378,9 +1387,9 @@ pub mod hybrid_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Relay/namespaces/{}/hybridConnections/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . hybrid_connection_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1399,6 +1408,9 @@ pub mod hybrid_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1702,9 +1714,9 @@ pub mod hybrid_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1723,6 +1735,9 @@ pub mod hybrid_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2117,9 +2132,9 @@ pub mod wcf_relays { &this.relay_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2138,6 +2153,9 @@ pub mod wcf_relays { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2441,9 +2459,9 @@ pub mod wcf_relays { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2462,6 +2480,9 @@ pub mod wcf_relays { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2755,9 +2776,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2776,6 +2797,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3156,9 +3180,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Relay/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3177,6 +3201,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/reservations/src/package_2020_11_preview/models.rs b/services/mgmt/reservations/src/package_2020_11_preview/models.rs index 1140c77b2e..8f7e9661e0 100644 --- a/services/mgmt/reservations/src/package_2020_11_preview/models.rs +++ b/services/mgmt/reservations/src/package_2020_11_preview/models.rs @@ -576,7 +576,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -768,7 +768,7 @@ pub struct ExceptionResponse { pub error: Option, } impl azure_core::Continuable for ExceptionResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1031,8 +1031,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -1333,8 +1333,8 @@ pub struct QuotaLimits { pub next_link: Option, } impl azure_core::Continuable for QuotaLimits { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaLimits { @@ -1419,8 +1419,8 @@ pub struct QuotaRequestDetailsList { pub next_link: Option, } impl azure_core::Continuable for QuotaRequestDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaRequestDetailsList { @@ -1662,8 +1662,8 @@ pub struct ReservationList { pub next_link: Option, } impl azure_core::Continuable for ReservationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationList { @@ -1713,8 +1713,8 @@ pub struct ReservationOrderList { pub next_link: Option, } impl azure_core::Continuable for ReservationOrderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationOrderList { diff --git a/services/mgmt/reservations/src/package_2020_11_preview/operations.rs b/services/mgmt/reservations/src/package_2020_11_preview/operations.rs index af261e4722..631fcc18d2 100644 --- a/services/mgmt/reservations/src/package_2020_11_preview/operations.rs +++ b/services/mgmt/reservations/src/package_2020_11_preview/operations.rs @@ -375,9 +375,9 @@ pub mod quota { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -396,6 +396,9 @@ pub mod quota { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -559,9 +562,9 @@ pub mod quota_request_status { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -580,6 +583,9 @@ pub mod quota_request_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1006,9 +1012,9 @@ pub mod reservation { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1027,6 +1033,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1198,9 +1207,9 @@ pub mod reservation { &this.reservation_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1219,6 +1228,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1488,9 +1500,9 @@ pub mod reservation_order { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1509,6 +1521,9 @@ pub mod reservation_order { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1734,9 +1749,9 @@ pub mod operation { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Capacity/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1755,6 +1770,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/reservations/src/package_2021_07_01/models.rs b/services/mgmt/reservations/src/package_2021_07_01/models.rs index c64dc13247..c98932f9e3 100644 --- a/services/mgmt/reservations/src/package_2021_07_01/models.rs +++ b/services/mgmt/reservations/src/package_2021_07_01/models.rs @@ -503,7 +503,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -538,7 +538,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -734,7 +734,7 @@ pub struct ExceptionResponse { pub error: Option, } impl azure_core::Continuable for ExceptionResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1049,8 +1049,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -1369,8 +1369,8 @@ pub struct QuotaLimits { pub next_link: Option, } impl azure_core::Continuable for QuotaLimits { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaLimits { @@ -1455,8 +1455,8 @@ pub struct QuotaRequestDetailsList { pub next_link: Option, } impl azure_core::Continuable for QuotaRequestDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaRequestDetailsList { @@ -1700,8 +1700,8 @@ pub struct ReservationList { pub next_link: Option, } impl azure_core::Continuable for ReservationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationList { @@ -1751,8 +1751,8 @@ pub struct ReservationOrderList { pub next_link: Option, } impl azure_core::Continuable for ReservationOrderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationOrderList { @@ -2131,8 +2131,8 @@ pub struct ReservationsListResult { pub summary: Option, } impl azure_core::Continuable for ReservationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationsListResult { diff --git a/services/mgmt/reservations/src/package_2021_07_01/operations.rs b/services/mgmt/reservations/src/package_2021_07_01/operations.rs index a8407f1199..4d1be47425 100644 --- a/services/mgmt/reservations/src/package_2021_07_01/operations.rs +++ b/services/mgmt/reservations/src/package_2021_07_01/operations.rs @@ -368,9 +368,9 @@ pub mod reservation { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -389,6 +389,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -560,9 +563,9 @@ pub mod reservation { &this.reservation_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -581,6 +584,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -660,9 +666,9 @@ pub mod reservation { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Capacity/reservations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -681,6 +687,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -973,9 +982,9 @@ pub mod reservation_order { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -994,6 +1003,9 @@ pub mod reservation_order { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1219,9 +1231,9 @@ pub mod operation { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Capacity/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1240,6 +1252,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1682,9 +1697,9 @@ pub mod quota { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1703,6 +1718,9 @@ pub mod quota { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1866,9 +1884,9 @@ pub mod quota_request_status { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1887,6 +1905,9 @@ pub mod quota_request_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/reservations/src/package_2022_03/models.rs b/services/mgmt/reservations/src/package_2022_03/models.rs index 52953ec8a4..040705be9f 100644 --- a/services/mgmt/reservations/src/package_2022_03/models.rs +++ b/services/mgmt/reservations/src/package_2022_03/models.rs @@ -503,7 +503,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -538,7 +538,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -734,7 +734,7 @@ pub struct ExceptionResponse { pub error: Option, } impl azure_core::Continuable for ExceptionResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1049,8 +1049,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -1369,8 +1369,8 @@ pub struct QuotaLimits { pub next_link: Option, } impl azure_core::Continuable for QuotaLimits { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaLimits { @@ -1455,8 +1455,8 @@ pub struct QuotaRequestDetailsList { pub next_link: Option, } impl azure_core::Continuable for QuotaRequestDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaRequestDetailsList { @@ -1700,8 +1700,8 @@ pub struct ReservationList { pub next_link: Option, } impl azure_core::Continuable for ReservationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationList { @@ -1751,8 +1751,8 @@ pub struct ReservationOrderList { pub next_link: Option, } impl azure_core::Continuable for ReservationOrderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationOrderList { @@ -2134,8 +2134,8 @@ pub struct ReservationsListResult { pub summary: Option, } impl azure_core::Continuable for ReservationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationsListResult { diff --git a/services/mgmt/reservations/src/package_2022_03/operations.rs b/services/mgmt/reservations/src/package_2022_03/operations.rs index 61002b8bb4..49aaff0e43 100644 --- a/services/mgmt/reservations/src/package_2022_03/operations.rs +++ b/services/mgmt/reservations/src/package_2022_03/operations.rs @@ -368,9 +368,9 @@ pub mod reservation { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -389,6 +389,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -560,9 +563,9 @@ pub mod reservation { &this.reservation_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -581,6 +584,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -660,9 +666,9 @@ pub mod reservation { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Capacity/reservations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -681,6 +687,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1000,9 +1009,9 @@ pub mod reservation_order { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1021,6 +1030,9 @@ pub mod reservation_order { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1246,9 +1258,9 @@ pub mod operation { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Capacity/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1267,6 +1279,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1709,9 +1724,9 @@ pub mod quota { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1730,6 +1745,9 @@ pub mod quota { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1893,9 +1911,9 @@ pub mod quota_request_status { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1914,6 +1932,9 @@ pub mod quota_request_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/reservations/src/package_preview_2019_04/models.rs b/services/mgmt/reservations/src/package_preview_2019_04/models.rs index 0e09403681..6f7666a3c2 100644 --- a/services/mgmt/reservations/src/package_preview_2019_04/models.rs +++ b/services/mgmt/reservations/src/package_preview_2019_04/models.rs @@ -236,7 +236,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -542,8 +542,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -867,8 +867,8 @@ pub struct ReservationList { pub next_link: Option, } impl azure_core::Continuable for ReservationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationList { @@ -918,8 +918,8 @@ pub struct ReservationOrderList { pub next_link: Option, } impl azure_core::Continuable for ReservationOrderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationOrderList { diff --git a/services/mgmt/reservations/src/package_preview_2019_04/operations.rs b/services/mgmt/reservations/src/package_preview_2019_04/operations.rs index 404aa7c910..a121e8150a 100644 --- a/services/mgmt/reservations/src/package_preview_2019_04/operations.rs +++ b/services/mgmt/reservations/src/package_preview_2019_04/operations.rs @@ -361,9 +361,9 @@ pub mod reservation { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -382,6 +382,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -553,9 +556,9 @@ pub mod reservation { &this.reservation_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -574,6 +577,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -925,9 +931,9 @@ pub mod reservation_order { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -946,6 +952,9 @@ pub mod reservation_order { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1121,9 +1130,9 @@ pub mod operation { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Capacity/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1142,6 +1151,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/reservations/src/package_preview_2019_07_19/models.rs b/services/mgmt/reservations/src/package_preview_2019_07_19/models.rs index a75fa6f5c1..d0e7d101cd 100644 --- a/services/mgmt/reservations/src/package_preview_2019_07_19/models.rs +++ b/services/mgmt/reservations/src/package_preview_2019_07_19/models.rs @@ -408,7 +408,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -600,7 +600,7 @@ pub struct ExceptionResponse { pub error: Option, } impl azure_core::Continuable for ExceptionResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -731,8 +731,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -990,8 +990,8 @@ pub struct QuotaLimits { pub next_link: Option, } impl azure_core::Continuable for QuotaLimits { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaLimits { @@ -1076,8 +1076,8 @@ pub struct QuotaRequestDetailsList { pub next_link: Option, } impl azure_core::Continuable for QuotaRequestDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaRequestDetailsList { @@ -1319,8 +1319,8 @@ pub struct ReservationList { pub next_link: Option, } impl azure_core::Continuable for ReservationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationList { @@ -1370,8 +1370,8 @@ pub struct ReservationOrderList { pub next_link: Option, } impl azure_core::Continuable for ReservationOrderList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReservationOrderList { diff --git a/services/mgmt/reservations/src/package_preview_2019_07_19/operations.rs b/services/mgmt/reservations/src/package_preview_2019_07_19/operations.rs index 5ada3d1f24..5584a9b3a5 100644 --- a/services/mgmt/reservations/src/package_preview_2019_07_19/operations.rs +++ b/services/mgmt/reservations/src/package_preview_2019_07_19/operations.rs @@ -369,9 +369,9 @@ pub mod quota { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -390,6 +390,9 @@ pub mod quota { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -553,9 +556,9 @@ pub mod quota_request_status { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -574,6 +577,9 @@ pub mod quota_request_status { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1016,9 +1022,9 @@ pub mod reservation { &this.reservation_order_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1037,6 +1043,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1208,9 +1217,9 @@ pub mod reservation { &this.reservation_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1229,6 +1238,9 @@ pub mod reservation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1580,9 +1592,9 @@ pub mod reservation_order { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1601,6 +1613,9 @@ pub mod reservation_order { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1776,9 +1791,9 @@ pub mod operation { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Capacity/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1797,6 +1812,9 @@ pub mod operation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resourceconnector/src/package_2021_10_31_preview/models.rs b/services/mgmt/resourceconnector/src/package_2021_10_31_preview/models.rs index 495a95aba1..c239ee4b96 100644 --- a/services/mgmt/resourceconnector/src/package_2021_10_31_preview/models.rs +++ b/services/mgmt/resourceconnector/src/package_2021_10_31_preview/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -282,8 +282,8 @@ pub struct ApplianceListResult { pub value: Vec, } impl azure_core::Continuable for ApplianceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplianceListResult { @@ -343,8 +343,8 @@ pub struct ApplianceOperationsList { pub value: Vec, } impl azure_core::Continuable for ApplianceOperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplianceOperationsList { diff --git a/services/mgmt/resourceconnector/src/package_2021_10_31_preview/operations.rs b/services/mgmt/resourceconnector/src/package_2021_10_31_preview/operations.rs index 5dcf17d86f..844376c48b 100644 --- a/services/mgmt/resourceconnector/src/package_2021_10_31_preview/operations.rs +++ b/services/mgmt/resourceconnector/src/package_2021_10_31_preview/operations.rs @@ -196,9 +196,9 @@ pub mod appliances { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -217,6 +217,9 @@ pub mod appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -270,9 +273,9 @@ pub mod appliances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -291,6 +294,9 @@ pub mod appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -346,9 +352,9 @@ pub mod appliances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -367,6 +373,9 @@ pub mod appliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resourcegraph/src/package_2021_03/models.rs b/services/mgmt/resourcegraph/src/package_2021_03/models.rs index 37d2fc293a..4c2b4a795b 100644 --- a/services/mgmt/resourcegraph/src/package_2021_03/models.rs +++ b/services/mgmt/resourcegraph/src/package_2021_03/models.rs @@ -71,7 +71,7 @@ pub struct ErrorResponse { pub error: Error, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -231,7 +231,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/resourcegraph/src/package_preview_2020_04/models.rs b/services/mgmt/resourcegraph/src/package_preview_2020_04/models.rs index 0952c53058..019969e8d5 100644 --- a/services/mgmt/resourcegraph/src/package_preview_2020_04/models.rs +++ b/services/mgmt/resourcegraph/src/package_preview_2020_04/models.rs @@ -84,7 +84,7 @@ pub struct ErrorResponse { pub error: Error, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -244,7 +244,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/resourcegraph/src/package_preview_2020_09/models.rs b/services/mgmt/resourcegraph/src/package_preview_2020_09/models.rs index 4f72a4d83b..85b74dcb2c 100644 --- a/services/mgmt/resourcegraph/src/package_preview_2020_09/models.rs +++ b/services/mgmt/resourcegraph/src/package_preview_2020_09/models.rs @@ -84,7 +84,7 @@ pub struct ErrorResponse { pub error: Error, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -244,7 +244,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/resourcegraph/src/package_preview_2021_03/models.rs b/services/mgmt/resourcegraph/src/package_preview_2021_03/models.rs index d000da336d..69288cd8df 100644 --- a/services/mgmt/resourcegraph/src/package_preview_2021_03/models.rs +++ b/services/mgmt/resourcegraph/src/package_preview_2021_03/models.rs @@ -84,7 +84,7 @@ pub struct ErrorResponse { pub error: Error, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -244,7 +244,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/resourcegraph/src/package_preview_2021_06/models.rs b/services/mgmt/resourcegraph/src/package_preview_2021_06/models.rs index 88a9d3d889..4b7a111ef2 100644 --- a/services/mgmt/resourcegraph/src/package_preview_2021_06/models.rs +++ b/services/mgmt/resourcegraph/src/package_preview_2021_06/models.rs @@ -86,7 +86,7 @@ pub struct ErrorResponse { pub error: Error, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -246,7 +246,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/resourcehealth/src/package_2017_07/models.rs b/services/mgmt/resourcehealth/src/package_2017_07/models.rs index d1c1ba5a56..92eb15a706 100644 --- a/services/mgmt/resourcehealth/src/package_2017_07/models.rs +++ b/services/mgmt/resourcehealth/src/package_2017_07/models.rs @@ -18,7 +18,7 @@ pub struct ErrorResponse { pub details: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -173,8 +173,8 @@ pub struct AvailabilityStatusListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilityStatusListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilityStatusListResult { @@ -229,8 +229,8 @@ pub struct EmergingIssueListResult { pub next_link: Option, } impl azure_core::Continuable for EmergingIssueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EmergingIssueListResult { diff --git a/services/mgmt/resourcehealth/src/package_2017_07/operations.rs b/services/mgmt/resourcehealth/src/package_2017_07/operations.rs index 2ec81ceeb7..1199268c0d 100644 --- a/services/mgmt/resourcehealth/src/package_2017_07/operations.rs +++ b/services/mgmt/resourcehealth/src/package_2017_07/operations.rs @@ -161,9 +161,9 @@ pub mod availability_statuses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -182,6 +182,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -253,9 +256,9 @@ pub mod availability_statuses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -274,6 +277,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -407,9 +413,9 @@ pub mod availability_statuses { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -428,6 +434,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -583,9 +592,9 @@ pub mod child_availability_statuses { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -604,6 +613,9 @@ pub mod child_availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -687,9 +699,9 @@ pub mod child_resources { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -708,6 +720,9 @@ pub mod child_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -881,9 +896,9 @@ pub mod emerging_issues { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -902,6 +917,9 @@ pub mod emerging_issues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resourcehealth/src/package_2018_07_01/models.rs b/services/mgmt/resourcehealth/src/package_2018_07_01/models.rs index d4eb5fcdc1..403f06901b 100644 --- a/services/mgmt/resourcehealth/src/package_2018_07_01/models.rs +++ b/services/mgmt/resourcehealth/src/package_2018_07_01/models.rs @@ -18,7 +18,7 @@ pub struct ErrorResponse { pub details: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -52,8 +52,8 @@ pub struct MetadataEntityListResult { pub next_link: Option, } impl azure_core::Continuable for MetadataEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataEntityListResult { @@ -308,8 +308,8 @@ pub struct AvailabilityStatusListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilityStatusListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilityStatusListResult { @@ -364,8 +364,8 @@ pub struct EmergingIssueListResult { pub next_link: Option, } impl azure_core::Continuable for EmergingIssueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EmergingIssueListResult { @@ -723,8 +723,8 @@ pub struct Events { pub next_link: Option, } impl azure_core::Continuable for Events { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Events { diff --git a/services/mgmt/resourcehealth/src/package_2018_07_01/operations.rs b/services/mgmt/resourcehealth/src/package_2018_07_01/operations.rs index 7c8db05895..c1600358d1 100644 --- a/services/mgmt/resourcehealth/src/package_2018_07_01/operations.rs +++ b/services/mgmt/resourcehealth/src/package_2018_07_01/operations.rs @@ -146,9 +146,9 @@ pub mod events { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -167,6 +167,9 @@ pub mod events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -239,9 +242,9 @@ pub mod events { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -260,6 +263,9 @@ pub mod events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -372,9 +378,9 @@ pub mod availability_statuses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -393,6 +399,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -464,9 +473,9 @@ pub mod availability_statuses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -485,6 +494,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -618,9 +630,9 @@ pub mod availability_statuses { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -639,6 +651,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -812,9 +827,9 @@ pub mod emerging_issues { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -833,6 +848,9 @@ pub mod emerging_issues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -897,9 +915,9 @@ pub mod metadata { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ResourceHealth/metadata", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -918,6 +936,9 @@ pub mod metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resourcehealth/src/package_2018_08_preview/models.rs b/services/mgmt/resourcehealth/src/package_2018_08_preview/models.rs index 5140d49f56..2d12a197ae 100644 --- a/services/mgmt/resourcehealth/src/package_2018_08_preview/models.rs +++ b/services/mgmt/resourcehealth/src/package_2018_08_preview/models.rs @@ -18,7 +18,7 @@ pub struct ErrorResponse { pub details: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -52,8 +52,8 @@ pub struct MetadataEntityListResult { pub next_link: Option, } impl azure_core::Continuable for MetadataEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataEntityListResult { @@ -308,8 +308,8 @@ pub struct AvailabilityStatusListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilityStatusListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilityStatusListResult { @@ -364,8 +364,8 @@ pub struct EmergingIssueListResult { pub next_link: Option, } impl azure_core::Continuable for EmergingIssueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EmergingIssueListResult { @@ -723,8 +723,8 @@ pub struct Events { pub next_link: Option, } impl azure_core::Continuable for Events { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl Events { @@ -790,8 +790,8 @@ pub struct ImpactedResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ImpactedResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImpactedResourceListResult { diff --git a/services/mgmt/resourcehealth/src/package_2018_08_preview/operations.rs b/services/mgmt/resourcehealth/src/package_2018_08_preview/operations.rs index 5c9c82d9eb..11762ffbc7 100644 --- a/services/mgmt/resourcehealth/src/package_2018_08_preview/operations.rs +++ b/services/mgmt/resourcehealth/src/package_2018_08_preview/operations.rs @@ -172,9 +172,9 @@ pub mod metadata { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ResourceHealth/metadata", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -193,6 +193,9 @@ pub mod metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -307,9 +310,9 @@ pub mod emerging_issues { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -328,6 +331,9 @@ pub mod emerging_issues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -406,9 +412,9 @@ pub mod events { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -427,6 +433,9 @@ pub mod events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -488,9 +497,9 @@ pub mod events { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -509,6 +518,9 @@ pub mod events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -583,9 +595,9 @@ pub mod impacted_resources { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -604,6 +616,9 @@ pub mod impacted_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -713,9 +728,9 @@ pub mod availability_statuses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -734,6 +749,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -805,9 +823,9 @@ pub mod availability_statuses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -826,6 +844,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -959,9 +980,9 @@ pub mod availability_statuses { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -980,6 +1001,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resourcehealth/src/package_2020_05_01/models.rs b/services/mgmt/resourcehealth/src/package_2020_05_01/models.rs index 56badf8bd0..f5cd34d8a4 100644 --- a/services/mgmt/resourcehealth/src/package_2020_05_01/models.rs +++ b/services/mgmt/resourcehealth/src/package_2020_05_01/models.rs @@ -12,7 +12,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -256,8 +256,8 @@ pub struct AvailabilityStatusListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilityStatusListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilityStatusListResult { diff --git a/services/mgmt/resourcehealth/src/package_2020_05_01/operations.rs b/services/mgmt/resourcehealth/src/package_2020_05_01/operations.rs index 30a2953298..4751c61a3c 100644 --- a/services/mgmt/resourcehealth/src/package_2020_05_01/operations.rs +++ b/services/mgmt/resourcehealth/src/package_2020_05_01/operations.rs @@ -152,9 +152,9 @@ pub mod availability_statuses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -173,6 +173,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -244,9 +247,9 @@ pub mod availability_statuses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -265,6 +268,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -398,9 +404,9 @@ pub mod availability_statuses { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -419,6 +425,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resourcehealth/src/package_2020_05_01_preview/models.rs b/services/mgmt/resourcehealth/src/package_2020_05_01_preview/models.rs index 7313d986c2..704d49c71d 100644 --- a/services/mgmt/resourcehealth/src/package_2020_05_01_preview/models.rs +++ b/services/mgmt/resourcehealth/src/package_2020_05_01_preview/models.rs @@ -12,7 +12,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -256,8 +256,8 @@ pub struct AvailabilityStatusListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilityStatusListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilityStatusListResult { diff --git a/services/mgmt/resourcehealth/src/package_2020_05_01_preview/operations.rs b/services/mgmt/resourcehealth/src/package_2020_05_01_preview/operations.rs index 97dad7dc27..df47b631ee 100644 --- a/services/mgmt/resourcehealth/src/package_2020_05_01_preview/operations.rs +++ b/services/mgmt/resourcehealth/src/package_2020_05_01_preview/operations.rs @@ -152,9 +152,9 @@ pub mod availability_statuses { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -173,6 +173,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -244,9 +247,9 @@ pub mod availability_statuses { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -265,6 +268,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -398,9 +404,9 @@ pub mod availability_statuses { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -419,6 +425,9 @@ pub mod availability_statuses { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resourcemover/src/package_2019_10_01_preview/models.rs b/services/mgmt/resourcemover/src/package_2019_10_01_preview/models.rs index b248ba3b7d..cd2c5ee7c5 100644 --- a/services/mgmt/resourcemover/src/package_2019_10_01_preview/models.rs +++ b/services/mgmt/resourcemover/src/package_2019_10_01_preview/models.rs @@ -93,7 +93,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -484,8 +484,8 @@ pub struct MoveCollectionResultList { pub next_link: Option, } impl azure_core::Continuable for MoveCollectionResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MoveCollectionResultList { @@ -543,8 +543,8 @@ pub struct MoveResourceCollection { pub total_count: Option, } impl azure_core::Continuable for MoveResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MoveResourceCollection { @@ -1487,8 +1487,8 @@ pub struct UnresolvedDependencyCollection { pub total_count: Option, } impl azure_core::Continuable for UnresolvedDependencyCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UnresolvedDependencyCollection { diff --git a/services/mgmt/resourcemover/src/package_2019_10_01_preview/operations.rs b/services/mgmt/resourcemover/src/package_2019_10_01_preview/operations.rs index e5744b5350..e9173e8f99 100644 --- a/services/mgmt/resourcemover/src/package_2019_10_01_preview/operations.rs +++ b/services/mgmt/resourcemover/src/package_2019_10_01_preview/operations.rs @@ -929,9 +929,9 @@ pub mod move_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -950,6 +950,9 @@ pub mod move_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1005,9 +1008,9 @@ pub mod move_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1026,6 +1029,9 @@ pub mod move_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1209,9 +1215,9 @@ pub mod move_resources { &this.move_collection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1230,6 +1236,9 @@ pub mod move_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1513,9 +1522,9 @@ pub mod unresolved_dependencies { &this.move_collection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1534,6 +1543,9 @@ pub mod unresolved_dependencies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resourcemover/src/package_2021_01_01/models.rs b/services/mgmt/resourcemover/src/package_2021_01_01/models.rs index b248ba3b7d..cd2c5ee7c5 100644 --- a/services/mgmt/resourcemover/src/package_2021_01_01/models.rs +++ b/services/mgmt/resourcemover/src/package_2021_01_01/models.rs @@ -93,7 +93,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -484,8 +484,8 @@ pub struct MoveCollectionResultList { pub next_link: Option, } impl azure_core::Continuable for MoveCollectionResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MoveCollectionResultList { @@ -543,8 +543,8 @@ pub struct MoveResourceCollection { pub total_count: Option, } impl azure_core::Continuable for MoveResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MoveResourceCollection { @@ -1487,8 +1487,8 @@ pub struct UnresolvedDependencyCollection { pub total_count: Option, } impl azure_core::Continuable for UnresolvedDependencyCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UnresolvedDependencyCollection { diff --git a/services/mgmt/resourcemover/src/package_2021_01_01/operations.rs b/services/mgmt/resourcemover/src/package_2021_01_01/operations.rs index 714606354d..88eaffb131 100644 --- a/services/mgmt/resourcemover/src/package_2021_01_01/operations.rs +++ b/services/mgmt/resourcemover/src/package_2021_01_01/operations.rs @@ -929,9 +929,9 @@ pub mod move_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -950,6 +950,9 @@ pub mod move_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1005,9 +1008,9 @@ pub mod move_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1026,6 +1029,9 @@ pub mod move_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1209,9 +1215,9 @@ pub mod move_resources { &this.move_collection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1230,6 +1236,9 @@ pub mod move_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1513,9 +1522,9 @@ pub mod unresolved_dependencies { &this.move_collection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1534,6 +1543,9 @@ pub mod unresolved_dependencies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resourcemover/src/package_2021_08_01/models.rs b/services/mgmt/resourcemover/src/package_2021_08_01/models.rs index abfdea92be..f311157d8a 100644 --- a/services/mgmt/resourcemover/src/package_2021_08_01/models.rs +++ b/services/mgmt/resourcemover/src/package_2021_08_01/models.rs @@ -97,7 +97,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -495,8 +495,8 @@ pub struct MoveCollectionResultList { pub next_link: Option, } impl azure_core::Continuable for MoveCollectionResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MoveCollectionResultList { @@ -557,8 +557,8 @@ pub struct MoveResourceCollection { pub total_count: Option, } impl azure_core::Continuable for MoveResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MoveResourceCollection { @@ -1521,8 +1521,8 @@ pub struct UnresolvedDependencyCollection { pub total_count: Option, } impl azure_core::Continuable for UnresolvedDependencyCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UnresolvedDependencyCollection { diff --git a/services/mgmt/resourcemover/src/package_2021_08_01/operations.rs b/services/mgmt/resourcemover/src/package_2021_08_01/operations.rs index 3cf89d6682..e0f9421672 100644 --- a/services/mgmt/resourcemover/src/package_2021_08_01/operations.rs +++ b/services/mgmt/resourcemover/src/package_2021_08_01/operations.rs @@ -929,9 +929,9 @@ pub mod move_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -950,6 +950,9 @@ pub mod move_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1005,9 +1008,9 @@ pub mod move_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1026,6 +1029,9 @@ pub mod move_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1209,9 +1215,9 @@ pub mod move_resources { &this.move_collection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1230,6 +1236,9 @@ pub mod move_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1513,9 +1522,9 @@ pub mod unresolved_dependencies { &this.move_collection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1534,6 +1543,9 @@ pub mod unresolved_dependencies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resources/src/package_features_2021_07/models.rs b/services/mgmt/resources/src/package_features_2021_07/models.rs index 2e8e0502d8..713495a73d 100644 --- a/services/mgmt/resources/src/package_features_2021_07/models.rs +++ b/services/mgmt/resources/src/package_features_2021_07/models.rs @@ -54,7 +54,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -74,8 +74,8 @@ pub struct FeatureOperationsListResult { pub next_link: Option, } impl azure_core::Continuable for FeatureOperationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FeatureOperationsListResult { @@ -163,8 +163,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -356,8 +356,8 @@ pub struct SubscriptionFeatureRegistrationList { pub value: Vec, } impl azure_core::Continuable for SubscriptionFeatureRegistrationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionFeatureRegistrationList { diff --git a/services/mgmt/resources/src/package_features_2021_07/operations.rs b/services/mgmt/resources/src/package_features_2021_07/operations.rs index a34f4662ca..a3704a86db 100644 --- a/services/mgmt/resources/src/package_features_2021_07/operations.rs +++ b/services/mgmt/resources/src/package_features_2021_07/operations.rs @@ -100,9 +100,9 @@ pub mod list_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Features/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -121,6 +121,9 @@ pub mod list_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -231,9 +234,9 @@ pub mod features { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -252,6 +255,9 @@ pub mod features { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -307,9 +313,9 @@ pub mod features { &this.resource_provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -328,6 +334,9 @@ pub mod features { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -774,9 +783,9 @@ pub mod subscription_feature_registrations { &this.provider_namespace ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -795,6 +804,9 @@ pub mod subscription_feature_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -848,9 +860,9 @@ pub mod subscription_feature_registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -869,6 +881,9 @@ pub mod subscription_feature_registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resources/src/package_locks_2020_05/models.rs b/services/mgmt/resources/src/package_locks_2020_05/models.rs index f8cf5d085b..428321326c 100644 --- a/services/mgmt/resources/src/package_locks_2020_05/models.rs +++ b/services/mgmt/resources/src/package_locks_2020_05/models.rs @@ -51,7 +51,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -71,8 +71,8 @@ pub struct ManagementLockListResult { pub next_link: Option, } impl azure_core::Continuable for ManagementLockListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagementLockListResult { @@ -231,8 +231,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/resources/src/package_locks_2020_05/operations.rs b/services/mgmt/resources/src/package_locks_2020_05/operations.rs index b2c508bb4e..d4932217c5 100644 --- a/services/mgmt/resources/src/package_locks_2020_05/operations.rs +++ b/services/mgmt/resources/src/package_locks_2020_05/operations.rs @@ -104,9 +104,9 @@ pub mod authorization_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Authorization/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -125,6 +125,9 @@ pub mod authorization_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1095,9 +1098,9 @@ pub mod management_locks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1116,6 +1119,9 @@ pub mod management_locks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1187,9 +1193,9 @@ pub mod management_locks { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1208,6 +1214,9 @@ pub mod management_locks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1269,9 +1278,9 @@ pub mod management_locks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1290,6 +1299,9 @@ pub mod management_locks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1351,9 +1363,9 @@ pub mod management_locks { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1372,6 +1384,9 @@ pub mod management_locks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resources/src/package_policy_2021_06/models.rs b/services/mgmt/resources/src/package_policy_2021_06/models.rs index 897213b410..a8b4fdfd8b 100644 --- a/services/mgmt/resources/src/package_policy_2021_06/models.rs +++ b/services/mgmt/resources/src/package_policy_2021_06/models.rs @@ -198,7 +198,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -290,8 +290,8 @@ pub struct DataPolicyManifestListResult { pub next_link: Option, } impl azure_core::Continuable for DataPolicyManifestListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataPolicyManifestListResult { @@ -577,8 +577,8 @@ pub struct PolicyAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for PolicyAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyAssignmentListResult { @@ -745,8 +745,8 @@ pub struct PolicyDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for PolicyDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyDefinitionListResult { @@ -894,8 +894,8 @@ pub struct PolicyExemptionListResult { pub next_link: Option, } impl azure_core::Continuable for PolicyExemptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicyExemptionListResult { @@ -1016,8 +1016,8 @@ pub struct PolicySetDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for PolicySetDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PolicySetDefinitionListResult { diff --git a/services/mgmt/resources/src/package_policy_2021_06/operations.rs b/services/mgmt/resources/src/package_policy_2021_06/operations.rs index 542062f7ef..797365fb1e 100644 --- a/services/mgmt/resources/src/package_policy_2021_06/operations.rs +++ b/services/mgmt/resources/src/package_policy_2021_06/operations.rs @@ -179,9 +179,9 @@ pub mod data_policy_manifests { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -200,6 +200,9 @@ pub mod data_policy_manifests { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -619,9 +622,9 @@ pub mod policy_assignments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -640,6 +643,9 @@ pub mod policy_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -710,9 +716,9 @@ pub mod policy_assignments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/{}/providers/Microsoft.Authorization/policyAssignments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_provider_namespace , & this . parent_resource_path , & this . resource_type , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -731,6 +737,9 @@ pub mod policy_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -800,9 +809,9 @@ pub mod policy_assignments { &this.management_group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -821,6 +830,9 @@ pub mod policy_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -890,9 +902,9 @@ pub mod policy_assignments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -911,6 +923,9 @@ pub mod policy_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1626,9 +1641,9 @@ pub mod policy_definitions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1647,6 +1662,9 @@ pub mod policy_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1714,9 +1732,9 @@ pub mod policy_definitions { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1735,6 +1753,9 @@ pub mod policy_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1804,9 +1825,9 @@ pub mod policy_definitions { &this.management_group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1825,6 +1846,9 @@ pub mod policy_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2211,9 +2235,9 @@ pub mod policy_set_definitions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2232,6 +2256,9 @@ pub mod policy_set_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2299,9 +2326,9 @@ pub mod policy_set_definitions { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2320,6 +2347,9 @@ pub mod policy_set_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2536,9 +2566,9 @@ pub mod policy_set_definitions { &this.management_group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2557,6 +2587,9 @@ pub mod policy_set_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2869,9 +2902,9 @@ pub mod policy_exemptions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2890,6 +2923,9 @@ pub mod policy_exemptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2953,9 +2989,9 @@ pub mod policy_exemptions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2974,6 +3010,9 @@ pub mod policy_exemptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3036,9 +3075,9 @@ pub mod policy_exemptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/{}/providers/Microsoft.Authorization/policyExemptions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_provider_namespace , & this . parent_resource_path , & this . resource_type , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3057,6 +3096,9 @@ pub mod policy_exemptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3118,9 +3160,9 @@ pub mod policy_exemptions { &this.management_group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3139,6 +3181,9 @@ pub mod policy_exemptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resources/src/package_resources_2021_04/models.rs b/services/mgmt/resources/src/package_resources_2021_04/models.rs index 6aff934686..db210eff64 100644 --- a/services/mgmt/resources/src/package_resources_2021_04/models.rs +++ b/services/mgmt/resources/src/package_resources_2021_04/models.rs @@ -230,7 +230,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -355,8 +355,8 @@ pub struct DeploymentListResult { pub next_link: Option, } impl azure_core::Continuable for DeploymentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentListResult { @@ -449,8 +449,8 @@ pub struct DeploymentOperationsListResult { pub next_link: Option, } impl azure_core::Continuable for DeploymentOperationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentOperationsListResult { @@ -1078,8 +1078,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1261,8 +1261,8 @@ pub struct ProviderListResult { pub next_link: Option, } impl azure_core::Continuable for ProviderListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderListResult { @@ -1520,8 +1520,8 @@ pub struct ResourceGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceGroupListResult { @@ -1573,8 +1573,8 @@ pub struct ResourceListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceListResult { @@ -1820,8 +1820,8 @@ pub struct TagsListResult { pub next_link: Option, } impl azure_core::Continuable for TagsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TagsListResult { diff --git a/services/mgmt/resources/src/package_resources_2021_04/operations.rs b/services/mgmt/resources/src/package_resources_2021_04/operations.rs index 3f9bdb54d0..b72bf75d8c 100644 --- a/services/mgmt/resources/src/package_resources_2021_04/operations.rs +++ b/services/mgmt/resources/src/package_resources_2021_04/operations.rs @@ -122,9 +122,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Resources/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -143,6 +143,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1073,9 +1076,9 @@ pub mod deployments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1094,6 +1097,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1567,9 +1573,9 @@ pub mod deployments { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Resources/deployments/", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1588,6 +1594,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2076,9 +2085,9 @@ pub mod deployments { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2097,6 +2106,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2590,9 +2602,9 @@ pub mod deployments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2611,6 +2623,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3122,9 +3137,9 @@ pub mod deployments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3143,6 +3158,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3538,9 +3556,9 @@ pub mod providers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3559,6 +3577,9 @@ pub mod providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3615,9 +3636,9 @@ pub mod providers { async move { let mut url = azure_core::Url::parse(&format!("{}/providers", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3636,6 +3657,9 @@ pub mod providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4091,9 +4115,9 @@ pub mod resources { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4112,6 +4136,9 @@ pub mod resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4297,9 +4324,9 @@ pub mod resources { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4318,6 +4345,9 @@ pub mod resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5354,9 +5384,9 @@ pub mod resource_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5375,6 +5405,9 @@ pub mod resource_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5753,9 +5786,9 @@ pub mod tags { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5774,6 +5807,9 @@ pub mod tags { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6202,9 +6238,9 @@ pub mod deployment_operations { &this.deployment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6223,6 +6259,9 @@ pub mod deployment_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6334,9 +6373,9 @@ pub mod deployment_operations { &this.deployment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6355,6 +6394,9 @@ pub mod deployment_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6464,9 +6506,9 @@ pub mod deployment_operations { &this.deployment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6485,6 +6527,9 @@ pub mod deployment_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6600,9 +6645,9 @@ pub mod deployment_operations { &this.deployment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6621,6 +6666,9 @@ pub mod deployment_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6740,9 +6788,9 @@ pub mod deployment_operations { &this.deployment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6761,6 +6809,9 @@ pub mod deployment_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/resources/src/package_subscriptions_2021_01/models.rs b/services/mgmt/resources/src/package_subscriptions_2021_01/models.rs index 050de5bd85..e028c30b94 100644 --- a/services/mgmt/resources/src/package_subscriptions_2021_01/models.rs +++ b/services/mgmt/resources/src/package_subscriptions_2021_01/models.rs @@ -118,7 +118,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -237,7 +237,7 @@ pub struct LocationListResult { pub value: Vec, } impl azure_core::Continuable for LocationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -530,11 +530,11 @@ pub struct SubscriptionListResult { pub next_link: String, } impl azure_core::Continuable for SubscriptionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } @@ -634,11 +634,11 @@ pub struct TenantListResult { pub next_link: String, } impl azure_core::Continuable for TenantListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } diff --git a/services/mgmt/resources/src/package_subscriptions_2021_01/operations.rs b/services/mgmt/resources/src/package_subscriptions_2021_01/operations.rs index e97ba9407a..ce41321cf2 100644 --- a/services/mgmt/resources/src/package_subscriptions_2021_01/operations.rs +++ b/services/mgmt/resources/src/package_subscriptions_2021_01/operations.rs @@ -231,9 +231,9 @@ pub mod subscriptions { async move { let mut url = azure_core::Url::parse(&format!("{}/subscriptions", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -252,6 +252,9 @@ pub mod subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -359,9 +362,9 @@ pub mod tenants { async move { let mut url = azure_core::Url::parse(&format!("{}/tenants", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -380,6 +383,9 @@ pub mod tenants { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/saas/src/package_2018_03_01_beta/models.rs b/services/mgmt/saas/src/package_2018_03_01_beta/models.rs index bccbb0640a..f36e5447da 100644 --- a/services/mgmt/saas/src/package_2018_03_01_beta/models.rs +++ b/services/mgmt/saas/src/package_2018_03_01_beta/models.rs @@ -66,7 +66,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -167,8 +167,8 @@ pub struct SaasAppOperationsResponseWithContinuation { pub value: Vec, } impl azure_core::Continuable for SaasAppOperationsResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SaasAppOperationsResponseWithContinuation { @@ -266,8 +266,8 @@ pub struct SaasAppResponseWithContinuation { pub value: Vec, } impl azure_core::Continuable for SaasAppResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SaasAppResponseWithContinuation { @@ -510,8 +510,8 @@ pub struct SaasResourceResponseWithContinuation { pub value: Vec, } impl azure_core::Continuable for SaasResourceResponseWithContinuation { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SaasResourceResponseWithContinuation { diff --git a/services/mgmt/saas/src/package_2018_03_01_beta/operations.rs b/services/mgmt/saas/src/package_2018_03_01_beta/operations.rs index 5a44ad9fdc..c7c4267e5d 100644 --- a/services/mgmt/saas/src/package_2018_03_01_beta/operations.rs +++ b/services/mgmt/saas/src/package_2018_03_01_beta/operations.rs @@ -115,9 +115,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SaaS/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -204,9 +207,9 @@ pub mod applications { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -225,6 +228,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -528,9 +534,9 @@ pub mod saas_resources { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SaaS/saasresources", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -549,6 +555,9 @@ pub mod saas_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -792,9 +801,9 @@ pub mod saas_subscription_level { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -813,6 +822,9 @@ pub mod saas_subscription_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -868,9 +880,9 @@ pub mod saas_subscription_level { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -889,6 +901,9 @@ pub mod saas_subscription_level { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/scheduler/src/package_2014_08_preview/models.rs b/services/mgmt/scheduler/src/package_2014_08_preview/models.rs index 029f5eb834..0cde04af0b 100644 --- a/services/mgmt/scheduler/src/package_2014_08_preview/models.rs +++ b/services/mgmt/scheduler/src/package_2014_08_preview/models.rs @@ -159,8 +159,8 @@ pub struct JobCollectionListResult { pub next_link: Option, } impl azure_core::Continuable for JobCollectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollectionListResult { @@ -350,8 +350,8 @@ pub struct JobHistoryListResult { pub next_link: Option, } impl azure_core::Continuable for JobHistoryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobHistoryListResult { @@ -369,8 +369,8 @@ pub struct JobListResult { pub next_link: Option, } impl azure_core::Continuable for JobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResult { diff --git a/services/mgmt/scheduler/src/package_2014_08_preview/operations.rs b/services/mgmt/scheduler/src/package_2014_08_preview/operations.rs index e200cf2998..cb5719b7b5 100644 --- a/services/mgmt/scheduler/src/package_2014_08_preview/operations.rs +++ b/services/mgmt/scheduler/src/package_2014_08_preview/operations.rs @@ -204,9 +204,9 @@ pub mod job_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -225,6 +225,9 @@ pub mod job_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -280,9 +283,9 @@ pub mod job_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -301,6 +304,9 @@ pub mod job_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1083,9 +1089,9 @@ pub mod jobs { &this.job_collection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1104,6 +1110,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1187,9 +1196,9 @@ pub mod jobs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1208,6 +1217,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/scheduler/src/package_2016_01/models.rs b/services/mgmt/scheduler/src/package_2016_01/models.rs index 029f5eb834..0cde04af0b 100644 --- a/services/mgmt/scheduler/src/package_2016_01/models.rs +++ b/services/mgmt/scheduler/src/package_2016_01/models.rs @@ -159,8 +159,8 @@ pub struct JobCollectionListResult { pub next_link: Option, } impl azure_core::Continuable for JobCollectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollectionListResult { @@ -350,8 +350,8 @@ pub struct JobHistoryListResult { pub next_link: Option, } impl azure_core::Continuable for JobHistoryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobHistoryListResult { @@ -369,8 +369,8 @@ pub struct JobListResult { pub next_link: Option, } impl azure_core::Continuable for JobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResult { diff --git a/services/mgmt/scheduler/src/package_2016_01/operations.rs b/services/mgmt/scheduler/src/package_2016_01/operations.rs index 4aac4618bd..f33227274d 100644 --- a/services/mgmt/scheduler/src/package_2016_01/operations.rs +++ b/services/mgmt/scheduler/src/package_2016_01/operations.rs @@ -204,9 +204,9 @@ pub mod job_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -225,6 +225,9 @@ pub mod job_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -280,9 +283,9 @@ pub mod job_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -301,6 +304,9 @@ pub mod job_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1083,9 +1089,9 @@ pub mod jobs { &this.job_collection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1104,6 +1110,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1187,9 +1196,9 @@ pub mod jobs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1208,6 +1217,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/scheduler/src/package_2016_03/models.rs b/services/mgmt/scheduler/src/package_2016_03/models.rs index e256af6b62..0b9dc0a7c2 100644 --- a/services/mgmt/scheduler/src/package_2016_03/models.rs +++ b/services/mgmt/scheduler/src/package_2016_03/models.rs @@ -170,8 +170,8 @@ pub struct JobCollectionListResult { pub next_link: Option, } impl azure_core::Continuable for JobCollectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollectionListResult { @@ -361,8 +361,8 @@ pub struct JobHistoryListResult { pub next_link: Option, } impl azure_core::Continuable for JobHistoryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobHistoryListResult { @@ -380,8 +380,8 @@ pub struct JobListResult { pub next_link: Option, } impl azure_core::Continuable for JobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResult { diff --git a/services/mgmt/scheduler/src/package_2016_03/operations.rs b/services/mgmt/scheduler/src/package_2016_03/operations.rs index 82b4e3c4c2..866d213d5a 100644 --- a/services/mgmt/scheduler/src/package_2016_03/operations.rs +++ b/services/mgmt/scheduler/src/package_2016_03/operations.rs @@ -204,9 +204,9 @@ pub mod job_collections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -225,6 +225,9 @@ pub mod job_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -280,9 +283,9 @@ pub mod job_collections { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -301,6 +304,9 @@ pub mod job_collections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1101,9 +1107,9 @@ pub mod jobs { &this.job_collection_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1122,6 +1128,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1205,9 +1214,9 @@ pub mod jobs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1226,6 +1235,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs b/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs index 4753a26ae0..bb8ceec029 100644 --- a/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs +++ b/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs @@ -86,8 +86,8 @@ pub struct AvailabilitySetListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilitySetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilitySetListResult { @@ -214,8 +214,8 @@ pub struct CloudListResult { pub next_link: Option, } impl azure_core::Continuable for CloudListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudListResult { @@ -279,7 +279,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -601,8 +601,8 @@ pub struct InventoryItemsList { pub value: Vec, } impl azure_core::Continuable for InventoryItemsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InventoryItemsList { @@ -901,8 +901,8 @@ pub struct ResourceProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for ResourceProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceProviderOperationList { @@ -1039,8 +1039,8 @@ pub struct VmmServerListResult { pub next_link: Option, } impl azure_core::Continuable for VmmServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VmmServerListResult { @@ -1344,8 +1344,8 @@ pub struct VirtualMachineListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineListResult { @@ -1502,8 +1502,8 @@ pub struct VirtualMachineTemplateListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualMachineTemplateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineTemplateListResult { @@ -1792,8 +1792,8 @@ pub struct VirtualNetworkListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkListResult { diff --git a/services/mgmt/scvmm/src/package_2020_06_05_preview/operations.rs b/services/mgmt/scvmm/src/package_2020_06_05_preview/operations.rs index 256ebe5237..bfe99e4044 100644 --- a/services/mgmt/scvmm/src/package_2020_06_05_preview/operations.rs +++ b/services/mgmt/scvmm/src/package_2020_06_05_preview/operations.rs @@ -451,9 +451,9 @@ pub mod vmm_servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -472,6 +472,9 @@ pub mod vmm_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -525,9 +528,9 @@ pub mod vmm_servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -546,6 +549,9 @@ pub mod vmm_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -603,9 +609,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ScVmm/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -624,6 +630,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1011,9 +1020,9 @@ pub mod clouds { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1032,6 +1041,9 @@ pub mod clouds { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1085,9 +1097,9 @@ pub mod clouds { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1106,6 +1118,9 @@ pub mod clouds { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1493,9 +1508,9 @@ pub mod virtual_networks { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1514,6 +1529,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1567,9 +1585,9 @@ pub mod virtual_networks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1588,6 +1606,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2438,9 +2459,9 @@ pub mod virtual_machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2459,6 +2480,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2512,9 +2536,9 @@ pub mod virtual_machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2533,6 +2557,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2920,9 +2947,9 @@ pub mod virtual_machine_templates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2941,6 +2968,9 @@ pub mod virtual_machine_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2994,9 +3024,9 @@ pub mod virtual_machine_templates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3015,6 +3045,9 @@ pub mod virtual_machine_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3402,9 +3435,9 @@ pub mod availability_sets { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3423,6 +3456,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3476,9 +3512,9 @@ pub mod availability_sets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3497,6 +3533,9 @@ pub mod availability_sets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3796,9 +3835,9 @@ pub mod inventory_items { &this.vmm_server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3817,6 +3856,9 @@ pub mod inventory_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/search/src/package_2019_10_preview/models.rs b/services/mgmt/search/src/package_2019_10_preview/models.rs index 9fea342329..beb2672dc3 100644 --- a/services/mgmt/search/src/package_2019_10_preview/models.rs +++ b/services/mgmt/search/src/package_2019_10_preview/models.rs @@ -108,7 +108,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -189,7 +189,7 @@ pub struct ListQueryKeysResult { pub value: Vec, } impl azure_core::Continuable for ListQueryKeysResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -277,7 +277,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -315,7 +315,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -430,7 +430,7 @@ pub struct PrivateLinkResourcesResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourcesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -506,7 +506,7 @@ pub struct SearchServiceListResult { pub value: Vec, } impl azure_core::Continuable for SearchServiceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/search/src/package_2019_10_preview/operations.rs b/services/mgmt/search/src/package_2019_10_preview/operations.rs index f68d0a8258..d6d7444b46 100644 --- a/services/mgmt/search/src/package_2019_10_preview/operations.rs +++ b/services/mgmt/search/src/package_2019_10_preview/operations.rs @@ -448,9 +448,9 @@ pub mod query_keys { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -469,6 +469,9 @@ pub mod query_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -948,9 +951,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -969,6 +972,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1030,9 +1036,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1051,6 +1057,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1492,9 +1501,9 @@ pub mod private_endpoint_connections { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1513,6 +1522,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/search/src/package_2020_03/models.rs b/services/mgmt/search/src/package_2020_03/models.rs index 2e17de6a51..e655058f25 100644 --- a/services/mgmt/search/src/package_2020_03/models.rs +++ b/services/mgmt/search/src/package_2020_03/models.rs @@ -108,7 +108,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -192,8 +192,8 @@ pub struct ListQueryKeysResult { pub next_link: Option, } impl azure_core::Continuable for ListQueryKeysResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListQueryKeysResult { @@ -263,7 +263,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -304,8 +304,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -419,7 +419,7 @@ pub struct PrivateLinkResourcesResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourcesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -498,8 +498,8 @@ pub struct SearchServiceListResult { pub next_link: Option, } impl azure_core::Continuable for SearchServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SearchServiceListResult { diff --git a/services/mgmt/search/src/package_2020_03/operations.rs b/services/mgmt/search/src/package_2020_03/operations.rs index 3f57ab8ced..67ae36e20e 100644 --- a/services/mgmt/search/src/package_2020_03/operations.rs +++ b/services/mgmt/search/src/package_2020_03/operations.rs @@ -448,9 +448,9 @@ pub mod query_keys { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -469,6 +469,9 @@ pub mod query_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -948,9 +951,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -969,6 +972,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1030,9 +1036,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1051,6 +1057,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1492,9 +1501,9 @@ pub mod private_endpoint_connections { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1513,6 +1522,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/search/src/package_2020_08/models.rs b/services/mgmt/search/src/package_2020_08/models.rs index 3a7eebf895..bdbcea20ba 100644 --- a/services/mgmt/search/src/package_2020_08/models.rs +++ b/services/mgmt/search/src/package_2020_08/models.rs @@ -162,7 +162,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -246,8 +246,8 @@ pub struct ListQueryKeysResult { pub next_link: Option, } impl azure_core::Continuable for ListQueryKeysResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListQueryKeysResult { @@ -317,7 +317,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -351,8 +351,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -462,7 +462,7 @@ pub struct PrivateLinkResourcesResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourcesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -540,8 +540,8 @@ pub struct SearchServiceListResult { pub next_link: Option, } impl azure_core::Continuable for SearchServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SearchServiceListResult { @@ -727,8 +727,8 @@ pub struct SharedPrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceListResult { diff --git a/services/mgmt/search/src/package_2020_08/operations.rs b/services/mgmt/search/src/package_2020_08/operations.rs index ecbe86aece..51082d75e5 100644 --- a/services/mgmt/search/src/package_2020_08/operations.rs +++ b/services/mgmt/search/src/package_2020_08/operations.rs @@ -451,9 +451,9 @@ pub mod query_keys { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -472,6 +472,9 @@ pub mod query_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -951,9 +954,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -972,6 +975,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1033,9 +1039,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1054,6 +1060,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1495,9 +1504,9 @@ pub mod private_endpoint_connections { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1516,6 +1525,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1826,9 +1838,9 @@ pub mod shared_private_link_resources { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1847,6 +1859,9 @@ pub mod shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/search/src/package_2020_08_preview/models.rs b/services/mgmt/search/src/package_2020_08_preview/models.rs index b6ad8cf0aa..15a7b3bcc5 100644 --- a/services/mgmt/search/src/package_2020_08_preview/models.rs +++ b/services/mgmt/search/src/package_2020_08_preview/models.rs @@ -162,7 +162,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -246,8 +246,8 @@ pub struct ListQueryKeysResult { pub next_link: Option, } impl azure_core::Continuable for ListQueryKeysResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListQueryKeysResult { @@ -317,7 +317,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -351,8 +351,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -462,7 +462,7 @@ pub struct PrivateLinkResourcesResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourcesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -540,8 +540,8 @@ pub struct SearchServiceListResult { pub next_link: Option, } impl azure_core::Continuable for SearchServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SearchServiceListResult { @@ -727,8 +727,8 @@ pub struct SharedPrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceListResult { diff --git a/services/mgmt/search/src/package_2020_08_preview/operations.rs b/services/mgmt/search/src/package_2020_08_preview/operations.rs index 8c52763ffb..f2b7172f09 100644 --- a/services/mgmt/search/src/package_2020_08_preview/operations.rs +++ b/services/mgmt/search/src/package_2020_08_preview/operations.rs @@ -451,9 +451,9 @@ pub mod query_keys { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -472,6 +472,9 @@ pub mod query_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -951,9 +954,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -972,6 +975,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1033,9 +1039,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1054,6 +1060,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1495,9 +1504,9 @@ pub mod private_endpoint_connections { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1516,6 +1525,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1826,9 +1838,9 @@ pub mod shared_private_link_resources { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1847,6 +1859,9 @@ pub mod shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/search/src/package_2021_04_preview/models.rs b/services/mgmt/search/src/package_2021_04_preview/models.rs index 516e615f50..98eaaca20c 100644 --- a/services/mgmt/search/src/package_2021_04_preview/models.rs +++ b/services/mgmt/search/src/package_2021_04_preview/models.rs @@ -165,7 +165,7 @@ pub struct CloudError { pub message: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -393,8 +393,8 @@ pub struct ListQueryKeysResult { pub next_link: Option, } impl azure_core::Continuable for ListQueryKeysResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListQueryKeysResult { @@ -531,7 +531,7 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -655,8 +655,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -766,7 +766,7 @@ pub struct PrivateLinkResourcesResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourcesResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -844,8 +844,8 @@ pub struct SearchServiceListResult { pub next_link: Option, } impl azure_core::Continuable for SearchServiceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SearchServiceListResult { @@ -1124,8 +1124,8 @@ pub struct SharedPrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceListResult { diff --git a/services/mgmt/search/src/package_2021_04_preview/operations.rs b/services/mgmt/search/src/package_2021_04_preview/operations.rs index a08ac9e348..6edfd1ba42 100644 --- a/services/mgmt/search/src/package_2021_04_preview/operations.rs +++ b/services/mgmt/search/src/package_2021_04_preview/operations.rs @@ -451,9 +451,9 @@ pub mod query_keys { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -472,6 +472,9 @@ pub mod query_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -951,9 +954,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -972,6 +975,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1033,9 +1039,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1054,6 +1060,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1495,9 +1504,9 @@ pub mod private_endpoint_connections { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1516,6 +1525,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1826,9 +1838,9 @@ pub mod shared_private_link_resources { &this.search_service_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1847,6 +1859,9 @@ pub mod shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/security/src/package_composite_v3/models.rs b/services/mgmt/security/src/package_composite_v3/models.rs index 509694bc15..de37b86bc1 100644 --- a/services/mgmt/security/src/package_composite_v3/models.rs +++ b/services/mgmt/security/src/package_composite_v3/models.rs @@ -241,8 +241,8 @@ pub struct AdaptiveNetworkHardeningsList { pub next_link: Option, } impl azure_core::Continuable for AdaptiveNetworkHardeningsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AdaptiveNetworkHardeningsList { @@ -446,8 +446,8 @@ pub struct AlertList { pub next_link: Option, } impl azure_core::Continuable for AlertList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertList { @@ -852,8 +852,8 @@ pub struct AlertsSuppressionRulesList { pub next_link: Option, } impl azure_core::Continuable for AlertsSuppressionRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertsSuppressionRulesList { @@ -871,8 +871,8 @@ pub struct AllowedConnectionsList { pub next_link: Option, } impl azure_core::Continuable for AllowedConnectionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AllowedConnectionsList { @@ -991,8 +991,8 @@ pub struct AscLocationList { pub next_link: Option, } impl azure_core::Continuable for AscLocationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AscLocationList { @@ -1265,8 +1265,8 @@ pub struct AutoProvisioningSettingList { pub next_link: Option, } impl azure_core::Continuable for AutoProvisioningSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutoProvisioningSettingList { @@ -1467,8 +1467,8 @@ pub struct AutomationList { pub next_link: Option, } impl azure_core::Continuable for AutomationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationList { @@ -2002,7 +2002,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2060,8 +2060,8 @@ pub struct ComplianceList { pub next_link: Option, } impl azure_core::Continuable for ComplianceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComplianceList { @@ -2111,8 +2111,8 @@ pub struct ComplianceResultList { pub next_link: Option, } impl azure_core::Continuable for ComplianceResultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComplianceResultList { @@ -2309,8 +2309,8 @@ pub struct ConnectorSettingList { pub next_link: Option, } impl azure_core::Continuable for ConnectorSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectorSettingList { @@ -2470,8 +2470,8 @@ pub struct CustomEntityStoreAssignmentsListResult { pub next_link: Option, } impl azure_core::Continuable for CustomEntityStoreAssignmentsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomEntityStoreAssignmentsListResult { @@ -2546,8 +2546,8 @@ pub struct DeviceSecurityGroupList { pub next_link: Option, } impl azure_core::Continuable for DeviceSecurityGroupList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceSecurityGroupList { @@ -2615,8 +2615,8 @@ pub struct DiscoveredSecuritySolutionList { pub next_link: Option, } impl azure_core::Continuable for DiscoveredSecuritySolutionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiscoveredSecuritySolutionList { @@ -2836,8 +2836,8 @@ pub struct ExternalSecuritySolutionList { pub next_link: Option, } impl azure_core::Continuable for ExternalSecuritySolutionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExternalSecuritySolutionList { @@ -3165,8 +3165,8 @@ pub struct InformationProtectionPolicyList { pub next_link: Option, } impl azure_core::Continuable for InformationProtectionPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InformationProtectionPolicyList { @@ -3265,8 +3265,8 @@ pub struct IngestionSettingList { pub next_link: Option, } impl azure_core::Continuable for IngestionSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IngestionSettingList { @@ -3320,8 +3320,8 @@ pub struct IoTSecurityAggregatedAlertList { pub next_link: Option, } impl azure_core::Continuable for IoTSecurityAggregatedAlertList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IoTSecurityAggregatedAlertList { @@ -3447,8 +3447,8 @@ pub struct IoTSecurityAggregatedRecommendationList { pub next_link: Option, } impl azure_core::Continuable for IoTSecurityAggregatedRecommendationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IoTSecurityAggregatedRecommendationList { @@ -3909,8 +3909,8 @@ pub struct IoTSecuritySolutionsList { pub next_link: Option, } impl azure_core::Continuable for IoTSecuritySolutionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IoTSecuritySolutionsList { @@ -3945,8 +3945,8 @@ pub struct JitNetworkAccessPoliciesList { pub next_link: Option, } impl azure_core::Continuable for JitNetworkAccessPoliciesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JitNetworkAccessPoliciesList { @@ -4536,8 +4536,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -5034,8 +5034,8 @@ pub struct RegulatoryComplianceAssessmentList { pub next_link: Option, } impl azure_core::Continuable for RegulatoryComplianceAssessmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegulatoryComplianceAssessmentList { @@ -5144,8 +5144,8 @@ pub struct RegulatoryComplianceControlList { pub next_link: Option, } impl azure_core::Continuable for RegulatoryComplianceControlList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegulatoryComplianceControlList { @@ -5244,8 +5244,8 @@ pub struct RegulatoryComplianceStandardList { pub next_link: Option, } impl azure_core::Continuable for RegulatoryComplianceStandardList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegulatoryComplianceStandardList { @@ -6075,8 +6075,8 @@ pub struct SecureScoreControlList { pub next_link: Option, } impl azure_core::Continuable for SecureScoreControlList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecureScoreControlList { @@ -6175,8 +6175,8 @@ pub struct SecureScoresList { pub next_link: Option, } impl azure_core::Continuable for SecureScoresList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecureScoresList { @@ -6209,8 +6209,8 @@ pub struct SecurityAssessmentList { pub next_link: Option, } impl azure_core::Continuable for SecurityAssessmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityAssessmentList { @@ -6536,8 +6536,8 @@ pub struct SecurityAssessmentMetadataResponseList { pub next_link: Option, } impl azure_core::Continuable for SecurityAssessmentMetadataResponseList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityAssessmentMetadataResponseList { @@ -6792,8 +6792,8 @@ pub struct SecurityConnectorsList { pub next_link: Option, } impl azure_core::Continuable for SecurityConnectorsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityConnectorsList { @@ -6826,8 +6826,8 @@ pub struct SecurityContactList { pub next_link: Option, } impl azure_core::Continuable for SecurityContactList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityContactList { @@ -6964,8 +6964,8 @@ pub struct SecuritySolutionList { pub next_link: Option, } impl azure_core::Continuable for SecuritySolutionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecuritySolutionList { @@ -7109,8 +7109,8 @@ pub struct SecuritySubAssessmentList { pub next_link: Option, } impl azure_core::Continuable for SecuritySubAssessmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecuritySubAssessmentList { @@ -7181,8 +7181,8 @@ pub struct SecurityTaskList { pub next_link: Option, } impl azure_core::Continuable for SecurityTaskList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityTaskList { @@ -7435,8 +7435,8 @@ pub struct SettingsList { pub next_link: Option, } impl azure_core::Continuable for SettingsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SettingsList { @@ -7560,8 +7560,8 @@ pub struct SoftwaresList { pub next_link: Option, } impl azure_core::Continuable for SoftwaresList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SoftwaresList { @@ -7787,8 +7787,8 @@ pub struct TopologyList { pub next_link: Option, } impl azure_core::Continuable for TopologyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopologyList { @@ -8081,8 +8081,8 @@ pub struct WorkspaceSettingList { pub next_link: Option, } impl azure_core::Continuable for WorkspaceSettingList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceSettingList { @@ -8459,8 +8459,8 @@ pub struct CustomAssessmentAutomationsListResult { pub next_link: Option, } impl azure_core::Continuable for CustomAssessmentAutomationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomAssessmentAutomationsListResult { @@ -8663,8 +8663,8 @@ pub struct SecureScoreControlDefinitionList { pub next_link: Option, } impl azure_core::Continuable for SecureScoreControlDefinitionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecureScoreControlDefinitionList { diff --git a/services/mgmt/security/src/package_composite_v3/operations.rs b/services/mgmt/security/src/package_composite_v3/operations.rs index efe1621d13..983492e0a8 100644 --- a/services/mgmt/security/src/package_composite_v3/operations.rs +++ b/services/mgmt/security/src/package_composite_v3/operations.rs @@ -593,9 +593,9 @@ pub mod custom_assessment_automations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -614,6 +614,9 @@ pub mod custom_assessment_automations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -667,9 +670,9 @@ pub mod custom_assessment_automations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -688,6 +691,9 @@ pub mod custom_assessment_automations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -980,9 +986,9 @@ pub mod custom_entity_store_assignments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1001,6 +1007,9 @@ pub mod custom_entity_store_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1054,9 +1063,9 @@ pub mod custom_entity_store_assignments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1075,6 +1084,9 @@ pub mod custom_entity_store_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1147,9 +1159,9 @@ pub mod compliance_results { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1168,6 +1180,9 @@ pub mod compliance_results { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1620,9 +1635,9 @@ pub mod device_security_groups { &this.resource_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1641,6 +1656,9 @@ pub mod device_security_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1942,9 +1960,9 @@ pub mod iot_security_solution { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1963,6 +1981,9 @@ pub mod iot_security_solution { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2026,9 +2047,9 @@ pub mod iot_security_solution { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2047,6 +2068,9 @@ pub mod iot_security_solution { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2508,9 +2532,9 @@ pub mod iot_security_solutions_analytics_aggregated_alert { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Security/iotSecuritySolutions/{}/analyticsModels/default/aggregatedAlerts" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . solution_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2529,6 +2553,9 @@ pub mod iot_security_solutions_analytics_aggregated_alert { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2761,9 +2788,9 @@ pub mod iot_security_solutions_analytics_recommendation { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Security/iotSecuritySolutions/{}/analyticsModels/default/aggregatedRecommendations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . solution_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2782,6 +2809,9 @@ pub mod iot_security_solutions_analytics_recommendation { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2857,9 +2887,9 @@ pub mod locations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2878,6 +2908,9 @@ pub mod locations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2986,9 +3019,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Security/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3007,6 +3040,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3164,9 +3200,9 @@ pub mod tasks { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3185,6 +3221,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3248,9 +3287,9 @@ pub mod tasks { &this.asc_location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3269,6 +3308,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3437,9 +3479,9 @@ pub mod tasks { &this.asc_location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3458,6 +3500,9 @@ pub mod tasks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3653,9 +3698,9 @@ pub mod auto_provisioning_settings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3674,6 +3719,9 @@ pub mod auto_provisioning_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3848,9 +3896,9 @@ pub mod compliances { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3869,6 +3917,9 @@ pub mod compliances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4115,9 +4166,9 @@ pub mod information_protection_policies { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4136,6 +4187,9 @@ pub mod information_protection_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4241,9 +4295,9 @@ pub mod security_contacts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4262,6 +4316,9 @@ pub mod security_contacts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4567,9 +4624,9 @@ pub mod workspace_settings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4588,6 +4645,9 @@ pub mod workspace_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4866,9 +4926,9 @@ pub mod regulatory_compliance_standards { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4887,6 +4947,9 @@ pub mod regulatory_compliance_standards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5022,9 +5085,9 @@ pub mod regulatory_compliance_controls { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Security/regulatoryComplianceStandards/{}/regulatoryComplianceControls" , this . client . endpoint () , & this . subscription_id , & this . regulatory_compliance_standard_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5043,6 +5106,9 @@ pub mod regulatory_compliance_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5183,9 +5249,9 @@ pub mod regulatory_compliance_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Security/regulatoryComplianceStandards/{}/regulatoryComplianceControls/{}/regulatoryComplianceAssessments" , this . client . endpoint () , & this . subscription_id , & this . regulatory_compliance_standard_name , & this . regulatory_compliance_control_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5204,6 +5270,9 @@ pub mod regulatory_compliance_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5339,9 +5408,9 @@ pub mod sub_assessments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5360,6 +5429,9 @@ pub mod sub_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5415,9 +5487,9 @@ pub mod sub_assessments { &this.assessment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5436,6 +5508,9 @@ pub mod sub_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5620,9 +5695,9 @@ pub mod automations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5641,6 +5716,9 @@ pub mod automations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5696,9 +5774,9 @@ pub mod automations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5717,6 +5795,9 @@ pub mod automations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6032,9 +6113,9 @@ pub mod alerts_suppression_rules { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6053,6 +6134,9 @@ pub mod alerts_suppression_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6590,9 +6674,9 @@ pub mod assessments_metadata { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6611,6 +6695,9 @@ pub mod assessments_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6712,9 +6799,9 @@ pub mod assessments_metadata { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6733,6 +6820,9 @@ pub mod assessments_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6974,9 +7064,9 @@ pub mod assessments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6995,6 +7085,9 @@ pub mod assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7565,9 +7658,9 @@ pub mod adaptive_network_hardenings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.Security/adaptiveNetworkHardenings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_namespace , & this . resource_type , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7586,6 +7679,9 @@ pub mod adaptive_network_hardenings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7780,9 +7876,9 @@ pub mod allowed_connections { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7801,6 +7897,9 @@ pub mod allowed_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7856,9 +7955,9 @@ pub mod allowed_connections { &this.asc_location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7877,6 +7976,9 @@ pub mod allowed_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8022,9 +8124,9 @@ pub mod topology { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8043,6 +8145,9 @@ pub mod topology { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8098,9 +8203,9 @@ pub mod topology { &this.asc_location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8119,6 +8224,9 @@ pub mod topology { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8335,9 +8443,9 @@ pub mod jit_network_access_policies { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8356,6 +8464,9 @@ pub mod jit_network_access_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8411,9 +8522,9 @@ pub mod jit_network_access_policies { &this.asc_location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8432,6 +8543,9 @@ pub mod jit_network_access_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8487,9 +8601,9 @@ pub mod jit_network_access_policies { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8508,6 +8622,9 @@ pub mod jit_network_access_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8565,9 +8682,9 @@ pub mod jit_network_access_policies { &this.asc_location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8586,6 +8703,9 @@ pub mod jit_network_access_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8892,9 +9012,9 @@ pub mod discovered_security_solutions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8913,6 +9033,9 @@ pub mod discovered_security_solutions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8968,9 +9091,9 @@ pub mod discovered_security_solutions { &this.asc_location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8989,6 +9112,9 @@ pub mod discovered_security_solutions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9248,9 +9374,9 @@ pub mod external_security_solutions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9269,6 +9395,9 @@ pub mod external_security_solutions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9324,9 +9453,9 @@ pub mod external_security_solutions { &this.asc_location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9345,6 +9474,9 @@ pub mod external_security_solutions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9471,9 +9603,9 @@ pub mod secure_scores { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9492,6 +9624,9 @@ pub mod secure_scores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9627,9 +9762,9 @@ pub mod secure_score_controls { &this.secure_score_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9648,6 +9783,9 @@ pub mod secure_score_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9709,9 +9847,9 @@ pub mod secure_score_controls { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9730,6 +9868,9 @@ pub mod secure_score_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9799,9 +9940,9 @@ pub mod secure_score_control_definitions { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9820,6 +9961,9 @@ pub mod secure_score_control_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9873,9 +10017,9 @@ pub mod secure_score_control_definitions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9894,6 +10038,9 @@ pub mod secure_score_control_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9974,9 +10121,9 @@ pub mod security_solutions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9995,6 +10142,9 @@ pub mod security_solutions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10141,9 +10291,9 @@ pub mod connectors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10162,6 +10312,9 @@ pub mod connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11149,9 +11302,9 @@ pub mod alerts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11170,6 +11323,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11225,9 +11381,9 @@ pub mod alerts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11246,6 +11402,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11301,9 +11460,9 @@ pub mod alerts { &this.asc_location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11322,6 +11481,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11379,9 +11541,9 @@ pub mod alerts { &this.asc_location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11400,6 +11562,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11939,9 +12104,9 @@ pub mod settings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11960,6 +12125,9 @@ pub mod settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12172,9 +12340,9 @@ pub mod ingestion_settings { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12193,6 +12361,9 @@ pub mod ingestion_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12557,9 +12728,9 @@ pub mod software_inventories { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12578,6 +12749,9 @@ pub mod software_inventories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12631,9 +12805,9 @@ pub mod software_inventories { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12652,6 +12826,9 @@ pub mod software_inventories { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12842,9 +13019,9 @@ pub mod security_connectors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12863,6 +13040,9 @@ pub mod security_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12918,9 +13098,9 @@ pub mod security_connectors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12939,6 +13119,9 @@ pub mod security_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/security/src/package_preview_2021_07/models.rs b/services/mgmt/security/src/package_preview_2021_07/models.rs index 86d44e0ceb..d68063bd07 100644 --- a/services/mgmt/security/src/package_preview_2021_07/models.rs +++ b/services/mgmt/security/src/package_preview_2021_07/models.rs @@ -12,7 +12,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -112,8 +112,8 @@ pub struct CustomEntityStoreAssignmentsListResult { pub next_link: Option, } impl azure_core::Continuable for CustomEntityStoreAssignmentsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomEntityStoreAssignmentsListResult { @@ -415,8 +415,8 @@ pub struct CustomAssessmentAutomationsListResult { pub next_link: Option, } impl azure_core::Continuable for CustomAssessmentAutomationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomAssessmentAutomationsListResult { diff --git a/services/mgmt/security/src/package_preview_2021_07/operations.rs b/services/mgmt/security/src/package_preview_2021_07/operations.rs index 9995a6703e..1c57810d52 100644 --- a/services/mgmt/security/src/package_preview_2021_07/operations.rs +++ b/services/mgmt/security/src/package_preview_2021_07/operations.rs @@ -338,9 +338,9 @@ pub mod custom_assessment_automations { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -359,6 +359,9 @@ pub mod custom_assessment_automations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -412,9 +415,9 @@ pub mod custom_assessment_automations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -433,6 +436,9 @@ pub mod custom_assessment_automations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -725,9 +731,9 @@ pub mod custom_entity_store_assignments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -746,6 +752,9 @@ pub mod custom_entity_store_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -799,9 +808,9 @@ pub mod custom_entity_store_assignments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -820,6 +829,9 @@ pub mod custom_entity_store_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/security/src/package_preview_2021_08/models.rs b/services/mgmt/security/src/package_preview_2021_08/models.rs index 397c759e8f..add4ba3f86 100644 --- a/services/mgmt/security/src/package_preview_2021_08/models.rs +++ b/services/mgmt/security/src/package_preview_2021_08/models.rs @@ -56,8 +56,8 @@ pub struct AssignmentList { pub next_link: Option, } impl azure_core::Continuable for AssignmentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AssignmentList { @@ -136,7 +136,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -266,8 +266,8 @@ pub struct StandardList { pub next_link: Option, } impl azure_core::Continuable for StandardList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StandardList { diff --git a/services/mgmt/security/src/package_preview_2021_08/operations.rs b/services/mgmt/security/src/package_preview_2021_08/operations.rs index 2211b3a74b..802e814981 100644 --- a/services/mgmt/security/src/package_preview_2021_08/operations.rs +++ b/services/mgmt/security/src/package_preview_2021_08/operations.rs @@ -159,9 +159,9 @@ pub mod standards { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -180,6 +180,9 @@ pub mod standards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -235,9 +238,9 @@ pub mod standards { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -256,6 +259,9 @@ pub mod standards { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -537,9 +543,9 @@ pub mod assignments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -558,6 +564,9 @@ pub mod assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -613,9 +622,9 @@ pub mod assignments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -634,6 +643,9 @@ pub mod assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/security/src/package_preview_2021_12/models.rs b/services/mgmt/security/src/package_preview_2021_12/models.rs index 0752c87574..c658813fde 100644 --- a/services/mgmt/security/src/package_preview_2021_12/models.rs +++ b/services/mgmt/security/src/package_preview_2021_12/models.rs @@ -133,7 +133,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -455,8 +455,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -576,8 +576,8 @@ pub struct SecurityConnectorsList { pub next_link: Option, } impl azure_core::Continuable for SecurityConnectorsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityConnectorsList { diff --git a/services/mgmt/security/src/package_preview_2021_12/operations.rs b/services/mgmt/security/src/package_preview_2021_12/operations.rs index 8120ec67d0..5a88547e49 100644 --- a/services/mgmt/security/src/package_preview_2021_12/operations.rs +++ b/services/mgmt/security/src/package_preview_2021_12/operations.rs @@ -178,9 +178,9 @@ pub mod security_connectors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -199,6 +199,9 @@ pub mod security_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -254,9 +257,9 @@ pub mod security_connectors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -275,6 +278,9 @@ pub mod security_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -555,9 +561,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Security/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -576,6 +582,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/securityandcompliance/src/package_2021_01_11/models.rs b/services/mgmt/securityandcompliance/src/package_2021_01_11/models.rs index dc5cc08301..909b66b520 100644 --- a/services/mgmt/securityandcompliance/src/package_2021_01_11/models.rs +++ b/services/mgmt/securityandcompliance/src/package_2021_01_11/models.rs @@ -12,7 +12,7 @@ pub struct ErrorDetails { pub error: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -92,8 +92,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -211,8 +211,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -418,8 +418,8 @@ pub struct PrivateLinkServicesForEdmUploadDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForEdmUploadDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForEdmUploadDescriptionListResult { @@ -455,8 +455,8 @@ pub struct PrivateLinkServicesForM365ComplianceCenterDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForM365ComplianceCenterDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForM365ComplianceCenterDescriptionListResult { @@ -492,8 +492,8 @@ pub struct PrivateLinkServicesForM365SecurityCenterDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForM365SecurityCenterDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForM365SecurityCenterDescriptionListResult { @@ -529,8 +529,8 @@ pub struct PrivateLinkServicesForO365ManagementActivityApiDescriptionListResult pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForO365ManagementActivityApiDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForO365ManagementActivityApiDescriptionListResult { @@ -566,8 +566,8 @@ pub struct PrivateLinkServicesForSccPowershellDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForSccPowershellDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForSccPowershellDescriptionListResult { diff --git a/services/mgmt/securityandcompliance/src/package_2021_01_11/operations.rs b/services/mgmt/securityandcompliance/src/package_2021_01_11/operations.rs index aad14559b9..cd238cd349 100644 --- a/services/mgmt/securityandcompliance/src/package_2021_01_11/operations.rs +++ b/services/mgmt/securityandcompliance/src/package_2021_01_11/operations.rs @@ -154,9 +154,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -175,6 +175,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -527,9 +530,9 @@ pub mod private_link_services_for_edm_upload { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -548,6 +551,9 @@ pub mod private_link_services_for_edm_upload { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -599,9 +605,9 @@ pub mod private_link_services_for_edm_upload { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForEDMUpload" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -620,6 +626,9 @@ pub mod private_link_services_for_edm_upload { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -807,9 +816,9 @@ pub mod private_endpoint_connections_for_edm { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForEDMUpload/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -828,6 +837,9 @@ pub mod private_endpoint_connections_for_edm { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1465,9 +1477,9 @@ pub mod private_link_services_for_m365_compliance_center { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1486,6 +1498,9 @@ pub mod private_link_services_for_m365_compliance_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1537,9 +1552,9 @@ pub mod private_link_services_for_m365_compliance_center { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1558,6 +1573,9 @@ pub mod private_link_services_for_m365_compliance_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1676,9 +1694,9 @@ pub mod private_endpoint_connections_comp { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1697,6 +1715,9 @@ pub mod private_endpoint_connections_comp { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2332,9 +2353,9 @@ pub mod private_link_services_for_m365_security_center { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2353,6 +2374,9 @@ pub mod private_link_services_for_m365_security_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2404,9 +2428,9 @@ pub mod private_link_services_for_m365_security_center { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForM365SecurityCenter" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2425,6 +2449,9 @@ pub mod private_link_services_for_m365_security_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2543,9 +2570,9 @@ pub mod private_endpoint_connections_sec { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2564,6 +2591,9 @@ pub mod private_endpoint_connections_sec { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3201,9 +3231,9 @@ pub mod private_link_services_for_o365_management_activity_api { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3222,6 +3252,9 @@ pub mod private_link_services_for_o365_management_activity_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3273,9 +3306,9 @@ pub mod private_link_services_for_o365_management_activity_api { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3294,6 +3327,9 @@ pub mod private_link_services_for_o365_management_activity_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3412,9 +3448,9 @@ pub mod private_endpoint_connections_adt_api { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3433,6 +3469,9 @@ pub mod private_endpoint_connections_adt_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4061,9 +4100,9 @@ pub mod private_link_services_for_scc_powershell { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4082,6 +4121,9 @@ pub mod private_link_services_for_scc_powershell { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4133,9 +4175,9 @@ pub mod private_link_services_for_scc_powershell { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForSCCPowershell" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4154,6 +4196,9 @@ pub mod private_link_services_for_scc_powershell { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4272,9 +4317,9 @@ pub mod private_endpoint_connections_for_scc_powershell { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForSCCPowershell/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4293,6 +4338,9 @@ pub mod private_endpoint_connections_for_scc_powershell { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/securityandcompliance/src/package_2021_03_08/models.rs b/services/mgmt/securityandcompliance/src/package_2021_03_08/models.rs index 0f7b58b2c4..9332aaef6d 100644 --- a/services/mgmt/securityandcompliance/src/package_2021_03_08/models.rs +++ b/services/mgmt/securityandcompliance/src/package_2021_03_08/models.rs @@ -12,7 +12,7 @@ pub struct ErrorDetails { pub error: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -92,8 +92,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -211,8 +211,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -418,8 +418,8 @@ pub struct PrivateLinkServicesForEdmUploadDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForEdmUploadDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForEdmUploadDescriptionListResult { @@ -455,8 +455,8 @@ pub struct PrivateLinkServicesForM365ComplianceCenterDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForM365ComplianceCenterDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForM365ComplianceCenterDescriptionListResult { @@ -492,8 +492,8 @@ pub struct PrivateLinkServicesForM365SecurityCenterDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForM365SecurityCenterDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForM365SecurityCenterDescriptionListResult { @@ -529,8 +529,8 @@ pub struct PrivateLinkServicesForMipPolicySyncDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForMipPolicySyncDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForMipPolicySyncDescriptionListResult { @@ -566,8 +566,8 @@ pub struct PrivateLinkServicesForO365ManagementActivityApiDescriptionListResult pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForO365ManagementActivityApiDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForO365ManagementActivityApiDescriptionListResult { @@ -603,8 +603,8 @@ pub struct PrivateLinkServicesForSccPowershellDescriptionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkServicesForSccPowershellDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkServicesForSccPowershellDescriptionListResult { diff --git a/services/mgmt/securityandcompliance/src/package_2021_03_08/operations.rs b/services/mgmt/securityandcompliance/src/package_2021_03_08/operations.rs index 4669b192e3..d4b40619e8 100644 --- a/services/mgmt/securityandcompliance/src/package_2021_03_08/operations.rs +++ b/services/mgmt/securityandcompliance/src/package_2021_03_08/operations.rs @@ -163,9 +163,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -184,6 +184,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -536,9 +539,9 @@ pub mod private_link_services_for_edm_upload { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -557,6 +560,9 @@ pub mod private_link_services_for_edm_upload { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -608,9 +614,9 @@ pub mod private_link_services_for_edm_upload { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForEDMUpload" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -629,6 +635,9 @@ pub mod private_link_services_for_edm_upload { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -816,9 +825,9 @@ pub mod private_endpoint_connections_for_edm { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForEDMUpload/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -837,6 +846,9 @@ pub mod private_endpoint_connections_for_edm { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1474,9 +1486,9 @@ pub mod private_link_services_for_m365_compliance_center { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1495,6 +1507,9 @@ pub mod private_link_services_for_m365_compliance_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1546,9 +1561,9 @@ pub mod private_link_services_for_m365_compliance_center { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1567,6 +1582,9 @@ pub mod private_link_services_for_m365_compliance_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1685,9 +1703,9 @@ pub mod private_endpoint_connections_comp { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForM365ComplianceCenter/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1706,6 +1724,9 @@ pub mod private_endpoint_connections_comp { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2341,9 +2362,9 @@ pub mod private_link_services_for_m365_security_center { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2362,6 +2383,9 @@ pub mod private_link_services_for_m365_security_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2413,9 +2437,9 @@ pub mod private_link_services_for_m365_security_center { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForM365SecurityCenter" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2434,6 +2458,9 @@ pub mod private_link_services_for_m365_security_center { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2552,9 +2579,9 @@ pub mod private_endpoint_connections_sec { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForM365SecurityCenter/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2573,6 +2600,9 @@ pub mod private_endpoint_connections_sec { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3210,9 +3240,9 @@ pub mod private_link_services_for_o365_management_activity_api { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3231,6 +3261,9 @@ pub mod private_link_services_for_o365_management_activity_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3282,9 +3315,9 @@ pub mod private_link_services_for_o365_management_activity_api { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3303,6 +3336,9 @@ pub mod private_link_services_for_o365_management_activity_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3421,9 +3457,9 @@ pub mod private_endpoint_connections_adt_api { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3442,6 +3478,9 @@ pub mod private_endpoint_connections_adt_api { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4070,9 +4109,9 @@ pub mod private_link_services_for_scc_powershell { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4091,6 +4130,9 @@ pub mod private_link_services_for_scc_powershell { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4142,9 +4184,9 @@ pub mod private_link_services_for_scc_powershell { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForSCCPowershell" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4163,6 +4205,9 @@ pub mod private_link_services_for_scc_powershell { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4281,9 +4326,9 @@ pub mod private_endpoint_connections_for_scc_powershell { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForSCCPowershell/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4302,6 +4347,9 @@ pub mod private_endpoint_connections_for_scc_powershell { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4930,9 +4978,9 @@ pub mod private_link_services_for_mip_policy_sync { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4951,6 +4999,9 @@ pub mod private_link_services_for_mip_policy_sync { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5002,9 +5053,9 @@ pub mod private_link_services_for_mip_policy_sync { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForMIPPolicySync" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5023,6 +5074,9 @@ pub mod private_link_services_for_mip_policy_sync { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5141,9 +5195,9 @@ pub mod private_endpoint_connections_for_mip_policy_sync { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SecurityAndCompliance/privateLinkServicesForMIPPolicySync/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5162,6 +5216,9 @@ pub mod private_endpoint_connections_for_mip_policy_sync { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/securityinsights/src/package_preview_2021_10/models.rs b/services/mgmt/securityinsights/src/package_preview_2021_10/models.rs index 469a4adeb6..2dcaf17004 100644 --- a/services/mgmt/securityinsights/src/package_preview_2021_10/models.rs +++ b/services/mgmt/securityinsights/src/package_preview_2021_10/models.rs @@ -307,8 +307,8 @@ pub struct ActionsList { pub value: Vec, } impl azure_core::Continuable for ActionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActionsList { @@ -736,8 +736,8 @@ pub struct AlertRuleTemplatesList { pub value: Vec, } impl azure_core::Continuable for AlertRuleTemplatesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRuleTemplatesList { @@ -763,8 +763,8 @@ pub struct AlertRulesList { pub value: Vec, } impl azure_core::Continuable for AlertRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRulesList { @@ -1408,8 +1408,8 @@ pub struct AutomationRulesList { pub next_link: Option, } impl azure_core::Continuable for AutomationRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationRulesList { @@ -1654,8 +1654,8 @@ pub struct BookmarkList { pub value: Vec, } impl azure_core::Continuable for BookmarkList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BookmarkList { @@ -1810,7 +1810,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2771,8 +2771,8 @@ pub struct DataConnectorList { pub value: Vec, } impl azure_core::Continuable for DataConnectorList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataConnectorList { @@ -3497,8 +3497,8 @@ pub struct EntityList { pub value: Vec, } impl azure_core::Continuable for EntityList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityList { @@ -3706,8 +3706,8 @@ pub struct EntityQueryList { pub value: Vec, } impl azure_core::Continuable for EntityQueryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityQueryList { @@ -3776,8 +3776,8 @@ pub struct EntityQueryTemplateList { pub value: Vec, } impl azure_core::Continuable for EntityQueryTemplateList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityQueryTemplateList { @@ -4705,8 +4705,8 @@ pub struct IncidentCommentList { pub value: Vec, } impl azure_core::Continuable for IncidentCommentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncidentCommentList { @@ -4872,8 +4872,8 @@ pub struct IncidentList { pub value: Vec, } impl azure_core::Continuable for IncidentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncidentList { @@ -5736,8 +5736,8 @@ pub struct MetadataList { pub next_link: Option, } impl azure_core::Continuable for MetadataList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataList { @@ -6168,8 +6168,8 @@ pub struct OfficeConsentList { pub value: Vec, } impl azure_core::Continuable for OfficeConsentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OfficeConsentList { @@ -6435,8 +6435,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -6613,8 +6613,8 @@ pub struct RelationList { pub value: Vec, } impl azure_core::Continuable for RelationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationList { @@ -6676,8 +6676,8 @@ pub struct RepoList { pub value: Vec, } impl azure_core::Continuable for RepoList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RepoList { @@ -7552,8 +7552,8 @@ pub struct SourceControlList { pub value: Vec, } impl azure_core::Continuable for SourceControlList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlList { @@ -8076,8 +8076,8 @@ pub struct ThreatIntelligenceInformationList { pub value: Vec, } impl azure_core::Continuable for ThreatIntelligenceInformationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ThreatIntelligenceInformationList { @@ -8626,8 +8626,8 @@ pub struct WatchlistItemList { pub value: Vec, } impl azure_core::Continuable for WatchlistItemList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatchlistItemList { @@ -8695,8 +8695,8 @@ pub struct WatchlistList { pub value: Vec, } impl azure_core::Continuable for WatchlistList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatchlistList { diff --git a/services/mgmt/securityinsights/src/package_preview_2021_10/operations.rs b/services/mgmt/securityinsights/src/package_preview_2021_10/operations.rs index 9e8dfddbad..aaf73fff6d 100644 --- a/services/mgmt/securityinsights/src/package_preview_2021_10/operations.rs +++ b/services/mgmt/securityinsights/src/package_preview_2021_10/operations.rs @@ -253,9 +253,9 @@ pub mod alert_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -274,6 +274,9 @@ pub mod alert_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -553,9 +556,9 @@ pub mod actions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRules/{}/actions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . rule_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -574,6 +577,9 @@ pub mod actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -815,9 +821,9 @@ pub mod alert_rule_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRuleTemplates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -836,6 +842,9 @@ pub mod alert_rule_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1168,9 +1177,9 @@ pub mod automation_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/automationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1189,6 +1198,9 @@ pub mod automation_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1465,9 +1477,9 @@ pub mod incidents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1486,6 +1498,9 @@ pub mod incidents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1961,9 +1976,9 @@ pub mod bookmarks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/bookmarks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1982,6 +1997,9 @@ pub mod bookmarks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2285,9 +2303,9 @@ pub mod bookmark_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/bookmarks/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . bookmark_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2306,6 +2324,9 @@ pub mod bookmark_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2826,9 +2847,9 @@ pub mod entities { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2847,6 +2868,9 @@ pub mod entities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3211,9 +3235,9 @@ pub mod entities_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entities/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . entity_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3232,6 +3256,9 @@ pub mod entities_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3438,9 +3465,9 @@ pub mod entity_queries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entityQueries" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3459,6 +3486,9 @@ pub mod entity_queries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3706,9 +3736,9 @@ pub mod entity_query_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entityQueryTemplates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3727,6 +3757,9 @@ pub mod entity_query_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3927,9 +3960,9 @@ pub mod incident_comments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents/{}/comments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . incident_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3948,6 +3981,9 @@ pub mod incident_comments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4266,9 +4302,9 @@ pub mod incident_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . incident_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4287,6 +4323,9 @@ pub mod incident_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4613,9 +4652,9 @@ pub mod metadata { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/metadata" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4634,6 +4673,9 @@ pub mod metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4948,9 +4990,9 @@ pub mod office_consents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/officeConsents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4969,6 +5011,9 @@ pub mod office_consents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5668,9 +5713,9 @@ pub mod source_control { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/listRepositories" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5689,6 +5734,9 @@ pub mod source_control { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5807,9 +5855,9 @@ pub mod source_controls { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/sourcecontrols" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5828,6 +5876,9 @@ pub mod source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6360,9 +6411,9 @@ pub mod threat_intelligence_indicator { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6381,6 +6432,9 @@ pub mod threat_intelligence_indicator { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6570,9 +6624,9 @@ pub mod threat_intelligence_indicators { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6591,6 +6645,9 @@ pub mod threat_intelligence_indicators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6785,9 +6842,9 @@ pub mod watchlists { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6806,6 +6863,9 @@ pub mod watchlists { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7085,9 +7145,9 @@ pub mod watchlist_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists/{}/watchlistItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . watchlist_alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7106,6 +7166,9 @@ pub mod watchlist_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7411,9 +7474,9 @@ pub mod data_connectors { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/dataConnectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7432,6 +7495,9 @@ pub mod data_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7803,9 +7869,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7824,6 +7890,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/securityinsights/src/package_preview_2022_01/models.rs b/services/mgmt/securityinsights/src/package_preview_2022_01/models.rs index 16f6a508cb..b472a5eb58 100644 --- a/services/mgmt/securityinsights/src/package_preview_2022_01/models.rs +++ b/services/mgmt/securityinsights/src/package_preview_2022_01/models.rs @@ -307,8 +307,8 @@ pub struct ActionsList { pub value: Vec, } impl azure_core::Continuable for ActionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActionsList { @@ -736,8 +736,8 @@ pub struct AlertRuleTemplatesList { pub value: Vec, } impl azure_core::Continuable for AlertRuleTemplatesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRuleTemplatesList { @@ -763,8 +763,8 @@ pub struct AlertRulesList { pub value: Vec, } impl azure_core::Continuable for AlertRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRulesList { @@ -1408,8 +1408,8 @@ pub struct AutomationRulesList { pub next_link: Option, } impl azure_core::Continuable for AutomationRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationRulesList { @@ -1669,8 +1669,8 @@ pub struct BookmarkList { pub value: Vec, } impl azure_core::Continuable for BookmarkList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BookmarkList { @@ -1825,7 +1825,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2789,8 +2789,8 @@ pub struct DataConnectorList { pub value: Vec, } impl azure_core::Continuable for DataConnectorList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataConnectorList { @@ -3677,8 +3677,8 @@ pub struct EntityList { pub value: Vec, } impl azure_core::Continuable for EntityList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityList { @@ -3886,8 +3886,8 @@ pub struct EntityQueryList { pub value: Vec, } impl azure_core::Continuable for EntityQueryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityQueryList { @@ -3956,8 +3956,8 @@ pub struct EntityQueryTemplateList { pub value: Vec, } impl azure_core::Continuable for EntityQueryTemplateList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityQueryTemplateList { @@ -4922,8 +4922,8 @@ pub struct IncidentCommentList { pub value: Vec, } impl azure_core::Continuable for IncidentCommentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncidentCommentList { @@ -5089,8 +5089,8 @@ pub struct IncidentList { pub value: Vec, } impl azure_core::Continuable for IncidentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncidentList { @@ -6013,8 +6013,8 @@ pub struct MetadataList { pub next_link: Option, } impl azure_core::Continuable for MetadataList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataList { @@ -6510,8 +6510,8 @@ pub struct OfficeConsentList { pub value: Vec, } impl azure_core::Continuable for OfficeConsentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OfficeConsentList { @@ -6777,8 +6777,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -6923,8 +6923,8 @@ pub struct RelationList { pub value: Vec, } impl azure_core::Continuable for RelationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationList { @@ -6986,8 +6986,8 @@ pub struct RepoList { pub value: Vec, } impl azure_core::Continuable for RepoList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RepoList { @@ -8004,8 +8004,8 @@ pub struct SourceControlList { pub value: Vec, } impl azure_core::Continuable for SourceControlList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlList { @@ -8519,8 +8519,8 @@ pub struct ThreatIntelligenceInformationList { pub value: Vec, } impl azure_core::Continuable for ThreatIntelligenceInformationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ThreatIntelligenceInformationList { @@ -9095,8 +9095,8 @@ pub struct WatchlistItemList { pub value: Vec, } impl azure_core::Continuable for WatchlistItemList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatchlistItemList { @@ -9164,8 +9164,8 @@ pub struct WatchlistList { pub value: Vec, } impl azure_core::Continuable for WatchlistList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatchlistList { diff --git a/services/mgmt/securityinsights/src/package_preview_2022_01/operations.rs b/services/mgmt/securityinsights/src/package_preview_2022_01/operations.rs index 566217d6cd..2f9295403e 100644 --- a/services/mgmt/securityinsights/src/package_preview_2022_01/operations.rs +++ b/services/mgmt/securityinsights/src/package_preview_2022_01/operations.rs @@ -253,9 +253,9 @@ pub mod alert_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -274,6 +274,9 @@ pub mod alert_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -553,9 +556,9 @@ pub mod actions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRules/{}/actions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . rule_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -574,6 +577,9 @@ pub mod actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -815,9 +821,9 @@ pub mod alert_rule_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRuleTemplates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -836,6 +842,9 @@ pub mod alert_rule_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1168,9 +1177,9 @@ pub mod automation_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/automationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1189,6 +1198,9 @@ pub mod automation_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1465,9 +1477,9 @@ pub mod incidents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1486,6 +1498,9 @@ pub mod incidents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1961,9 +1976,9 @@ pub mod bookmarks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/bookmarks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1982,6 +1997,9 @@ pub mod bookmarks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2285,9 +2303,9 @@ pub mod bookmark_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/bookmarks/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . bookmark_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2306,6 +2324,9 @@ pub mod bookmark_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2826,9 +2847,9 @@ pub mod entities { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2847,6 +2868,9 @@ pub mod entities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3211,9 +3235,9 @@ pub mod entities_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entities/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . entity_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3232,6 +3256,9 @@ pub mod entities_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3438,9 +3465,9 @@ pub mod entity_queries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entityQueries" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3459,6 +3486,9 @@ pub mod entity_queries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3706,9 +3736,9 @@ pub mod entity_query_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entityQueryTemplates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3727,6 +3757,9 @@ pub mod entity_query_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3927,9 +3960,9 @@ pub mod incident_comments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents/{}/comments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . incident_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3948,6 +3981,9 @@ pub mod incident_comments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4266,9 +4302,9 @@ pub mod incident_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . incident_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4287,6 +4323,9 @@ pub mod incident_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4613,9 +4652,9 @@ pub mod metadata { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/metadata" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4634,6 +4673,9 @@ pub mod metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4948,9 +4990,9 @@ pub mod office_consents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/officeConsents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4969,6 +5011,9 @@ pub mod office_consents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5668,9 +5713,9 @@ pub mod source_control { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/listRepositories" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5689,6 +5734,9 @@ pub mod source_control { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5807,9 +5855,9 @@ pub mod source_controls { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/sourcecontrols" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5828,6 +5876,9 @@ pub mod source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6360,9 +6411,9 @@ pub mod threat_intelligence_indicator { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6381,6 +6432,9 @@ pub mod threat_intelligence_indicator { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6570,9 +6624,9 @@ pub mod threat_intelligence_indicators { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6591,6 +6645,9 @@ pub mod threat_intelligence_indicators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6791,9 +6848,9 @@ pub mod watchlists { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6812,6 +6869,9 @@ pub mod watchlists { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7100,9 +7160,9 @@ pub mod watchlist_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists/{}/watchlistItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . watchlist_alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7121,6 +7181,9 @@ pub mod watchlist_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7429,9 +7492,9 @@ pub mod data_connectors { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/dataConnectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7450,6 +7513,9 @@ pub mod data_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7821,9 +7887,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7842,6 +7908,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/securityinsights/src/package_preview_2022_04/models.rs b/services/mgmt/securityinsights/src/package_preview_2022_04/models.rs index b2a21913bd..131d0fd5a4 100644 --- a/services/mgmt/securityinsights/src/package_preview_2022_04/models.rs +++ b/services/mgmt/securityinsights/src/package_preview_2022_04/models.rs @@ -307,8 +307,8 @@ pub struct ActionsList { pub value: Vec, } impl azure_core::Continuable for ActionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActionsList { @@ -736,8 +736,8 @@ pub struct AlertRuleTemplatesList { pub value: Vec, } impl azure_core::Continuable for AlertRuleTemplatesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRuleTemplatesList { @@ -763,8 +763,8 @@ pub struct AlertRulesList { pub value: Vec, } impl azure_core::Continuable for AlertRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRulesList { @@ -1408,8 +1408,8 @@ pub struct AutomationRulesList { pub next_link: Option, } impl azure_core::Continuable for AutomationRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationRulesList { @@ -1669,8 +1669,8 @@ pub struct BookmarkList { pub value: Vec, } impl azure_core::Continuable for BookmarkList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BookmarkList { @@ -1825,7 +1825,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2789,8 +2789,8 @@ pub struct DataConnectorList { pub value: Vec, } impl azure_core::Continuable for DataConnectorList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataConnectorList { @@ -3677,8 +3677,8 @@ pub struct EntityList { pub value: Vec, } impl azure_core::Continuable for EntityList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityList { @@ -3923,8 +3923,8 @@ pub struct EntityQueryList { pub value: Vec, } impl azure_core::Continuable for EntityQueryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityQueryList { @@ -3993,8 +3993,8 @@ pub struct EntityQueryTemplateList { pub value: Vec, } impl azure_core::Continuable for EntityQueryTemplateList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityQueryTemplateList { @@ -4959,8 +4959,8 @@ pub struct IncidentCommentList { pub value: Vec, } impl azure_core::Continuable for IncidentCommentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncidentCommentList { @@ -5126,8 +5126,8 @@ pub struct IncidentList { pub value: Vec, } impl azure_core::Continuable for IncidentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncidentList { @@ -6050,8 +6050,8 @@ pub struct MetadataList { pub next_link: Option, } impl azure_core::Continuable for MetadataList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataList { @@ -6547,8 +6547,8 @@ pub struct OfficeConsentList { pub value: Vec, } impl azure_core::Continuable for OfficeConsentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OfficeConsentList { @@ -6814,8 +6814,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -6919,8 +6919,8 @@ pub struct RelationList { pub value: Vec, } impl azure_core::Continuable for RelationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationList { @@ -6982,8 +6982,8 @@ pub struct RepoList { pub value: Vec, } impl azure_core::Continuable for RepoList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RepoList { @@ -8000,8 +8000,8 @@ pub struct SourceControlList { pub value: Vec, } impl azure_core::Continuable for SourceControlList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlList { @@ -8515,8 +8515,8 @@ pub struct ThreatIntelligenceInformationList { pub value: Vec, } impl azure_core::Continuable for ThreatIntelligenceInformationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ThreatIntelligenceInformationList { @@ -9091,8 +9091,8 @@ pub struct WatchlistItemList { pub value: Vec, } impl azure_core::Continuable for WatchlistItemList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatchlistItemList { @@ -9160,8 +9160,8 @@ pub struct WatchlistList { pub value: Vec, } impl azure_core::Continuable for WatchlistList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatchlistList { diff --git a/services/mgmt/securityinsights/src/package_preview_2022_04/operations.rs b/services/mgmt/securityinsights/src/package_preview_2022_04/operations.rs index 945b353945..7cdae6841f 100644 --- a/services/mgmt/securityinsights/src/package_preview_2022_04/operations.rs +++ b/services/mgmt/securityinsights/src/package_preview_2022_04/operations.rs @@ -253,9 +253,9 @@ pub mod alert_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -274,6 +274,9 @@ pub mod alert_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -553,9 +556,9 @@ pub mod actions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRules/{}/actions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . rule_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -574,6 +577,9 @@ pub mod actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -815,9 +821,9 @@ pub mod alert_rule_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRuleTemplates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -836,6 +842,9 @@ pub mod alert_rule_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1168,9 +1177,9 @@ pub mod automation_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/automationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1189,6 +1198,9 @@ pub mod automation_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1465,9 +1477,9 @@ pub mod incidents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1486,6 +1498,9 @@ pub mod incidents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1961,9 +1976,9 @@ pub mod bookmarks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/bookmarks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1982,6 +1997,9 @@ pub mod bookmarks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2285,9 +2303,9 @@ pub mod bookmark_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/bookmarks/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . bookmark_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2306,6 +2324,9 @@ pub mod bookmark_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2826,9 +2847,9 @@ pub mod entities { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2847,6 +2868,9 @@ pub mod entities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3211,9 +3235,9 @@ pub mod entities_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entities/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . entity_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3232,6 +3256,9 @@ pub mod entities_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3438,9 +3465,9 @@ pub mod entity_queries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entityQueries" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3459,6 +3486,9 @@ pub mod entity_queries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3706,9 +3736,9 @@ pub mod entity_query_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entityQueryTemplates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3727,6 +3757,9 @@ pub mod entity_query_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3927,9 +3960,9 @@ pub mod incident_comments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents/{}/comments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . incident_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3948,6 +3981,9 @@ pub mod incident_comments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4266,9 +4302,9 @@ pub mod incident_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . incident_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4287,6 +4323,9 @@ pub mod incident_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4613,9 +4652,9 @@ pub mod metadata { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/metadata" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4634,6 +4673,9 @@ pub mod metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4948,9 +4990,9 @@ pub mod office_consents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/officeConsents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4969,6 +5011,9 @@ pub mod office_consents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5668,9 +5713,9 @@ pub mod source_control { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/listRepositories" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5689,6 +5734,9 @@ pub mod source_control { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5807,9 +5855,9 @@ pub mod source_controls { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/sourcecontrols" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5828,6 +5876,9 @@ pub mod source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6360,9 +6411,9 @@ pub mod threat_intelligence_indicator { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6381,6 +6432,9 @@ pub mod threat_intelligence_indicator { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6570,9 +6624,9 @@ pub mod threat_intelligence_indicators { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6591,6 +6645,9 @@ pub mod threat_intelligence_indicators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6791,9 +6848,9 @@ pub mod watchlists { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6812,6 +6869,9 @@ pub mod watchlists { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7100,9 +7160,9 @@ pub mod watchlist_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists/{}/watchlistItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . watchlist_alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7121,6 +7181,9 @@ pub mod watchlist_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7429,9 +7492,9 @@ pub mod data_connectors { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/dataConnectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7450,6 +7513,9 @@ pub mod data_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7821,9 +7887,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7842,6 +7908,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/securityinsights/src/package_preview_2022_05/models.rs b/services/mgmt/securityinsights/src/package_preview_2022_05/models.rs index 975e9fa3c3..9277d46706 100644 --- a/services/mgmt/securityinsights/src/package_preview_2022_05/models.rs +++ b/services/mgmt/securityinsights/src/package_preview_2022_05/models.rs @@ -307,8 +307,8 @@ pub struct ActionsList { pub value: Vec, } impl azure_core::Continuable for ActionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActionsList { @@ -736,8 +736,8 @@ pub struct AlertRuleTemplatesList { pub value: Vec, } impl azure_core::Continuable for AlertRuleTemplatesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRuleTemplatesList { @@ -763,8 +763,8 @@ pub struct AlertRulesList { pub value: Vec, } impl azure_core::Continuable for AlertRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRulesList { @@ -1797,8 +1797,8 @@ pub struct AutomationRulesList { pub next_link: Option, } impl azure_core::Continuable for AutomationRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationRulesList { @@ -2058,8 +2058,8 @@ pub struct BookmarkList { pub value: Vec, } impl azure_core::Continuable for BookmarkList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BookmarkList { @@ -2214,7 +2214,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3182,8 +3182,8 @@ pub struct DataConnectorList { pub value: Vec, } impl azure_core::Continuable for DataConnectorList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataConnectorList { @@ -4070,8 +4070,8 @@ pub struct EntityList { pub value: Vec, } impl azure_core::Continuable for EntityList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityList { @@ -4316,8 +4316,8 @@ pub struct EntityQueryList { pub value: Vec, } impl azure_core::Continuable for EntityQueryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityQueryList { @@ -4386,8 +4386,8 @@ pub struct EntityQueryTemplateList { pub value: Vec, } impl azure_core::Continuable for EntityQueryTemplateList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityQueryTemplateList { @@ -5384,8 +5384,8 @@ pub struct IncidentCommentList { pub value: Vec, } impl azure_core::Continuable for IncidentCommentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncidentCommentList { @@ -5551,8 +5551,8 @@ pub struct IncidentList { pub value: Vec, } impl azure_core::Continuable for IncidentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncidentList { @@ -6475,8 +6475,8 @@ pub struct MetadataList { pub next_link: Option, } impl azure_core::Continuable for MetadataList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataList { @@ -6972,8 +6972,8 @@ pub struct OfficeConsentList { pub value: Vec, } impl azure_core::Continuable for OfficeConsentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OfficeConsentList { @@ -7239,8 +7239,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -7376,8 +7376,8 @@ pub struct RelationList { pub value: Vec, } impl azure_core::Continuable for RelationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationList { @@ -7439,8 +7439,8 @@ pub struct RepoList { pub value: Vec, } impl azure_core::Continuable for RepoList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RepoList { @@ -8345,8 +8345,8 @@ pub struct SecurityMlAnalyticsSettingsList { pub value: Vec, } impl azure_core::Continuable for SecurityMlAnalyticsSettingsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityMlAnalyticsSettingsList { @@ -8486,8 +8486,8 @@ pub struct SourceControlList { pub value: Vec, } impl azure_core::Continuable for SourceControlList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlList { @@ -9001,8 +9001,8 @@ pub struct ThreatIntelligenceInformationList { pub value: Vec, } impl azure_core::Continuable for ThreatIntelligenceInformationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ThreatIntelligenceInformationList { @@ -9577,8 +9577,8 @@ pub struct WatchlistItemList { pub value: Vec, } impl azure_core::Continuable for WatchlistItemList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatchlistItemList { @@ -9646,8 +9646,8 @@ pub struct WatchlistList { pub value: Vec, } impl azure_core::Continuable for WatchlistList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatchlistList { diff --git a/services/mgmt/securityinsights/src/package_preview_2022_05/operations.rs b/services/mgmt/securityinsights/src/package_preview_2022_05/operations.rs index 421af2afe3..6c9539d7a4 100644 --- a/services/mgmt/securityinsights/src/package_preview_2022_05/operations.rs +++ b/services/mgmt/securityinsights/src/package_preview_2022_05/operations.rs @@ -256,9 +256,9 @@ pub mod alert_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -277,6 +277,9 @@ pub mod alert_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -556,9 +559,9 @@ pub mod actions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRules/{}/actions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . rule_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -577,6 +580,9 @@ pub mod actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -818,9 +824,9 @@ pub mod alert_rule_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRuleTemplates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -839,6 +845,9 @@ pub mod alert_rule_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1171,9 +1180,9 @@ pub mod automation_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/automationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1192,6 +1201,9 @@ pub mod automation_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1468,9 +1480,9 @@ pub mod incidents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1489,6 +1501,9 @@ pub mod incidents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1964,9 +1979,9 @@ pub mod bookmarks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/bookmarks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1985,6 +2000,9 @@ pub mod bookmarks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2288,9 +2306,9 @@ pub mod bookmark_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/bookmarks/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . bookmark_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2309,6 +2327,9 @@ pub mod bookmark_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2829,9 +2850,9 @@ pub mod entities { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2850,6 +2871,9 @@ pub mod entities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3214,9 +3238,9 @@ pub mod entities_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entities/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . entity_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3235,6 +3259,9 @@ pub mod entities_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3441,9 +3468,9 @@ pub mod entity_queries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entityQueries" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3462,6 +3489,9 @@ pub mod entity_queries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3709,9 +3739,9 @@ pub mod entity_query_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entityQueryTemplates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3730,6 +3760,9 @@ pub mod entity_query_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3930,9 +3963,9 @@ pub mod incident_comments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents/{}/comments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . incident_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3951,6 +3984,9 @@ pub mod incident_comments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4269,9 +4305,9 @@ pub mod incident_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . incident_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4290,6 +4326,9 @@ pub mod incident_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4616,9 +4655,9 @@ pub mod metadata { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/metadata" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4637,6 +4676,9 @@ pub mod metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4951,9 +4993,9 @@ pub mod office_consents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/officeConsents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4972,6 +5014,9 @@ pub mod office_consents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5459,9 +5504,9 @@ pub mod security_ml_analytics_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5480,6 +5525,9 @@ pub mod security_ml_analytics_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5962,9 +6010,9 @@ pub mod source_control { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/listRepositories" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5983,6 +6031,9 @@ pub mod source_control { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6101,9 +6152,9 @@ pub mod source_controls { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/sourcecontrols" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6122,6 +6173,9 @@ pub mod source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6654,9 +6708,9 @@ pub mod threat_intelligence_indicator { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6675,6 +6729,9 @@ pub mod threat_intelligence_indicator { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6864,9 +6921,9 @@ pub mod threat_intelligence_indicators { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6885,6 +6942,9 @@ pub mod threat_intelligence_indicators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7085,9 +7145,9 @@ pub mod watchlists { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7106,6 +7166,9 @@ pub mod watchlists { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7394,9 +7457,9 @@ pub mod watchlist_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists/{}/watchlistItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . watchlist_alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7415,6 +7478,9 @@ pub mod watchlist_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7723,9 +7789,9 @@ pub mod data_connectors { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/dataConnectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7744,6 +7810,9 @@ pub mod data_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8115,9 +8184,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8136,6 +8205,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/securityinsights/src/package_preview_2022_06/models.rs b/services/mgmt/securityinsights/src/package_preview_2022_06/models.rs index f98e4267a9..537b8306cc 100644 --- a/services/mgmt/securityinsights/src/package_preview_2022_06/models.rs +++ b/services/mgmt/securityinsights/src/package_preview_2022_06/models.rs @@ -307,8 +307,8 @@ pub struct ActionsList { pub value: Vec, } impl azure_core::Continuable for ActionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ActionsList { @@ -736,8 +736,8 @@ pub struct AlertRuleTemplatesList { pub value: Vec, } impl azure_core::Continuable for AlertRuleTemplatesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRuleTemplatesList { @@ -763,8 +763,8 @@ pub struct AlertRulesList { pub value: Vec, } impl azure_core::Continuable for AlertRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertRulesList { @@ -1797,8 +1797,8 @@ pub struct AutomationRulesList { pub next_link: Option, } impl azure_core::Continuable for AutomationRulesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AutomationRulesList { @@ -2058,8 +2058,8 @@ pub struct BookmarkList { pub value: Vec, } impl azure_core::Continuable for BookmarkList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BookmarkList { @@ -2214,7 +2214,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3191,8 +3191,8 @@ pub struct DataConnectorList { pub value: Vec, } impl azure_core::Continuable for DataConnectorList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataConnectorList { @@ -4079,8 +4079,8 @@ pub struct EntityList { pub value: Vec, } impl azure_core::Continuable for EntityList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityList { @@ -4325,8 +4325,8 @@ pub struct EntityQueryList { pub value: Vec, } impl azure_core::Continuable for EntityQueryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityQueryList { @@ -4395,8 +4395,8 @@ pub struct EntityQueryTemplateList { pub value: Vec, } impl azure_core::Continuable for EntityQueryTemplateList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EntityQueryTemplateList { @@ -5393,8 +5393,8 @@ pub struct IncidentCommentList { pub value: Vec, } impl azure_core::Continuable for IncidentCommentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncidentCommentList { @@ -5560,8 +5560,8 @@ pub struct IncidentList { pub value: Vec, } impl azure_core::Continuable for IncidentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncidentList { @@ -6484,8 +6484,8 @@ pub struct MetadataList { pub next_link: Option, } impl azure_core::Continuable for MetadataList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataList { @@ -6981,8 +6981,8 @@ pub struct OfficeConsentList { pub value: Vec, } impl azure_core::Continuable for OfficeConsentList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OfficeConsentList { @@ -7248,8 +7248,8 @@ pub struct OperationsList { pub value: Vec, } impl azure_core::Continuable for OperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationsList { @@ -7385,8 +7385,8 @@ pub struct RelationList { pub value: Vec, } impl azure_core::Continuable for RelationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationList { @@ -7448,8 +7448,8 @@ pub struct RepoList { pub value: Vec, } impl azure_core::Continuable for RepoList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RepoList { @@ -8354,8 +8354,8 @@ pub struct SecurityMlAnalyticsSettingsList { pub value: Vec, } impl azure_core::Continuable for SecurityMlAnalyticsSettingsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityMlAnalyticsSettingsList { @@ -8495,8 +8495,8 @@ pub struct SourceControlList { pub value: Vec, } impl azure_core::Continuable for SourceControlList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlList { @@ -9010,8 +9010,8 @@ pub struct ThreatIntelligenceInformationList { pub value: Vec, } impl azure_core::Continuable for ThreatIntelligenceInformationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ThreatIntelligenceInformationList { @@ -9586,8 +9586,8 @@ pub struct WatchlistItemList { pub value: Vec, } impl azure_core::Continuable for WatchlistItemList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatchlistItemList { @@ -9655,8 +9655,8 @@ pub struct WatchlistList { pub value: Vec, } impl azure_core::Continuable for WatchlistList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WatchlistList { diff --git a/services/mgmt/securityinsights/src/package_preview_2022_06/operations.rs b/services/mgmt/securityinsights/src/package_preview_2022_06/operations.rs index fe56e7071b..0967dce555 100644 --- a/services/mgmt/securityinsights/src/package_preview_2022_06/operations.rs +++ b/services/mgmt/securityinsights/src/package_preview_2022_06/operations.rs @@ -256,9 +256,9 @@ pub mod alert_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -277,6 +277,9 @@ pub mod alert_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -556,9 +559,9 @@ pub mod actions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRules/{}/actions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . rule_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -577,6 +580,9 @@ pub mod actions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -818,9 +824,9 @@ pub mod alert_rule_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/alertRuleTemplates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -839,6 +845,9 @@ pub mod alert_rule_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1171,9 +1180,9 @@ pub mod automation_rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/automationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1192,6 +1201,9 @@ pub mod automation_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1468,9 +1480,9 @@ pub mod incidents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1489,6 +1501,9 @@ pub mod incidents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1964,9 +1979,9 @@ pub mod bookmarks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/bookmarks" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1985,6 +2000,9 @@ pub mod bookmarks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2288,9 +2306,9 @@ pub mod bookmark_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/bookmarks/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . bookmark_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2309,6 +2327,9 @@ pub mod bookmark_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2829,9 +2850,9 @@ pub mod entities { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2850,6 +2871,9 @@ pub mod entities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3214,9 +3238,9 @@ pub mod entities_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entities/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . entity_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3235,6 +3259,9 @@ pub mod entities_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3441,9 +3468,9 @@ pub mod entity_queries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entityQueries" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3462,6 +3489,9 @@ pub mod entity_queries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3709,9 +3739,9 @@ pub mod entity_query_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/entityQueryTemplates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3730,6 +3760,9 @@ pub mod entity_query_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3930,9 +3963,9 @@ pub mod incident_comments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents/{}/comments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . incident_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3951,6 +3984,9 @@ pub mod incident_comments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4269,9 +4305,9 @@ pub mod incident_relations { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/incidents/{}/relations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . incident_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4290,6 +4326,9 @@ pub mod incident_relations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4616,9 +4655,9 @@ pub mod metadata { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/metadata" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4637,6 +4676,9 @@ pub mod metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4951,9 +4993,9 @@ pub mod office_consents { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/officeConsents" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4972,6 +5014,9 @@ pub mod office_consents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5459,9 +5504,9 @@ pub mod security_ml_analytics_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5480,6 +5525,9 @@ pub mod security_ml_analytics_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5962,9 +6010,9 @@ pub mod source_control { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/listRepositories" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5983,6 +6031,9 @@ pub mod source_control { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6101,9 +6152,9 @@ pub mod source_controls { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/sourcecontrols" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6122,6 +6173,9 @@ pub mod source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6654,9 +6708,9 @@ pub mod threat_intelligence_indicator { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6675,6 +6729,9 @@ pub mod threat_intelligence_indicator { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6864,9 +6921,9 @@ pub mod threat_intelligence_indicators { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6885,6 +6942,9 @@ pub mod threat_intelligence_indicators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7085,9 +7145,9 @@ pub mod watchlists { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7106,6 +7166,9 @@ pub mod watchlists { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7394,9 +7457,9 @@ pub mod watchlist_items { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists/{}/watchlistItems" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . watchlist_alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7415,6 +7478,9 @@ pub mod watchlist_items { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7723,9 +7789,9 @@ pub mod data_connectors { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/dataConnectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7744,6 +7810,9 @@ pub mod data_connectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8115,9 +8184,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8136,6 +8205,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicebus/src/package_2018_01_preview/models.rs b/services/mgmt/servicebus/src/package_2018_01_preview/models.rs index 37c78e8103..2615753989 100644 --- a/services/mgmt/servicebus/src/package_2018_01_preview/models.rs +++ b/services/mgmt/servicebus/src/package_2018_01_preview/models.rs @@ -121,8 +121,8 @@ pub struct ArmDisasterRecoveryListResult { pub next_link: Option, } impl azure_core::Continuable for ArmDisasterRecoveryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArmDisasterRecoveryListResult { @@ -391,7 +391,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -438,8 +438,8 @@ pub struct EventHubListResult { pub next_link: Option, } impl azure_core::Continuable for EventHubListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventHubListResult { @@ -644,8 +644,8 @@ pub struct IpFilterRuleListResult { pub next_link: Option, } impl azure_core::Continuable for IpFilterRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IpFilterRuleListResult { @@ -703,8 +703,8 @@ pub struct MigrationConfigListResult { pub next_link: Option, } impl azure_core::Continuable for MigrationConfigListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationConfigListResult { @@ -918,8 +918,8 @@ pub struct NetworkRuleSetListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkRuleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkRuleSetListResult { @@ -974,8 +974,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1024,8 +1024,8 @@ pub struct PremiumMessagingRegionsListResult { pub next_link: Option, } impl azure_core::Continuable for PremiumMessagingRegionsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PremiumMessagingRegionsListResult { @@ -1070,8 +1070,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1282,8 +1282,8 @@ pub struct RuleListResult { pub next_link: Option, } impl azure_core::Continuable for RuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RuleListResult { @@ -1351,8 +1351,8 @@ pub struct SbAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SbAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbAuthorizationRuleListResult { @@ -1396,8 +1396,8 @@ pub struct SbNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for SbNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbNamespaceListResult { @@ -1507,8 +1507,8 @@ pub struct SbQueueListResult { pub next_link: Option, } impl azure_core::Continuable for SbQueueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbQueueListResult { @@ -1651,8 +1651,8 @@ pub struct SbSubscriptionListResult { pub next_link: Option, } impl azure_core::Continuable for SbSubscriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbSubscriptionListResult { @@ -1749,8 +1749,8 @@ pub struct SbTopicListResult { pub next_link: Option, } impl azure_core::Continuable for SbTopicListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbTopicListResult { @@ -1934,8 +1934,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { diff --git a/services/mgmt/servicebus/src/package_2018_01_preview/operations.rs b/services/mgmt/servicebus/src/package_2018_01_preview/operations.rs index 46de80f813..6c7e6949d7 100644 --- a/services/mgmt/servicebus/src/package_2018_01_preview/operations.rs +++ b/services/mgmt/servicebus/src/package_2018_01_preview/operations.rs @@ -494,9 +494,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -515,6 +515,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -733,9 +736,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -754,6 +757,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -809,9 +815,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -830,6 +836,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1126,9 +1135,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1147,6 +1156,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1369,9 +1381,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1390,6 +1402,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1865,9 +1880,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1886,6 +1901,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2059,9 +2077,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2080,6 +2098,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2573,9 +2594,9 @@ pub mod disaster_recovery_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2594,6 +2615,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2908,9 +2932,9 @@ pub mod disaster_recovery_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/disasterRecoveryConfigs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2929,6 +2953,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3250,9 +3277,9 @@ pub mod queues { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/queues/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . queue_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3271,6 +3298,9 @@ pub mod queues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3584,9 +3614,9 @@ pub mod queues { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3605,6 +3635,9 @@ pub mod queues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4000,9 +4033,9 @@ pub mod topics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/topics/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . topic_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4021,6 +4054,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4334,9 +4370,9 @@ pub mod topics { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4355,6 +4391,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4602,9 +4641,9 @@ pub mod event_hubs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4623,6 +4662,9 @@ pub mod event_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4776,9 +4818,9 @@ pub mod migration_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4797,6 +4839,9 @@ pub mod migration_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5121,9 +5166,9 @@ pub mod premium_messaging_regions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5142,6 +5187,9 @@ pub mod premium_messaging_regions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5210,9 +5258,9 @@ pub mod regions { &this.sku ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5231,6 +5279,9 @@ pub mod regions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5376,9 +5427,9 @@ pub mod subscriptions { &this.topic_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5397,6 +5448,9 @@ pub mod subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5721,9 +5775,9 @@ pub mod rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/topics/{}/subscriptions/{}/rules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . topic_name , & this . subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5742,6 +5796,9 @@ pub mod rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5956,9 +6013,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceBus/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5977,6 +6034,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicebus/src/package_2021_01_preview/models.rs b/services/mgmt/servicebus/src/package_2021_01_preview/models.rs index e4858fa9af..7ae0aab285 100644 --- a/services/mgmt/servicebus/src/package_2021_01_preview/models.rs +++ b/services/mgmt/servicebus/src/package_2021_01_preview/models.rs @@ -124,8 +124,8 @@ pub struct ArmDisasterRecoveryListResult { pub next_link: Option, } impl azure_core::Continuable for ArmDisasterRecoveryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArmDisasterRecoveryListResult { @@ -343,7 +343,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -500,8 +500,8 @@ pub struct MigrationConfigListResult { pub next_link: Option, } impl azure_core::Continuable for MigrationConfigListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationConfigListResult { @@ -721,8 +721,8 @@ pub struct NetworkRuleSetListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkRuleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkRuleSetListResult { @@ -777,8 +777,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -826,8 +826,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1041,8 +1041,8 @@ pub struct RuleListResult { pub next_link: Option, } impl azure_core::Continuable for RuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RuleListResult { @@ -1113,8 +1113,8 @@ pub struct SbAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SbAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbAuthorizationRuleListResult { @@ -1162,8 +1162,8 @@ pub struct SbNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for SbNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbNamespaceListResult { @@ -1255,8 +1255,8 @@ pub struct SbQueueListResult { pub next_link: Option, } impl azure_core::Continuable for SbQueueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbQueueListResult { @@ -1402,8 +1402,8 @@ pub struct SbSubscriptionListResult { pub next_link: Option, } impl azure_core::Continuable for SbSubscriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbSubscriptionListResult { @@ -1503,8 +1503,8 @@ pub struct SbTopicListResult { pub next_link: Option, } impl azure_core::Continuable for SbTopicListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbTopicListResult { diff --git a/services/mgmt/servicebus/src/package_2021_01_preview/operations.rs b/services/mgmt/servicebus/src/package_2021_01_preview/operations.rs index 416d2281da..c381c1e312 100644 --- a/services/mgmt/servicebus/src/package_2021_01_preview/operations.rs +++ b/services/mgmt/servicebus/src/package_2021_01_preview/operations.rs @@ -346,9 +346,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -367,6 +367,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -422,9 +425,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -443,6 +446,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -845,9 +851,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -866,6 +872,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -923,9 +932,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -944,6 +953,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1379,9 +1391,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1400,6 +1412,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1685,9 +1700,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceBus/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1706,6 +1721,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1972,9 +1990,9 @@ pub mod disaster_recovery_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1993,6 +2011,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2307,9 +2328,9 @@ pub mod disaster_recovery_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/disasterRecoveryConfigs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2328,6 +2349,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2578,9 +2602,9 @@ pub mod migration_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2599,6 +2623,9 @@ pub mod migration_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3082,9 +3109,9 @@ pub mod queues { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/queues/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . queue_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3103,6 +3130,9 @@ pub mod queues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3416,9 +3446,9 @@ pub mod queues { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3437,6 +3467,9 @@ pub mod queues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3832,9 +3865,9 @@ pub mod topics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/topics/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . topic_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3853,6 +3886,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4166,9 +4202,9 @@ pub mod topics { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4187,6 +4223,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4505,9 +4544,9 @@ pub mod rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/topics/{}/subscriptions/{}/rules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . topic_name , & this . subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4526,6 +4565,9 @@ pub mod rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4827,9 +4869,9 @@ pub mod subscriptions { &this.topic_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4848,6 +4890,9 @@ pub mod subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicebus/src/package_2021_06_preview/models.rs b/services/mgmt/servicebus/src/package_2021_06_preview/models.rs index 89addad41e..47ceeb49e1 100644 --- a/services/mgmt/servicebus/src/package_2021_06_preview/models.rs +++ b/services/mgmt/servicebus/src/package_2021_06_preview/models.rs @@ -124,8 +124,8 @@ pub struct ArmDisasterRecoveryListResult { pub next_link: Option, } impl azure_core::Continuable for ArmDisasterRecoveryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArmDisasterRecoveryListResult { @@ -328,7 +328,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -485,8 +485,8 @@ pub struct MigrationConfigListResult { pub next_link: Option, } impl azure_core::Continuable for MigrationConfigListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationConfigListResult { @@ -754,8 +754,8 @@ pub struct NetworkRuleSetListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkRuleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkRuleSetListResult { @@ -810,8 +810,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -859,8 +859,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1074,8 +1074,8 @@ pub struct RuleListResult { pub next_link: Option, } impl azure_core::Continuable for RuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RuleListResult { @@ -1146,8 +1146,8 @@ pub struct SbAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SbAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbAuthorizationRuleListResult { @@ -1213,8 +1213,8 @@ pub struct SbNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for SbNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbNamespaceListResult { @@ -1309,8 +1309,8 @@ pub struct SbQueueListResult { pub next_link: Option, } impl azure_core::Continuable for SbQueueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbQueueListResult { @@ -1459,8 +1459,8 @@ pub struct SbSubscriptionListResult { pub next_link: Option, } impl azure_core::Continuable for SbSubscriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbSubscriptionListResult { @@ -1566,8 +1566,8 @@ pub struct SbTopicListResult { pub next_link: Option, } impl azure_core::Continuable for SbTopicListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbTopicListResult { diff --git a/services/mgmt/servicebus/src/package_2021_06_preview/operations.rs b/services/mgmt/servicebus/src/package_2021_06_preview/operations.rs index 35d50fce5a..40150195b6 100644 --- a/services/mgmt/servicebus/src/package_2021_06_preview/operations.rs +++ b/services/mgmt/servicebus/src/package_2021_06_preview/operations.rs @@ -346,9 +346,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -367,6 +367,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -422,9 +425,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -443,6 +446,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -845,9 +851,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -866,6 +872,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -923,9 +932,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -944,6 +953,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1379,9 +1391,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1400,6 +1412,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1685,9 +1700,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceBus/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1706,6 +1721,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1972,9 +1990,9 @@ pub mod disaster_recovery_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1993,6 +2011,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2307,9 +2328,9 @@ pub mod disaster_recovery_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/disasterRecoveryConfigs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2328,6 +2349,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2578,9 +2602,9 @@ pub mod migration_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2599,6 +2623,9 @@ pub mod migration_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3082,9 +3109,9 @@ pub mod queues { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/queues/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . queue_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3103,6 +3130,9 @@ pub mod queues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3416,9 +3446,9 @@ pub mod queues { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3437,6 +3467,9 @@ pub mod queues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3832,9 +3865,9 @@ pub mod topics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/topics/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . topic_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3853,6 +3886,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4166,9 +4202,9 @@ pub mod topics { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4187,6 +4223,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4505,9 +4544,9 @@ pub mod rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/topics/{}/subscriptions/{}/rules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . topic_name , & this . subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4526,6 +4565,9 @@ pub mod rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4827,9 +4869,9 @@ pub mod subscriptions { &this.topic_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4848,6 +4890,9 @@ pub mod subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicebus/src/package_2021_11/models.rs b/services/mgmt/servicebus/src/package_2021_11/models.rs index 61a419f4f3..63d83c1a2a 100644 --- a/services/mgmt/servicebus/src/package_2021_11/models.rs +++ b/services/mgmt/servicebus/src/package_2021_11/models.rs @@ -124,8 +124,8 @@ pub struct ArmDisasterRecoveryListResult { pub next_link: Option, } impl azure_core::Continuable for ArmDisasterRecoveryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArmDisasterRecoveryListResult { @@ -328,7 +328,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -485,8 +485,8 @@ pub struct MigrationConfigListResult { pub next_link: Option, } impl azure_core::Continuable for MigrationConfigListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationConfigListResult { @@ -754,8 +754,8 @@ pub struct NetworkRuleSetListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkRuleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkRuleSetListResult { @@ -819,8 +819,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -868,8 +868,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1104,8 +1104,8 @@ pub struct RuleListResult { pub next_link: Option, } impl azure_core::Continuable for RuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RuleListResult { @@ -1176,8 +1176,8 @@ pub struct SbAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SbAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbAuthorizationRuleListResult { @@ -1243,8 +1243,8 @@ pub struct SbNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for SbNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbNamespaceListResult { @@ -1381,8 +1381,8 @@ pub struct SbQueueListResult { pub next_link: Option, } impl azure_core::Continuable for SbQueueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbQueueListResult { @@ -1531,8 +1531,8 @@ pub struct SbSubscriptionListResult { pub next_link: Option, } impl azure_core::Continuable for SbSubscriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbSubscriptionListResult { @@ -1638,8 +1638,8 @@ pub struct SbTopicListResult { pub next_link: Option, } impl azure_core::Continuable for SbTopicListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbTopicListResult { diff --git a/services/mgmt/servicebus/src/package_2021_11/operations.rs b/services/mgmt/servicebus/src/package_2021_11/operations.rs index 5a8c034183..dda848281b 100644 --- a/services/mgmt/servicebus/src/package_2021_11/operations.rs +++ b/services/mgmt/servicebus/src/package_2021_11/operations.rs @@ -346,9 +346,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -367,6 +367,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -422,9 +425,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -443,6 +446,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -845,9 +851,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -866,6 +872,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -923,9 +932,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -944,6 +953,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1379,9 +1391,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1400,6 +1412,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1691,9 +1706,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceBus/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1712,6 +1727,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1930,9 +1948,9 @@ pub mod disaster_recovery_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1951,6 +1969,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2270,9 +2291,9 @@ pub mod disaster_recovery_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/disasterRecoveryConfigs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2291,6 +2312,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2589,9 +2613,9 @@ pub mod migration_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2610,6 +2634,9 @@ pub mod migration_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3093,9 +3120,9 @@ pub mod queues { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/queues/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . queue_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3114,6 +3141,9 @@ pub mod queues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3427,9 +3457,9 @@ pub mod queues { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3448,6 +3478,9 @@ pub mod queues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3843,9 +3876,9 @@ pub mod topics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/topics/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . topic_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3864,6 +3897,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4177,9 +4213,9 @@ pub mod topics { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4198,6 +4234,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4516,9 +4555,9 @@ pub mod rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/topics/{}/subscriptions/{}/rules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . topic_name , & this . subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4537,6 +4576,9 @@ pub mod rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4838,9 +4880,9 @@ pub mod subscriptions { &this.topic_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4859,6 +4901,9 @@ pub mod subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicebus/src/package_2022_01_preview/models.rs b/services/mgmt/servicebus/src/package_2022_01_preview/models.rs index 0238660066..a9da62ad77 100644 --- a/services/mgmt/servicebus/src/package_2022_01_preview/models.rs +++ b/services/mgmt/servicebus/src/package_2022_01_preview/models.rs @@ -188,8 +188,8 @@ pub struct ArmDisasterRecoveryListResult { pub next_link: Option, } impl azure_core::Continuable for ArmDisasterRecoveryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ArmDisasterRecoveryListResult { @@ -422,7 +422,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -643,8 +643,8 @@ pub struct MigrationConfigListResult { pub next_link: Option, } impl azure_core::Continuable for MigrationConfigListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MigrationConfigListResult { @@ -912,8 +912,8 @@ pub struct NetworkRuleSetListResult { pub next_link: Option, } impl azure_core::Continuable for NetworkRuleSetListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkRuleSetListResult { @@ -977,8 +977,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1026,8 +1026,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -1293,8 +1293,8 @@ pub struct RuleListResult { pub next_link: Option, } impl azure_core::Continuable for RuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RuleListResult { @@ -1365,8 +1365,8 @@ pub struct SbAuthorizationRuleListResult { pub next_link: Option, } impl azure_core::Continuable for SbAuthorizationRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbAuthorizationRuleListResult { @@ -1432,8 +1432,8 @@ pub struct SbNamespaceListResult { pub next_link: Option, } impl azure_core::Continuable for SbNamespaceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbNamespaceListResult { @@ -1665,8 +1665,8 @@ pub struct SbQueueListResult { pub next_link: Option, } impl azure_core::Continuable for SbQueueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbQueueListResult { @@ -1879,8 +1879,8 @@ pub struct SbSubscriptionListResult { pub next_link: Option, } impl azure_core::Continuable for SbSubscriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbSubscriptionListResult { @@ -1986,8 +1986,8 @@ pub struct SbTopicListResult { pub next_link: Option, } impl azure_core::Continuable for SbTopicListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SbTopicListResult { diff --git a/services/mgmt/servicebus/src/package_2022_01_preview/operations.rs b/services/mgmt/servicebus/src/package_2022_01_preview/operations.rs index 926598f723..6a458d1001 100644 --- a/services/mgmt/servicebus/src/package_2022_01_preview/operations.rs +++ b/services/mgmt/servicebus/src/package_2022_01_preview/operations.rs @@ -346,9 +346,9 @@ pub mod namespaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -367,6 +367,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -422,9 +425,9 @@ pub mod namespaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -443,6 +446,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -845,9 +851,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -866,6 +872,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -923,9 +932,9 @@ pub mod namespaces { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -944,6 +953,9 @@ pub mod namespaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1379,9 +1391,9 @@ pub mod private_endpoint_connections { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1400,6 +1412,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1685,9 +1700,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceBus/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1706,6 +1721,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1924,9 +1942,9 @@ pub mod disaster_recovery_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1945,6 +1963,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2264,9 +2285,9 @@ pub mod disaster_recovery_configs { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/disasterRecoveryConfigs/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . alias)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2285,6 +2306,9 @@ pub mod disaster_recovery_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2583,9 +2607,9 @@ pub mod migration_configs { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2604,6 +2628,9 @@ pub mod migration_configs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3087,9 +3114,9 @@ pub mod queues { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/queues/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . queue_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3108,6 +3135,9 @@ pub mod queues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3421,9 +3451,9 @@ pub mod queues { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3442,6 +3472,9 @@ pub mod queues { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3837,9 +3870,9 @@ pub mod topics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/topics/{}/authorizationRules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . topic_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3858,6 +3891,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4171,9 +4207,9 @@ pub mod topics { &this.namespace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4192,6 +4228,9 @@ pub mod topics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4510,9 +4549,9 @@ pub mod rules { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceBus/namespaces/{}/topics/{}/subscriptions/{}/rules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . namespace_name , & this . topic_name , & this . subscription_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4531,6 +4570,9 @@ pub mod rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4832,9 +4874,9 @@ pub mod subscriptions { &this.topic_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4853,6 +4895,9 @@ pub mod subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicefabricmanagedclusters/src/package_2021_07_preview/models.rs b/services/mgmt/servicefabricmanagedclusters/src/package_2021_07_preview/models.rs index 712996ab70..ceb9597372 100644 --- a/services/mgmt/servicefabricmanagedclusters/src/package_2021_07_preview/models.rs +++ b/services/mgmt/servicefabricmanagedclusters/src/package_2021_07_preview/models.rs @@ -90,8 +90,8 @@ pub struct ApplicationResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationResourceList { @@ -147,8 +147,8 @@ pub struct ApplicationTypeResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationTypeResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationTypeResourceList { @@ -205,8 +205,8 @@ pub struct ApplicationTypeVersionResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationTypeVersionResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationTypeVersionResourceList { @@ -650,7 +650,7 @@ pub struct ErrorModel { pub error: Option, } impl azure_core::Continuable for ErrorModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -934,8 +934,8 @@ pub struct ManagedClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterListResult { @@ -1498,8 +1498,8 @@ pub struct NodeTypeListResult { pub next_link: Option, } impl azure_core::Continuable for NodeTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeTypeListResult { @@ -1518,8 +1518,8 @@ pub struct NodeTypeListSkuResult { pub next_link: Option, } impl azure_core::Continuable for NodeTypeListSkuResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeTypeListSkuResult { @@ -1750,8 +1750,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2410,8 +2410,8 @@ pub struct ServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceList { diff --git a/services/mgmt/servicefabricmanagedclusters/src/package_2021_07_preview/operations.rs b/services/mgmt/servicefabricmanagedclusters/src/package_2021_07_preview/operations.rs index 110d123257..af36c22df5 100644 --- a/services/mgmt/servicefabricmanagedclusters/src/package_2021_07_preview/operations.rs +++ b/services/mgmt/servicefabricmanagedclusters/src/package_2021_07_preview/operations.rs @@ -408,9 +408,9 @@ pub mod application_types { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -429,6 +429,9 @@ pub mod application_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -789,9 +792,9 @@ pub mod application_type_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabric/managedclusters/{}/applicationTypes/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_name , & this . application_type_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -810,6 +813,9 @@ pub mod application_type_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1189,9 +1195,9 @@ pub mod applications { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1210,6 +1216,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1570,9 +1579,9 @@ pub mod services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabric/managedclusters/{}/applications/{}/services" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_name , & this . application_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1591,6 +1600,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1731,9 +1743,9 @@ pub mod managed_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1752,6 +1764,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1805,9 +1820,9 @@ pub mod managed_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1826,6 +1841,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2377,9 +2395,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceFabric/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2398,6 +2416,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2597,9 +2618,9 @@ pub mod node_types { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2618,6 +2639,9 @@ pub mod node_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3086,9 +3110,9 @@ pub mod node_type_skus { &this.node_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3107,6 +3131,9 @@ pub mod node_type_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicefabricmanagedclusters/src/package_2021_09_privatepreview/models.rs b/services/mgmt/servicefabricmanagedclusters/src/package_2021_09_privatepreview/models.rs index 62e457d57f..34bce7fa35 100644 --- a/services/mgmt/servicefabricmanagedclusters/src/package_2021_09_privatepreview/models.rs +++ b/services/mgmt/servicefabricmanagedclusters/src/package_2021_09_privatepreview/models.rs @@ -90,8 +90,8 @@ pub struct ApplicationResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationResourceList { @@ -147,8 +147,8 @@ pub struct ApplicationTypeResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationTypeResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationTypeResourceList { @@ -205,8 +205,8 @@ pub struct ApplicationTypeVersionResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationTypeVersionResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationTypeVersionResourceList { @@ -650,7 +650,7 @@ pub struct ErrorModel { pub error: Option, } impl azure_core::Continuable for ErrorModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -934,8 +934,8 @@ pub struct ManagedClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterListResult { @@ -1230,8 +1230,8 @@ pub struct ManagedVmSizesResult { pub next_link: Option, } impl azure_core::Continuable for ManagedVmSizesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedVmSizesResult { @@ -1539,8 +1539,8 @@ pub struct NodeTypeListResult { pub next_link: Option, } impl azure_core::Continuable for NodeTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeTypeListResult { @@ -1559,8 +1559,8 @@ pub struct NodeTypeListSkuResult { pub next_link: Option, } impl azure_core::Continuable for NodeTypeListSkuResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeTypeListSkuResult { @@ -1791,8 +1791,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2451,8 +2451,8 @@ pub struct ServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceList { diff --git a/services/mgmt/servicefabricmanagedclusters/src/package_2021_09_privatepreview/operations.rs b/services/mgmt/servicefabricmanagedclusters/src/package_2021_09_privatepreview/operations.rs index 5c589de66a..d48ca752b2 100644 --- a/services/mgmt/servicefabricmanagedclusters/src/package_2021_09_privatepreview/operations.rs +++ b/services/mgmt/servicefabricmanagedclusters/src/package_2021_09_privatepreview/operations.rs @@ -411,9 +411,9 @@ pub mod application_types { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -432,6 +432,9 @@ pub mod application_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -792,9 +795,9 @@ pub mod application_type_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabric/managedclusters/{}/applicationTypes/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_name , & this . application_type_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -813,6 +816,9 @@ pub mod application_type_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1192,9 +1198,9 @@ pub mod applications { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1213,6 +1219,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1573,9 +1582,9 @@ pub mod services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabric/managedclusters/{}/applications/{}/services" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_name , & this . application_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1594,6 +1603,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1734,9 +1746,9 @@ pub mod managed_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1755,6 +1767,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1808,9 +1823,9 @@ pub mod managed_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1829,6 +1844,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2399,9 +2417,9 @@ pub mod managed_unsupported_vm_sizes { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2420,6 +2438,9 @@ pub mod managed_unsupported_vm_sizes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2531,9 +2552,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceFabric/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2552,6 +2573,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2751,9 +2775,9 @@ pub mod node_types { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2772,6 +2796,9 @@ pub mod node_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3240,9 +3267,9 @@ pub mod node_type_skus { &this.node_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3261,6 +3288,9 @@ pub mod node_type_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicefabricmanagedclusters/src/package_2021_11_preview/models.rs b/services/mgmt/servicefabricmanagedclusters/src/package_2021_11_preview/models.rs index c0629482a0..8613c2b828 100644 --- a/services/mgmt/servicefabricmanagedclusters/src/package_2021_11_preview/models.rs +++ b/services/mgmt/servicefabricmanagedclusters/src/package_2021_11_preview/models.rs @@ -90,8 +90,8 @@ pub struct ApplicationResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationResourceList { @@ -147,8 +147,8 @@ pub struct ApplicationTypeResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationTypeResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationTypeResourceList { @@ -205,8 +205,8 @@ pub struct ApplicationTypeVersionResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationTypeVersionResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationTypeVersionResourceList { @@ -650,7 +650,7 @@ pub struct ErrorModel { pub error: Option, } impl azure_core::Continuable for ErrorModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -934,8 +934,8 @@ pub struct ManagedClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterListResult { @@ -1246,8 +1246,8 @@ pub struct ManagedVmSizesResult { pub next_link: Option, } impl azure_core::Continuable for ManagedVmSizesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedVmSizesResult { @@ -1571,8 +1571,8 @@ pub struct NodeTypeListResult { pub next_link: Option, } impl azure_core::Continuable for NodeTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeTypeListResult { @@ -1591,8 +1591,8 @@ pub struct NodeTypeListSkuResult { pub next_link: Option, } impl azure_core::Continuable for NodeTypeListSkuResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeTypeListSkuResult { @@ -1845,8 +1845,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2522,8 +2522,8 @@ pub struct ServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceList { diff --git a/services/mgmt/servicefabricmanagedclusters/src/package_2021_11_preview/operations.rs b/services/mgmt/servicefabricmanagedclusters/src/package_2021_11_preview/operations.rs index 67fc1aeb88..a7cb55082b 100644 --- a/services/mgmt/servicefabricmanagedclusters/src/package_2021_11_preview/operations.rs +++ b/services/mgmt/servicefabricmanagedclusters/src/package_2021_11_preview/operations.rs @@ -411,9 +411,9 @@ pub mod application_types { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -432,6 +432,9 @@ pub mod application_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -792,9 +795,9 @@ pub mod application_type_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabric/managedclusters/{}/applicationTypes/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_name , & this . application_type_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -813,6 +816,9 @@ pub mod application_type_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1192,9 +1198,9 @@ pub mod applications { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1213,6 +1219,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1573,9 +1582,9 @@ pub mod services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabric/managedclusters/{}/applications/{}/services" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_name , & this . application_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1594,6 +1603,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1734,9 +1746,9 @@ pub mod managed_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1755,6 +1767,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1808,9 +1823,9 @@ pub mod managed_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1829,6 +1844,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2399,9 +2417,9 @@ pub mod managed_unsupported_vm_sizes { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2420,6 +2438,9 @@ pub mod managed_unsupported_vm_sizes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2531,9 +2552,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceFabric/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2552,6 +2573,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2751,9 +2775,9 @@ pub mod node_types { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2772,6 +2796,9 @@ pub mod node_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3240,9 +3267,9 @@ pub mod node_type_skus { &this.node_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3261,6 +3288,9 @@ pub mod node_type_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicefabricmanagedclusters/src/package_2022_01/models.rs b/services/mgmt/servicefabricmanagedclusters/src/package_2022_01/models.rs index d741094af0..2584429d29 100644 --- a/services/mgmt/servicefabricmanagedclusters/src/package_2022_01/models.rs +++ b/services/mgmt/servicefabricmanagedclusters/src/package_2022_01/models.rs @@ -90,8 +90,8 @@ pub struct ApplicationResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationResourceList { @@ -147,8 +147,8 @@ pub struct ApplicationTypeResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationTypeResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationTypeResourceList { @@ -205,8 +205,8 @@ pub struct ApplicationTypeVersionResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationTypeVersionResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationTypeVersionResourceList { @@ -650,7 +650,7 @@ pub struct ErrorModel { pub error: Option, } impl azure_core::Continuable for ErrorModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -965,8 +965,8 @@ pub struct ManagedClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterListResult { @@ -1277,8 +1277,8 @@ pub struct ManagedVmSizesResult { pub next_link: Option, } impl azure_core::Continuable for ManagedVmSizesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedVmSizesResult { @@ -1602,8 +1602,8 @@ pub struct NodeTypeListResult { pub next_link: Option, } impl azure_core::Continuable for NodeTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeTypeListResult { @@ -1622,8 +1622,8 @@ pub struct NodeTypeListSkuResult { pub next_link: Option, } impl azure_core::Continuable for NodeTypeListSkuResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeTypeListSkuResult { @@ -1880,8 +1880,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2557,8 +2557,8 @@ pub struct ServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceList { diff --git a/services/mgmt/servicefabricmanagedclusters/src/package_2022_01/operations.rs b/services/mgmt/servicefabricmanagedclusters/src/package_2022_01/operations.rs index d05fe5f27f..e1d2a6153e 100644 --- a/services/mgmt/servicefabricmanagedclusters/src/package_2022_01/operations.rs +++ b/services/mgmt/servicefabricmanagedclusters/src/package_2022_01/operations.rs @@ -417,9 +417,9 @@ pub mod application_types { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -438,6 +438,9 @@ pub mod application_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -798,9 +801,9 @@ pub mod application_type_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabric/managedclusters/{}/applicationTypes/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_name , & this . application_type_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -819,6 +822,9 @@ pub mod application_type_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1198,9 +1204,9 @@ pub mod applications { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1219,6 +1225,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1579,9 +1588,9 @@ pub mod services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabric/managedclusters/{}/applications/{}/services" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_name , & this . application_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1600,6 +1609,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1740,9 +1752,9 @@ pub mod managed_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1761,6 +1773,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1814,9 +1829,9 @@ pub mod managed_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1835,6 +1850,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2405,9 +2423,9 @@ pub mod managed_unsupported_vm_sizes { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2426,6 +2444,9 @@ pub mod managed_unsupported_vm_sizes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2684,9 +2705,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceFabric/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2705,6 +2726,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2904,9 +2928,9 @@ pub mod node_types { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2925,6 +2949,9 @@ pub mod node_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3393,9 +3420,9 @@ pub mod node_type_skus { &this.node_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3414,6 +3441,9 @@ pub mod node_type_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicefabricmanagedclusters/src/package_2022_02_preview/models.rs b/services/mgmt/servicefabricmanagedclusters/src/package_2022_02_preview/models.rs index 4e8d802170..6b84bab681 100644 --- a/services/mgmt/servicefabricmanagedclusters/src/package_2022_02_preview/models.rs +++ b/services/mgmt/servicefabricmanagedclusters/src/package_2022_02_preview/models.rs @@ -90,8 +90,8 @@ pub struct ApplicationResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationResourceList { @@ -147,8 +147,8 @@ pub struct ApplicationTypeResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationTypeResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationTypeResourceList { @@ -205,8 +205,8 @@ pub struct ApplicationTypeVersionResourceList { pub next_link: Option, } impl azure_core::Continuable for ApplicationTypeVersionResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationTypeVersionResourceList { @@ -650,7 +650,7 @@ pub struct ErrorModel { pub error: Option, } impl azure_core::Continuable for ErrorModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1012,8 +1012,8 @@ pub struct ManagedClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedClusterListResult { @@ -1324,8 +1324,8 @@ pub struct ManagedVmSizesResult { pub next_link: Option, } impl azure_core::Continuable for ManagedVmSizesResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedVmSizesResult { @@ -1649,8 +1649,8 @@ pub struct NodeTypeListResult { pub next_link: Option, } impl azure_core::Continuable for NodeTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeTypeListResult { @@ -1669,8 +1669,8 @@ pub struct NodeTypeListSkuResult { pub next_link: Option, } impl azure_core::Continuable for NodeTypeListSkuResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeTypeListSkuResult { @@ -1935,8 +1935,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2660,8 +2660,8 @@ pub struct ServiceResourceList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceList { diff --git a/services/mgmt/servicefabricmanagedclusters/src/package_2022_02_preview/operations.rs b/services/mgmt/servicefabricmanagedclusters/src/package_2022_02_preview/operations.rs index 1adde39762..bcaeba559e 100644 --- a/services/mgmt/servicefabricmanagedclusters/src/package_2022_02_preview/operations.rs +++ b/services/mgmt/servicefabricmanagedclusters/src/package_2022_02_preview/operations.rs @@ -420,9 +420,9 @@ pub mod application_types { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -441,6 +441,9 @@ pub mod application_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -801,9 +804,9 @@ pub mod application_type_versions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabric/managedclusters/{}/applicationTypes/{}/versions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_name , & this . application_type_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -822,6 +825,9 @@ pub mod application_type_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1201,9 +1207,9 @@ pub mod applications { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1222,6 +1228,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1582,9 +1591,9 @@ pub mod services { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabric/managedclusters/{}/applications/{}/services" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . cluster_name , & this . application_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1603,6 +1612,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1743,9 +1755,9 @@ pub mod managed_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1764,6 +1776,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1817,9 +1832,9 @@ pub mod managed_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1838,6 +1853,9 @@ pub mod managed_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2475,9 +2493,9 @@ pub mod managed_unsupported_vm_sizes { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2496,6 +2514,9 @@ pub mod managed_unsupported_vm_sizes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2754,9 +2775,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceFabric/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2775,6 +2796,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2974,9 +2998,9 @@ pub mod node_types { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2995,6 +3019,9 @@ pub mod node_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3463,9 +3490,9 @@ pub mod node_type_skus { &this.node_type_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3484,6 +3511,9 @@ pub mod node_type_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicefabricmesh/src/package_2018_07_01_preview/models.rs b/services/mgmt/servicefabricmesh/src/package_2018_07_01_preview/models.rs index a93bd4e57a..6944905dc8 100644 --- a/services/mgmt/servicefabricmesh/src/package_2018_07_01_preview/models.rs +++ b/services/mgmt/servicefabricmesh/src/package_2018_07_01_preview/models.rs @@ -115,8 +115,8 @@ pub struct ApplicationResourceDescriptionList { pub next_link: Option, } impl azure_core::Continuable for ApplicationResourceDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationResourceDescriptionList { @@ -501,7 +501,7 @@ pub struct ErrorModel { pub message: Option, } impl azure_core::Continuable for ErrorModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -732,8 +732,8 @@ pub struct NetworkResourceDescriptionList { pub next_link: Option, } impl azure_core::Continuable for NetworkResourceDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkResourceDescriptionList { @@ -768,8 +768,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -896,8 +896,8 @@ pub struct ServiceList { pub next_link: Option, } impl azure_core::Continuable for ServiceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceList { @@ -933,8 +933,8 @@ pub struct ServiceReplicaList { pub next_link: Option, } impl azure_core::Continuable for ServiceReplicaList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceReplicaList { @@ -1245,8 +1245,8 @@ pub struct VolumeResourceDescriptionList { pub next_link: Option, } impl azure_core::Continuable for VolumeResourceDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VolumeResourceDescriptionList { diff --git a/services/mgmt/servicefabricmesh/src/package_2018_07_01_preview/operations.rs b/services/mgmt/servicefabricmesh/src/package_2018_07_01_preview/operations.rs index 98dfba7d68..b2620124b7 100644 --- a/services/mgmt/servicefabricmesh/src/package_2018_07_01_preview/operations.rs +++ b/services/mgmt/servicefabricmesh/src/package_2018_07_01_preview/operations.rs @@ -353,9 +353,9 @@ pub mod application { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -374,6 +374,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -427,9 +430,9 @@ pub mod application { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -448,6 +451,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -541,9 +547,9 @@ pub mod service { &this.application_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -562,6 +568,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -708,9 +717,9 @@ pub mod replica { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabricMesh/applications/{}/services/{}/replicas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_name , & this . service_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -729,6 +738,9 @@ pub mod replica { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -922,9 +934,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -943,6 +955,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1235,9 +1250,9 @@ pub mod network { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1256,6 +1271,9 @@ pub mod network { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1309,9 +1327,9 @@ pub mod network { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1330,6 +1348,9 @@ pub mod network { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1622,9 +1643,9 @@ pub mod volume { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1643,6 +1664,9 @@ pub mod volume { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1696,9 +1720,9 @@ pub mod volume { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1717,6 +1741,9 @@ pub mod volume { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicefabricmesh/src/package_2018_09_01_preview/models.rs b/services/mgmt/servicefabricmesh/src/package_2018_09_01_preview/models.rs index c6773751a8..a76ac0fd78 100644 --- a/services/mgmt/servicefabricmesh/src/package_2018_09_01_preview/models.rs +++ b/services/mgmt/servicefabricmesh/src/package_2018_09_01_preview/models.rs @@ -92,8 +92,8 @@ pub struct ApplicationResourceDescriptionList { pub next_link: Option, } impl azure_core::Continuable for ApplicationResourceDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationResourceDescriptionList { @@ -877,7 +877,7 @@ pub struct ErrorModel { pub error: ErrorErrorModel, } impl azure_core::Continuable for ErrorModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -977,8 +977,8 @@ pub struct GatewayResourceDescriptionList { pub next_link: Option, } impl azure_core::Continuable for GatewayResourceDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GatewayResourceDescriptionList { @@ -1369,8 +1369,8 @@ pub struct NetworkResourceDescriptionList { pub next_link: Option, } impl azure_core::Continuable for NetworkResourceDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NetworkResourceDescriptionList { @@ -1467,8 +1467,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1706,8 +1706,8 @@ pub struct SecretResourceDescriptionList { pub next_link: Option, } impl azure_core::Continuable for SecretResourceDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretResourceDescriptionList { @@ -1811,8 +1811,8 @@ pub struct SecretValueResourceDescriptionList { pub next_link: Option, } impl azure_core::Continuable for SecretValueResourceDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretValueResourceDescriptionList { @@ -1891,8 +1891,8 @@ pub struct ServiceReplicaDescriptionList { pub next_link: Option, } impl azure_core::Continuable for ServiceReplicaDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceReplicaDescriptionList { @@ -1953,8 +1953,8 @@ pub struct ServiceResourceDescriptionList { pub next_link: Option, } impl azure_core::Continuable for ServiceResourceDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServiceResourceDescriptionList { @@ -2166,8 +2166,8 @@ pub struct VolumeResourceDescriptionList { pub next_link: Option, } impl azure_core::Continuable for VolumeResourceDescriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VolumeResourceDescriptionList { diff --git a/services/mgmt/servicefabricmesh/src/package_2018_09_01_preview/operations.rs b/services/mgmt/servicefabricmesh/src/package_2018_09_01_preview/operations.rs index 39caca1c2a..042a2b76b9 100644 --- a/services/mgmt/servicefabricmesh/src/package_2018_09_01_preview/operations.rs +++ b/services/mgmt/servicefabricmesh/src/package_2018_09_01_preview/operations.rs @@ -131,9 +131,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -152,6 +152,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -448,9 +451,9 @@ pub mod secret { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -469,6 +472,9 @@ pub mod secret { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -522,9 +528,9 @@ pub mod secret { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -543,6 +549,9 @@ pub mod secret { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -864,9 +873,9 @@ pub mod secret_value { &this.secret_resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -885,6 +894,9 @@ pub mod secret_value { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1236,9 +1248,9 @@ pub mod volume { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1257,6 +1269,9 @@ pub mod volume { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1310,9 +1325,9 @@ pub mod volume { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1331,6 +1346,9 @@ pub mod volume { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1627,9 +1645,9 @@ pub mod network { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1648,6 +1666,9 @@ pub mod network { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1701,9 +1722,9 @@ pub mod network { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1722,6 +1743,9 @@ pub mod network { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2018,9 +2042,9 @@ pub mod gateway { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2039,6 +2063,9 @@ pub mod gateway { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2092,9 +2119,9 @@ pub mod gateway { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2113,6 +2140,9 @@ pub mod gateway { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2409,9 +2439,9 @@ pub mod application { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2430,6 +2460,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2483,9 +2516,9 @@ pub mod application { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2504,6 +2537,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2651,9 +2687,9 @@ pub mod service { &this.application_resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2672,6 +2708,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2812,9 +2851,9 @@ pub mod service_replica { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.ServiceFabricMesh/applications/{}/services/{}/replicas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . application_resource_name , & this . service_resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2833,6 +2872,9 @@ pub mod service_replica { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicelinker/src/package_2021_11_01_preview/models.rs b/services/mgmt/servicelinker/src/package_2021_11_01_preview/models.rs index db98ac39cc..21df376e18 100644 --- a/services/mgmt/servicelinker/src/package_2021_11_01_preview/models.rs +++ b/services/mgmt/servicelinker/src/package_2021_11_01_preview/models.rs @@ -111,7 +111,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -131,8 +131,8 @@ pub struct LinkerList { pub value: Vec, } impl azure_core::Continuable for LinkerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkerList { @@ -401,8 +401,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/servicelinker/src/package_2021_11_01_preview/operations.rs b/services/mgmt/servicelinker/src/package_2021_11_01_preview/operations.rs index e027d31bff..9336052fb4 100644 --- a/services/mgmt/servicelinker/src/package_2021_11_01_preview/operations.rs +++ b/services/mgmt/servicelinker/src/package_2021_11_01_preview/operations.rs @@ -165,9 +165,9 @@ pub mod linker { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -186,6 +186,9 @@ pub mod linker { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -580,9 +583,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceLinker/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -601,6 +604,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicelinker/src/package_2022_01_01_preview/models.rs b/services/mgmt/servicelinker/src/package_2022_01_01_preview/models.rs index a47cd9c586..8460fa41f0 100644 --- a/services/mgmt/servicelinker/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/servicelinker/src/package_2022_01_01_preview/models.rs @@ -230,7 +230,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -288,8 +288,8 @@ pub struct LinkerList { pub value: Vec, } impl azure_core::Continuable for LinkerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkerList { @@ -561,8 +561,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/servicelinker/src/package_2022_01_01_preview/operations.rs b/services/mgmt/servicelinker/src/package_2022_01_01_preview/operations.rs index d406f050a6..9159f3bffa 100644 --- a/services/mgmt/servicelinker/src/package_2022_01_01_preview/operations.rs +++ b/services/mgmt/servicelinker/src/package_2022_01_01_preview/operations.rs @@ -165,9 +165,9 @@ pub mod linker { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -186,6 +186,9 @@ pub mod linker { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -580,9 +583,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceLinker/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -601,6 +604,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicelinker/src/package_2022_05_01/models.rs b/services/mgmt/servicelinker/src/package_2022_05_01/models.rs index 7636cfe79a..542b6637fc 100644 --- a/services/mgmt/servicelinker/src/package_2022_05_01/models.rs +++ b/services/mgmt/servicelinker/src/package_2022_05_01/models.rs @@ -230,7 +230,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -288,8 +288,8 @@ pub struct LinkerList { pub value: Vec, } impl azure_core::Continuable for LinkerList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkerList { @@ -561,8 +561,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/servicelinker/src/package_2022_05_01/operations.rs b/services/mgmt/servicelinker/src/package_2022_05_01/operations.rs index e19b54023f..d92a187f81 100644 --- a/services/mgmt/servicelinker/src/package_2022_05_01/operations.rs +++ b/services/mgmt/servicelinker/src/package_2022_05_01/operations.rs @@ -165,9 +165,9 @@ pub mod linker { &this.resource_uri ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -186,6 +186,9 @@ pub mod linker { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -580,9 +583,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.ServiceLinker/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -601,6 +604,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/servicemap/src/package_2015_11_preview/models.rs b/services/mgmt/servicemap/src/package_2015_11_preview/models.rs index 307b76f64e..7b63d9c1f6 100644 --- a/services/mgmt/servicemap/src/package_2015_11_preview/models.rs +++ b/services/mgmt/servicemap/src/package_2015_11_preview/models.rs @@ -328,8 +328,8 @@ pub struct ClientGroupMembersCollection { pub next_link: Option, } impl azure_core::Continuable for ClientGroupMembersCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClientGroupMembersCollection { @@ -404,8 +404,8 @@ pub struct ConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for ConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConnectionCollection { @@ -502,7 +502,7 @@ pub struct ErrorResponse { pub error: Error, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -720,8 +720,8 @@ pub struct MachineCollection { pub next_link: Option, } impl azure_core::Continuable for MachineCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineCollection { @@ -854,8 +854,8 @@ pub struct MachineGroupCollection { pub next_link: Option, } impl azure_core::Continuable for MachineGroupCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MachineGroupCollection { @@ -1248,8 +1248,8 @@ pub struct PortCollection { pub next_link: Option, } impl azure_core::Continuable for PortCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PortCollection { @@ -1425,8 +1425,8 @@ pub struct ProcessCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessCollection { diff --git a/services/mgmt/servicemap/src/package_2015_11_preview/operations.rs b/services/mgmt/servicemap/src/package_2015_11_preview/operations.rs index 17e644fdb7..5e86f72eb5 100644 --- a/services/mgmt/servicemap/src/package_2015_11_preview/operations.rs +++ b/services/mgmt/servicemap/src/package_2015_11_preview/operations.rs @@ -264,9 +264,9 @@ pub mod machines { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/machines" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -285,6 +285,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -480,9 +483,9 @@ pub mod machines { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/machines/{}/connections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . machine_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -501,6 +504,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -579,9 +585,9 @@ pub mod machines { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/machines/{}/processes" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . machine_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -600,6 +606,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -674,9 +683,9 @@ pub mod machines { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/machines/{}/ports" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . machine_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -695,6 +704,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -763,9 +775,9 @@ pub mod machines { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/machines/{}/machineGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . machine_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -784,6 +796,9 @@ pub mod machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1054,9 +1069,9 @@ pub mod processes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/machines/{}/processes/{}/acceptingPorts" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . machine_name , & this . process_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1075,6 +1090,9 @@ pub mod processes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1144,9 +1162,9 @@ pub mod processes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/machines/{}/processes/{}/connections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . machine_name , & this . process_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1165,6 +1183,9 @@ pub mod processes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1444,9 +1465,9 @@ pub mod ports { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/machines/{}/ports/{}/acceptingProcesses" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . machine_name , & this . port_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1465,6 +1486,9 @@ pub mod ports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1534,9 +1558,9 @@ pub mod ports { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/machines/{}/ports/{}/connections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . machine_name , & this . port_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1555,6 +1579,9 @@ pub mod ports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1812,9 +1839,9 @@ pub mod client_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/clientGroups/{}/members" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . client_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1833,6 +1860,9 @@ pub mod client_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2140,9 +2170,9 @@ pub mod machine_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/features/serviceMap/machineGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2161,6 +2191,9 @@ pub mod machine_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/signalr/src/package_2021_04_01_preview/models.rs b/services/mgmt/signalr/src/package_2021_04_01_preview/models.rs index c87fb8dc0a..3b34b5b6de 100644 --- a/services/mgmt/signalr/src/package_2021_04_01_preview/models.rs +++ b/services/mgmt/signalr/src/package_2021_04_01_preview/models.rs @@ -109,7 +109,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -419,8 +419,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -496,8 +496,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -548,8 +548,8 @@ pub struct PrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { @@ -883,8 +883,8 @@ pub struct SharedPrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceList { @@ -1163,8 +1163,8 @@ pub struct SignalRResourceList { pub next_link: Option, } impl azure_core::Continuable for SignalRResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRResourceList { @@ -1260,8 +1260,8 @@ pub struct SignalRUsageList { pub next_link: Option, } impl azure_core::Continuable for SignalRUsageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRUsageList { diff --git a/services/mgmt/signalr/src/package_2021_04_01_preview/operations.rs b/services/mgmt/signalr/src/package_2021_04_01_preview/operations.rs index d1d73ac9b7..7a208d2c02 100644 --- a/services/mgmt/signalr/src/package_2021_04_01_preview/operations.rs +++ b/services/mgmt/signalr/src/package_2021_04_01_preview/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SignalRService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -375,9 +378,9 @@ pub mod signal_r { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -396,6 +399,9 @@ pub mod signal_r { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -451,9 +457,9 @@ pub mod signal_r { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -472,6 +478,9 @@ pub mod signal_r { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -937,9 +946,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -958,6 +967,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1075,9 +1087,9 @@ pub mod signal_r_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/signalR/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1096,6 +1108,9 @@ pub mod signal_r_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1319,9 +1334,9 @@ pub mod signal_r_private_link_resources { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1340,6 +1355,9 @@ pub mod signal_r_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1457,9 +1475,9 @@ pub mod signal_r_shared_private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/signalR/{}/sharedPrivateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1478,6 +1496,9 @@ pub mod signal_r_shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/signalr/src/package_2021_06_01_preview/models.rs b/services/mgmt/signalr/src/package_2021_06_01_preview/models.rs index 8a83aed9ea..9e14e9fdfb 100644 --- a/services/mgmt/signalr/src/package_2021_06_01_preview/models.rs +++ b/services/mgmt/signalr/src/package_2021_06_01_preview/models.rs @@ -109,7 +109,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -419,8 +419,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -496,8 +496,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -548,8 +548,8 @@ pub struct PrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { @@ -883,8 +883,8 @@ pub struct SharedPrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceList { @@ -1172,8 +1172,8 @@ pub struct SignalRResourceList { pub next_link: Option, } impl azure_core::Continuable for SignalRResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRResourceList { @@ -1269,8 +1269,8 @@ pub struct SignalRUsageList { pub next_link: Option, } impl azure_core::Continuable for SignalRUsageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRUsageList { diff --git a/services/mgmt/signalr/src/package_2021_06_01_preview/operations.rs b/services/mgmt/signalr/src/package_2021_06_01_preview/operations.rs index fd14b87c98..42105c065c 100644 --- a/services/mgmt/signalr/src/package_2021_06_01_preview/operations.rs +++ b/services/mgmt/signalr/src/package_2021_06_01_preview/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SignalRService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -375,9 +378,9 @@ pub mod signal_r { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -396,6 +399,9 @@ pub mod signal_r { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -451,9 +457,9 @@ pub mod signal_r { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -472,6 +478,9 @@ pub mod signal_r { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -937,9 +946,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -958,6 +967,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1075,9 +1087,9 @@ pub mod signal_r_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/signalR/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1096,6 +1108,9 @@ pub mod signal_r_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1319,9 +1334,9 @@ pub mod signal_r_private_link_resources { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1340,6 +1355,9 @@ pub mod signal_r_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1457,9 +1475,9 @@ pub mod signal_r_shared_private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/signalR/{}/sharedPrivateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1478,6 +1496,9 @@ pub mod signal_r_shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/signalr/src/package_2021_09_01_preview/models.rs b/services/mgmt/signalr/src/package_2021_09_01_preview/models.rs index 6711a89025..e87a984b4c 100644 --- a/services/mgmt/signalr/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/signalr/src/package_2021_09_01_preview/models.rs @@ -109,7 +109,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -421,8 +421,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -498,8 +498,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -550,8 +550,8 @@ pub struct PrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { @@ -924,8 +924,8 @@ pub struct SharedPrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceList { @@ -1216,8 +1216,8 @@ pub struct SignalRResourceList { pub next_link: Option, } impl azure_core::Continuable for SignalRResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRResourceList { @@ -1313,8 +1313,8 @@ pub struct SignalRUsageList { pub next_link: Option, } impl azure_core::Continuable for SignalRUsageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRUsageList { diff --git a/services/mgmt/signalr/src/package_2021_09_01_preview/operations.rs b/services/mgmt/signalr/src/package_2021_09_01_preview/operations.rs index 0de3d375b6..1dc14dcb54 100644 --- a/services/mgmt/signalr/src/package_2021_09_01_preview/operations.rs +++ b/services/mgmt/signalr/src/package_2021_09_01_preview/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SignalRService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -388,9 +391,9 @@ pub mod signal_r { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -409,6 +412,9 @@ pub mod signal_r { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -464,9 +470,9 @@ pub mod signal_r { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -485,6 +491,9 @@ pub mod signal_r { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1002,9 +1011,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1023,6 +1032,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1140,9 +1152,9 @@ pub mod signal_r_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/signalR/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1161,6 +1173,9 @@ pub mod signal_r_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1384,9 +1399,9 @@ pub mod signal_r_private_link_resources { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1405,6 +1420,9 @@ pub mod signal_r_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1522,9 +1540,9 @@ pub mod signal_r_shared_private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/signalR/{}/sharedPrivateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1543,6 +1561,9 @@ pub mod signal_r_shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/signalr/src/package_2021_10_01/models.rs b/services/mgmt/signalr/src/package_2021_10_01/models.rs index 5f04b910cb..5710b5d4c9 100644 --- a/services/mgmt/signalr/src/package_2021_10_01/models.rs +++ b/services/mgmt/signalr/src/package_2021_10_01/models.rs @@ -109,7 +109,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -421,8 +421,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -498,8 +498,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -553,8 +553,8 @@ pub struct PrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { @@ -954,8 +954,8 @@ pub struct SharedPrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceList { @@ -1249,8 +1249,8 @@ pub struct SignalRResourceList { pub next_link: Option, } impl azure_core::Continuable for SignalRResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRResourceList { @@ -1346,8 +1346,8 @@ pub struct SignalRUsageList { pub next_link: Option, } impl azure_core::Continuable for SignalRUsageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRUsageList { diff --git a/services/mgmt/signalr/src/package_2021_10_01/operations.rs b/services/mgmt/signalr/src/package_2021_10_01/operations.rs index 5ddfa9d5a9..8915f558e9 100644 --- a/services/mgmt/signalr/src/package_2021_10_01/operations.rs +++ b/services/mgmt/signalr/src/package_2021_10_01/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SignalRService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -388,9 +391,9 @@ pub mod signal_r { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -409,6 +412,9 @@ pub mod signal_r { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -464,9 +470,9 @@ pub mod signal_r { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -485,6 +491,9 @@ pub mod signal_r { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1002,9 +1011,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1023,6 +1032,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1140,9 +1152,9 @@ pub mod signal_r_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/signalR/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1161,6 +1173,9 @@ pub mod signal_r_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1384,9 +1399,9 @@ pub mod signal_r_private_link_resources { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1405,6 +1420,9 @@ pub mod signal_r_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1522,9 +1540,9 @@ pub mod signal_r_shared_private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/signalR/{}/sharedPrivateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1543,6 +1561,9 @@ pub mod signal_r_shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/signalr/src/package_2022_02_01/models.rs b/services/mgmt/signalr/src/package_2022_02_01/models.rs index 4ec547e9ff..274470d143 100644 --- a/services/mgmt/signalr/src/package_2022_02_01/models.rs +++ b/services/mgmt/signalr/src/package_2022_02_01/models.rs @@ -72,8 +72,8 @@ pub struct CustomCertificateList { pub next_link: Option, } impl azure_core::Continuable for CustomCertificateList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomCertificateList { @@ -138,8 +138,8 @@ pub struct CustomDomainList { pub next_link: Option, } impl azure_core::Continuable for CustomDomainList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomDomainList { @@ -237,7 +237,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -579,8 +579,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -656,8 +656,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -711,8 +711,8 @@ pub struct PrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { @@ -1124,8 +1124,8 @@ pub struct SharedPrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceList { @@ -1422,8 +1422,8 @@ pub struct SignalRResourceList { pub next_link: Option, } impl azure_core::Continuable for SignalRResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRResourceList { @@ -1519,8 +1519,8 @@ pub struct SignalRUsageList { pub next_link: Option, } impl azure_core::Continuable for SignalRUsageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRUsageList { diff --git a/services/mgmt/signalr/src/package_2022_02_01/operations.rs b/services/mgmt/signalr/src/package_2022_02_01/operations.rs index 1f1cd3d6e2..6b2eca2fce 100644 --- a/services/mgmt/signalr/src/package_2022_02_01/operations.rs +++ b/services/mgmt/signalr/src/package_2022_02_01/operations.rs @@ -122,9 +122,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SignalRService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -143,6 +143,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -394,9 +397,9 @@ pub mod signal_r { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -415,6 +418,9 @@ pub mod signal_r { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -470,9 +476,9 @@ pub mod signal_r { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -491,6 +497,9 @@ pub mod signal_r { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1008,9 +1017,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1029,6 +1038,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1152,9 +1164,9 @@ pub mod signal_r_custom_certificates { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1173,6 +1185,9 @@ pub mod signal_r_custom_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1471,9 +1486,9 @@ pub mod signal_r_custom_domains { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1492,6 +1507,9 @@ pub mod signal_r_custom_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1778,9 +1796,9 @@ pub mod signal_r_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/signalR/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1799,6 +1817,9 @@ pub mod signal_r_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2022,9 +2043,9 @@ pub mod signal_r_private_link_resources { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2043,6 +2064,9 @@ pub mod signal_r_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2160,9 +2184,9 @@ pub mod signal_r_shared_private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/signalR/{}/sharedPrivateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2181,6 +2205,9 @@ pub mod signal_r_shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/softwareplan/src/package_2019_06_01_preview/models.rs b/services/mgmt/softwareplan/src/package_2019_06_01_preview/models.rs index 232dfd3121..81ea4c07c8 100644 --- a/services/mgmt/softwareplan/src/package_2019_06_01_preview/models.rs +++ b/services/mgmt/softwareplan/src/package_2019_06_01_preview/models.rs @@ -15,7 +15,7 @@ pub struct Error { pub message: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -72,8 +72,8 @@ pub struct HybridUseBenefitListResult { pub next_link: Option, } impl azure_core::Continuable for HybridUseBenefitListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridUseBenefitListResult { @@ -155,8 +155,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/softwareplan/src/package_2019_06_01_preview/operations.rs b/services/mgmt/softwareplan/src/package_2019_06_01_preview/operations.rs index d8b32a53cf..55408ab7c0 100644 --- a/services/mgmt/softwareplan/src/package_2019_06_01_preview/operations.rs +++ b/services/mgmt/softwareplan/src/package_2019_06_01_preview/operations.rs @@ -220,9 +220,9 @@ pub mod hybrid_use_benefit { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -241,6 +241,9 @@ pub mod hybrid_use_benefit { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -517,9 +520,9 @@ pub mod hybrid_use_benefit_revision { &this.plan_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -538,6 +541,9 @@ pub mod hybrid_use_benefit_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -604,9 +610,9 @@ pub mod operations { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -625,6 +631,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/softwareplan/src/package_2019_12_01/models.rs b/services/mgmt/softwareplan/src/package_2019_12_01/models.rs index 232dfd3121..81ea4c07c8 100644 --- a/services/mgmt/softwareplan/src/package_2019_12_01/models.rs +++ b/services/mgmt/softwareplan/src/package_2019_12_01/models.rs @@ -15,7 +15,7 @@ pub struct Error { pub message: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -72,8 +72,8 @@ pub struct HybridUseBenefitListResult { pub next_link: Option, } impl azure_core::Continuable for HybridUseBenefitListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridUseBenefitListResult { @@ -155,8 +155,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/softwareplan/src/package_2019_12_01/operations.rs b/services/mgmt/softwareplan/src/package_2019_12_01/operations.rs index 837fed68c3..42a706a6c6 100644 --- a/services/mgmt/softwareplan/src/package_2019_12_01/operations.rs +++ b/services/mgmt/softwareplan/src/package_2019_12_01/operations.rs @@ -220,9 +220,9 @@ pub mod hybrid_use_benefit { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -241,6 +241,9 @@ pub mod hybrid_use_benefit { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -517,9 +520,9 @@ pub mod hybrid_use_benefit_revision { &this.plan_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -538,6 +541,9 @@ pub mod hybrid_use_benefit_revision { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -604,9 +610,9 @@ pub mod operations { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -625,6 +631,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/solutions/src/package_managedapplications_2021_07/models.rs b/services/mgmt/solutions/src/package_managedapplications_2021_07/models.rs index 81d6c64f84..4b880b9517 100644 --- a/services/mgmt/solutions/src/package_managedapplications_2021_07/models.rs +++ b/services/mgmt/solutions/src/package_managedapplications_2021_07/models.rs @@ -231,8 +231,8 @@ pub struct ApplicationDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationDefinitionListResult { @@ -375,8 +375,8 @@ pub struct ApplicationListResult { pub next_link: Option, } impl azure_core::Continuable for ApplicationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationListResult { @@ -720,7 +720,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1230,8 +1230,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/solutions/src/package_managedapplications_2021_07/operations.rs b/services/mgmt/solutions/src/package_managedapplications_2021_07/operations.rs index 132ad1df60..57dc906836 100644 --- a/services/mgmt/solutions/src/package_managedapplications_2021_07/operations.rs +++ b/services/mgmt/solutions/src/package_managedapplications_2021_07/operations.rs @@ -103,9 +103,9 @@ pub mod list_operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Solutions/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -124,6 +124,9 @@ pub mod list_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -519,9 +522,9 @@ pub mod applications { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -540,6 +543,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -593,9 +599,9 @@ pub mod applications { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -614,6 +620,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1078,9 +1087,9 @@ pub mod application_definitions { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1099,6 +1108,9 @@ pub mod application_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1152,9 +1164,9 @@ pub mod application_definitions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1173,6 +1185,9 @@ pub mod application_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/sql/src/package_composite_v2/models.rs b/services/mgmt/sql/src/package_composite_v2/models.rs index c09fdfff86..0b1f05be6e 100644 --- a/services/mgmt/sql/src/package_composite_v2/models.rs +++ b/services/mgmt/sql/src/package_composite_v2/models.rs @@ -15,8 +15,8 @@ pub struct AdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for AdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AdministratorListResult { @@ -228,8 +228,8 @@ pub struct AzureAdOnlyAuthListResult { pub next_link: Option, } impl azure_core::Continuable for AzureAdOnlyAuthListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureAdOnlyAuthListResult { @@ -290,8 +290,8 @@ pub struct BackupShortTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for BackupShortTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupShortTermRetentionPolicyListResult { @@ -497,7 +497,7 @@ pub struct DataMaskingRuleListResult { pub value: Vec, } impl azure_core::Continuable for DataMaskingRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -690,8 +690,8 @@ pub struct DatabaseBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseBlobAuditingPolicyListResult { @@ -760,7 +760,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -794,8 +794,8 @@ pub struct DatabaseOperationListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseOperationListResult { @@ -1688,7 +1688,7 @@ pub struct DatabaseUsageListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseUsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1722,8 +1722,8 @@ pub struct DatabaseVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseVulnerabilityAssessmentListResult { @@ -1881,7 +1881,7 @@ pub struct ElasticPoolActivityListResult { pub value: Vec, } impl azure_core::Continuable for ElasticPoolActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1983,7 +1983,7 @@ pub struct ElasticPoolDatabaseActivityListResult { pub value: Vec, } impl azure_core::Continuable for ElasticPoolDatabaseActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2104,7 +2104,7 @@ pub struct ElasticPoolListResult { pub value: Vec, } impl azure_core::Continuable for ElasticPoolListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2138,8 +2138,8 @@ pub struct ElasticPoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ElasticPoolOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticPoolOperationListResult { @@ -2397,8 +2397,8 @@ pub struct EncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionProtectorListResult { @@ -2563,8 +2563,8 @@ pub struct ExtendedDatabaseBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedDatabaseBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedDatabaseBlobAuditingPolicyListResult { @@ -2655,8 +2655,8 @@ pub struct ExtendedServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedServerBlobAuditingPolicyListResult { @@ -2753,8 +2753,8 @@ pub struct FailoverGroupListResult { pub next_link: Option, } impl azure_core::Continuable for FailoverGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FailoverGroupListResult { @@ -3014,7 +3014,7 @@ pub struct FirewallRuleListResult { pub value: Vec, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3073,7 +3073,7 @@ pub struct GeoBackupPolicyListResult { pub value: Vec, } impl azure_core::Continuable for GeoBackupPolicyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3522,8 +3522,8 @@ pub struct InstanceFailoverGroupListResult { pub next_link: Option, } impl azure_core::Continuable for InstanceFailoverGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstanceFailoverGroupListResult { @@ -3755,8 +3755,8 @@ pub struct InstancePoolListResult { pub next_link: Option, } impl azure_core::Continuable for InstancePoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstancePoolListResult { @@ -3884,8 +3884,8 @@ pub struct JobAgentListResult { pub next_link: Option, } impl azure_core::Continuable for JobAgentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobAgentListResult { @@ -3991,8 +3991,8 @@ pub struct JobCredentialListResult { pub next_link: Option, } impl azure_core::Continuable for JobCredentialListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCredentialListResult { @@ -4038,8 +4038,8 @@ pub struct JobExecutionListResult { pub next_link: Option, } impl azure_core::Continuable for JobExecutionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobExecutionListResult { @@ -4269,8 +4269,8 @@ pub struct JobListResult { pub next_link: Option, } impl azure_core::Continuable for JobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResult { @@ -4487,8 +4487,8 @@ pub struct JobStepListResult { pub next_link: Option, } impl azure_core::Continuable for JobStepListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobStepListResult { @@ -4732,8 +4732,8 @@ pub struct JobTargetGroupListResult { pub next_link: Option, } impl azure_core::Continuable for JobTargetGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobTargetGroupListResult { @@ -4774,8 +4774,8 @@ pub struct JobVersionListResult { pub next_link: Option, } impl azure_core::Continuable for JobVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobVersionListResult { @@ -4812,8 +4812,8 @@ pub struct LogicalServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for LogicalServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalServerSecurityAlertPolicyListResult { @@ -4846,8 +4846,8 @@ pub struct LongTermRetentionBackupListResult { pub next_link: Option, } impl azure_core::Continuable for LongTermRetentionBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LongTermRetentionBackupListResult { @@ -4928,8 +4928,8 @@ pub struct ManagedBackupShortTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedBackupShortTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedBackupShortTermRetentionPolicyListResult { @@ -4977,8 +4977,8 @@ pub struct ManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedDatabaseListResult { @@ -5207,8 +5207,8 @@ pub struct ManagedDatabaseSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedDatabaseSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedDatabaseSecurityAlertPolicyListResult { @@ -5281,8 +5281,8 @@ pub struct ManagedInstanceAdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceAdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceAdministratorListResult { @@ -5363,8 +5363,8 @@ pub struct ManagedInstanceAzureAdOnlyAuthListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceAzureAdOnlyAuthListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceAzureAdOnlyAuthListResult { @@ -5428,8 +5428,8 @@ pub struct ManagedInstanceEncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceEncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceEncryptionProtectorListResult { @@ -5531,8 +5531,8 @@ pub struct ManagedInstanceKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceKeyListResult { @@ -5617,8 +5617,8 @@ pub struct ManagedInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceListResult { @@ -5651,8 +5651,8 @@ pub struct ManagedInstanceLongTermRetentionBackupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceLongTermRetentionBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceLongTermRetentionBackupListResult { @@ -5712,8 +5712,8 @@ pub struct ManagedInstanceLongTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceLongTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceLongTermRetentionPolicyListResult { @@ -6090,8 +6090,8 @@ pub struct ManagedInstanceVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceVulnerabilityAssessmentListResult { @@ -6150,8 +6150,8 @@ pub struct ManagedServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedServerSecurityAlertPolicyListResult { @@ -6408,7 +6408,7 @@ pub struct MetricDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6424,7 +6424,7 @@ pub struct MetricListResult { pub value: Vec, } impl azure_core::Continuable for MetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6606,8 +6606,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -6780,8 +6780,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -6887,8 +6887,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -7212,7 +7212,7 @@ pub struct RecommendedElasticPoolListMetricsResult { pub value: Vec, } impl azure_core::Continuable for RecommendedElasticPoolListMetricsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7228,7 +7228,7 @@ pub struct RecommendedElasticPoolListResult { pub value: Vec, } impl azure_core::Continuable for RecommendedElasticPoolListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7461,7 +7461,7 @@ pub struct RecoverableDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for RecoverableDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7516,8 +7516,8 @@ pub struct RecoverableManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RecoverableManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoverableManagedDatabaseListResult { @@ -7565,7 +7565,7 @@ pub struct ReplicationLinkListResult { pub value: Vec, } impl azure_core::Continuable for ReplicationLinkListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7795,7 +7795,7 @@ pub struct RestorableDroppedDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDroppedDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7865,8 +7865,8 @@ pub struct RestorableDroppedManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RestorableDroppedManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorableDroppedManagedDatabaseListResult { @@ -7923,7 +7923,7 @@ pub struct RestorePointListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8040,8 +8040,8 @@ pub struct SensitivityLabelListResult { pub next_link: Option, } impl azure_core::Continuable for SensitivityLabelListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SensitivityLabelListResult { @@ -8178,8 +8178,8 @@ pub struct ServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBlobAuditingPolicyListResult { @@ -8269,7 +8269,7 @@ pub struct ServerCommunicationLinkListResult { pub value: Vec, } impl azure_core::Continuable for ServerCommunicationLinkListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8375,8 +8375,8 @@ pub struct ServerDnsAliasListResult { pub next_link: Option, } impl azure_core::Continuable for ServerDnsAliasListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerDnsAliasListResult { @@ -8439,8 +8439,8 @@ pub struct ServerKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerKeyListResult { @@ -8529,8 +8529,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { @@ -8665,8 +8665,8 @@ pub struct ServerTrustGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ServerTrustGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerTrustGroupListResult { @@ -8744,7 +8744,7 @@ pub struct ServerUsageListResult { pub value: Vec, } impl azure_core::Continuable for ServerUsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8799,8 +8799,8 @@ pub struct ServerVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ServerVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerVulnerabilityAssessmentListResult { @@ -8882,7 +8882,7 @@ pub struct ServiceObjectiveListResult { pub value: Vec, } impl azure_core::Continuable for ServiceObjectiveListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8936,7 +8936,7 @@ pub struct ServiceTierAdvisorListResult { pub value: Vec, } impl azure_core::Continuable for ServiceTierAdvisorListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9318,8 +9318,8 @@ pub struct SubscriptionUsageListResult { pub next_link: Option, } impl azure_core::Continuable for SubscriptionUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionUsageListResult { @@ -9399,8 +9399,8 @@ pub struct SyncAgentLinkedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for SyncAgentLinkedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncAgentLinkedDatabaseListResult { @@ -9486,8 +9486,8 @@ pub struct SyncAgentListResult { pub next_link: Option, } impl azure_core::Continuable for SyncAgentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncAgentListResult { @@ -9578,8 +9578,8 @@ pub struct SyncDatabaseIdListResult { pub next_link: Option, } impl azure_core::Continuable for SyncDatabaseIdListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncDatabaseIdListResult { @@ -9625,8 +9625,8 @@ pub struct SyncFullSchemaPropertiesListResult { pub next_link: Option, } impl azure_core::Continuable for SyncFullSchemaPropertiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncFullSchemaPropertiesListResult { @@ -9713,8 +9713,8 @@ pub struct SyncGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SyncGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncGroupListResult { @@ -9733,8 +9733,8 @@ pub struct SyncGroupLogListResult { pub next_link: Option, } impl azure_core::Continuable for SyncGroupLogListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncGroupLogListResult { @@ -10008,8 +10008,8 @@ pub struct SyncMemberListResult { pub next_link: Option, } impl azure_core::Continuable for SyncMemberListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncMemberListResult { @@ -10324,8 +10324,8 @@ pub struct TopQueriesListResult { pub next_link: Option, } impl azure_core::Continuable for TopQueriesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopQueriesListResult { @@ -10394,7 +10394,7 @@ pub struct TransparentDataEncryptionActivityListResult { pub value: Vec, } impl azure_core::Continuable for TransparentDataEncryptionActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10532,8 +10532,8 @@ pub struct UsageListResult { pub next_link: Option, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageListResult { @@ -10569,8 +10569,8 @@ pub struct VirtualClusterListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualClusterListResult { @@ -10636,8 +10636,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { @@ -10771,8 +10771,8 @@ pub struct VulnerabilityAssessmentScanRecordListResult { pub next_link: Option, } impl azure_core::Continuable for VulnerabilityAssessmentScanRecordListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VulnerabilityAssessmentScanRecordListResult { @@ -10919,8 +10919,8 @@ pub struct WorkloadClassifierListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadClassifierListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadClassifierListResult { @@ -10987,8 +10987,8 @@ pub struct WorkloadGroupListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadGroupListResult { diff --git a/services/mgmt/sql/src/package_composite_v2/operations.rs b/services/mgmt/sql/src/package_composite_v2/operations.rs index 48ee6914bc..8323b36915 100644 --- a/services/mgmt/sql/src/package_composite_v2/operations.rs +++ b/services/mgmt/sql/src/package_composite_v2/operations.rs @@ -5814,9 +5814,9 @@ pub mod encryption_protectors { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5835,6 +5835,9 @@ pub mod encryption_protectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6363,9 +6366,9 @@ pub mod failover_groups { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6384,6 +6387,9 @@ pub mod failover_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6556,9 +6562,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Sql/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6577,6 +6583,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6700,9 +6709,9 @@ pub mod server_keys { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6721,6 +6730,9 @@ pub mod server_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7234,9 +7246,9 @@ pub mod sync_agents { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7255,6 +7267,9 @@ pub mod sync_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7369,9 +7384,9 @@ pub mod sync_agents { &this.sync_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7390,6 +7405,9 @@ pub mod sync_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7471,9 +7489,9 @@ pub mod subscription_usages { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7492,6 +7510,9 @@ pub mod subscription_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7661,9 +7682,9 @@ pub mod virtual_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7682,6 +7703,9 @@ pub mod virtual_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7737,9 +7761,9 @@ pub mod virtual_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7758,6 +7782,9 @@ pub mod virtual_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8229,9 +8256,9 @@ pub mod virtual_network_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8250,6 +8277,9 @@ pub mod virtual_network_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8466,9 +8496,9 @@ pub mod extended_database_blob_auditing_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/extendedAuditingSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8487,6 +8517,9 @@ pub mod extended_database_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8711,9 +8744,9 @@ pub mod extended_server_blob_auditing_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8732,6 +8765,9 @@ pub mod extended_server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8956,9 +8992,9 @@ pub mod server_blob_auditing_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8977,6 +9013,9 @@ pub mod server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9216,9 +9255,9 @@ pub mod database_blob_auditing_policies { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9237,6 +9276,9 @@ pub mod database_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9733,9 +9775,9 @@ pub mod database_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9754,6 +9796,9 @@ pub mod database_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9894,9 +9939,9 @@ pub mod job_agents { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9915,6 +9960,9 @@ pub mod job_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10290,9 +10338,9 @@ pub mod job_credentials { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10311,6 +10359,9 @@ pub mod job_credentials { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10711,9 +10762,9 @@ pub mod job_executions { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10732,6 +10783,9 @@ pub mod job_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10958,9 +11012,9 @@ pub mod job_executions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10979,6 +11033,9 @@ pub mod job_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11261,9 +11318,9 @@ pub mod jobs { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11282,6 +11339,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11604,9 +11664,9 @@ pub mod job_step_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/steps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11625,6 +11685,9 @@ pub mod job_step_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11872,9 +11935,9 @@ pub mod job_steps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/versions/{}/steps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_version)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11893,6 +11956,9 @@ pub mod job_steps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12004,9 +12070,9 @@ pub mod job_steps { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12025,6 +12091,9 @@ pub mod job_steps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12383,9 +12452,9 @@ pub mod job_target_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/targets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12404,6 +12473,9 @@ pub mod job_target_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12515,9 +12587,9 @@ pub mod job_target_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/steps/{}/targets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id , & this . step_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12536,6 +12608,9 @@ pub mod job_target_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12741,9 +12816,9 @@ pub mod job_target_groups { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12762,6 +12837,9 @@ pub mod job_target_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13045,9 +13123,9 @@ pub mod job_versions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13066,6 +13144,9 @@ pub mod job_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13457,9 +13538,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionDatabases/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . long_term_retention_server_name , & this . long_term_retention_database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13478,6 +13559,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13553,9 +13637,9 @@ pub mod long_term_retention_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13574,6 +13658,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13644,9 +13731,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . long_term_retention_server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13665,6 +13752,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13833,9 +13923,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionDatabases/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . long_term_retention_server_name , & this . long_term_retention_database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13854,6 +13944,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13927,9 +14020,9 @@ pub mod long_term_retention_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13948,6 +14041,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14023,9 +14119,9 @@ pub mod long_term_retention_backups { &this.long_term_retention_server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14044,6 +14140,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14548,9 +14647,9 @@ pub mod managed_backup_short_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14569,6 +14668,9 @@ pub mod managed_backup_short_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14857,9 +14959,9 @@ pub mod managed_restorable_dropped_database_backup_short_term_retention_policies async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/restorableDroppedDatabases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . restorable_dropped_database_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14878,6 +14980,9 @@ pub mod managed_restorable_dropped_database_backup_short_term_retention_policies req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15334,9 +15439,9 @@ pub mod server_dns_aliases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15355,6 +15460,9 @@ pub mod server_dns_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15637,9 +15745,9 @@ pub mod server_security_alert_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15658,6 +15766,9 @@ pub mod server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15749,9 +15860,9 @@ pub mod restorable_dropped_managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15770,6 +15881,9 @@ pub mod restorable_dropped_managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16336,9 +16450,9 @@ pub mod managed_database_security_alert_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/securityAlertPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16357,6 +16471,9 @@ pub mod managed_database_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16581,9 +16698,9 @@ pub mod managed_server_security_alert_policies { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16602,6 +16719,9 @@ pub mod managed_server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16816,9 +16936,9 @@ pub mod sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16837,6 +16957,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16907,9 +17030,9 @@ pub mod sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16928,6 +17051,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17318,9 +17444,9 @@ pub mod managed_instance_administrators { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17339,6 +17465,9 @@ pub mod managed_instance_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17667,9 +17796,9 @@ pub mod database_operations { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17688,6 +17817,9 @@ pub mod database_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17838,9 +17970,9 @@ pub mod elastic_pool_operations { &this.elastic_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17859,6 +17991,9 @@ pub mod elastic_pool_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17992,9 +18127,9 @@ pub mod database_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18013,6 +18148,9 @@ pub mod database_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18525,9 +18663,9 @@ pub mod managed_database_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18546,6 +18684,9 @@ pub mod managed_database_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18983,9 +19124,9 @@ pub mod managed_database_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19004,6 +19145,9 @@ pub mod managed_database_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19337,9 +19481,9 @@ pub mod instance_failover_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19358,6 +19502,9 @@ pub mod instance_failover_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19761,9 +19908,9 @@ pub mod backup_short_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19782,6 +19929,9 @@ pub mod backup_short_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20065,9 +20215,9 @@ pub mod managed_instance_keys { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20086,6 +20236,9 @@ pub mod managed_instance_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20442,9 +20595,9 @@ pub mod managed_instance_encryption_protectors { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20463,6 +20616,9 @@ pub mod managed_instance_encryption_protectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20670,9 +20826,9 @@ pub mod recoverable_managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20691,6 +20847,9 @@ pub mod recoverable_managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21037,9 +21196,9 @@ pub mod managed_instance_vulnerability_assessments { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21058,6 +21217,9 @@ pub mod managed_instance_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21351,9 +21513,9 @@ pub mod server_vulnerability_assessments { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21372,6 +21534,9 @@ pub mod server_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21842,9 +22007,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21863,6 +22028,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21933,9 +22101,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21954,6 +22122,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22333,9 +22504,9 @@ pub mod instance_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22354,6 +22525,9 @@ pub mod instance_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22407,9 +22581,9 @@ pub mod instance_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22428,6 +22602,9 @@ pub mod instance_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22510,9 +22687,9 @@ pub mod usages { &this.instance_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22531,6 +22708,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22627,9 +22807,9 @@ pub mod private_link_resources { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22648,6 +22828,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22847,9 +23030,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22868,6 +23051,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23155,9 +23341,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23176,6 +23362,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23556,9 +23745,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionDatabases/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23577,6 +23766,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23647,9 +23839,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23668,6 +23860,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23742,9 +23937,9 @@ pub mod long_term_retention_managed_instance_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23763,6 +23958,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23935,9 +24133,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionDatabases/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23956,6 +24154,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24027,9 +24228,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24048,6 +24249,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24118,9 +24322,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24139,6 +24343,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24361,9 +24568,9 @@ pub mod managed_instance_long_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/backupLongTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24382,6 +24589,9 @@ pub mod managed_instance_long_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24702,9 +24912,9 @@ pub mod workload_groups { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24723,6 +24933,9 @@ pub mod workload_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25023,9 +25236,9 @@ pub mod workload_classifiers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/workloadGroups/{}/workloadClassifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . workload_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25044,6 +25257,9 @@ pub mod workload_classifiers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25347,9 +25563,9 @@ pub mod server_azure_ad_administrators { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25368,6 +25584,9 @@ pub mod server_azure_ad_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25619,9 +25838,9 @@ pub mod sync_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25640,6 +25859,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25744,9 +25966,9 @@ pub mod sync_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/hubSchemas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25765,6 +25987,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25834,9 +26059,9 @@ pub mod sync_groups { &this.sync_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25855,6 +26080,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26263,9 +26491,9 @@ pub mod sync_groups { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26284,6 +26512,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26700,9 +26931,9 @@ pub mod sync_members { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/syncMembers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26721,6 +26952,9 @@ pub mod sync_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26775,9 +27009,9 @@ pub mod sync_members { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/syncMembers/{}/schemas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name , & this . sync_member_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26796,6 +27030,9 @@ pub mod sync_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27018,9 +27255,9 @@ pub mod managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27039,6 +27276,9 @@ pub mod managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27383,9 +27623,9 @@ pub mod managed_databases { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/inaccessibleManagedDatabases" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27404,6 +27644,9 @@ pub mod managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27707,9 +27950,9 @@ pub mod server_azure_ad_only_authentications { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27728,6 +27971,9 @@ pub mod server_azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27911,9 +28157,9 @@ pub mod managed_instances { &this.instance_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27932,6 +28178,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27987,9 +28236,9 @@ pub mod managed_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28008,6 +28257,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28334,9 +28586,9 @@ pub mod managed_instances { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28355,6 +28607,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28496,9 +28751,9 @@ pub mod managed_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28517,6 +28772,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28799,9 +29057,9 @@ pub mod managed_instance_azure_ad_only_authentications { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28820,6 +29078,9 @@ pub mod managed_instance_azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29136,9 +29397,9 @@ pub mod server_trust_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29157,6 +29418,9 @@ pub mod server_trust_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29214,9 +29478,9 @@ pub mod server_trust_groups { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29235,6 +29499,9 @@ pub mod server_trust_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29532,9 +29799,9 @@ pub mod private_endpoint_connections { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29553,6 +29820,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/sql/src/package_composite_v3/models.rs b/services/mgmt/sql/src/package_composite_v3/models.rs index 8c8966e1b5..f8ed2fa1ee 100644 --- a/services/mgmt/sql/src/package_composite_v3/models.rs +++ b/services/mgmt/sql/src/package_composite_v3/models.rs @@ -15,8 +15,8 @@ pub struct AdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for AdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AdministratorListResult { @@ -293,8 +293,8 @@ pub struct AzureAdOnlyAuthListResult { pub next_link: Option, } impl azure_core::Continuable for AzureAdOnlyAuthListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureAdOnlyAuthListResult { @@ -355,8 +355,8 @@ pub struct BackupShortTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for BackupShortTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupShortTermRetentionPolicyListResult { @@ -554,7 +554,7 @@ pub struct DataMaskingRuleListResult { pub value: Vec, } impl azure_core::Continuable for DataMaskingRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -755,8 +755,8 @@ pub struct DatabaseBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseBlobAuditingPolicyListResult { @@ -829,8 +829,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -863,8 +863,8 @@ pub struct DatabaseOperationListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseOperationListResult { @@ -1994,7 +1994,7 @@ pub struct DatabaseUsageListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseUsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2028,8 +2028,8 @@ pub struct DatabaseVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseVulnerabilityAssessmentListResult { @@ -2211,7 +2211,7 @@ pub struct ElasticPoolActivityListResult { pub value: Vec, } impl azure_core::Continuable for ElasticPoolActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2313,7 +2313,7 @@ pub struct ElasticPoolDatabaseActivityListResult { pub value: Vec, } impl azure_core::Continuable for ElasticPoolDatabaseActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2422,8 +2422,8 @@ pub struct ElasticPoolListResult { pub next_link: Option, } impl azure_core::Continuable for ElasticPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticPoolListResult { @@ -2456,8 +2456,8 @@ pub struct ElasticPoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ElasticPoolOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticPoolOperationListResult { @@ -2951,8 +2951,8 @@ pub struct EncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionProtectorListResult { @@ -3139,8 +3139,8 @@ pub struct ExtendedDatabaseBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedDatabaseBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedDatabaseBlobAuditingPolicyListResult { @@ -3231,8 +3231,8 @@ pub struct ExtendedServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedServerBlobAuditingPolicyListResult { @@ -3329,8 +3329,8 @@ pub struct FailoverGroupListResult { pub next_link: Option, } impl azure_core::Continuable for FailoverGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FailoverGroupListResult { @@ -3590,7 +3590,7 @@ pub struct FirewallRuleListResult { pub value: Vec, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3649,7 +3649,7 @@ pub struct GeoBackupPolicyListResult { pub value: Vec, } impl azure_core::Continuable for GeoBackupPolicyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3943,8 +3943,8 @@ pub struct InstanceFailoverGroupListResult { pub next_link: Option, } impl azure_core::Continuable for InstanceFailoverGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstanceFailoverGroupListResult { @@ -4243,8 +4243,8 @@ pub struct InstancePoolListResult { pub next_link: Option, } impl azure_core::Continuable for InstancePoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstancePoolListResult { @@ -4407,8 +4407,8 @@ pub struct JobAgentListResult { pub next_link: Option, } impl azure_core::Continuable for JobAgentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobAgentListResult { @@ -4514,8 +4514,8 @@ pub struct JobCredentialListResult { pub next_link: Option, } impl azure_core::Continuable for JobCredentialListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCredentialListResult { @@ -4561,8 +4561,8 @@ pub struct JobExecutionListResult { pub next_link: Option, } impl azure_core::Continuable for JobExecutionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobExecutionListResult { @@ -4792,8 +4792,8 @@ pub struct JobListResult { pub next_link: Option, } impl azure_core::Continuable for JobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResult { @@ -5010,8 +5010,8 @@ pub struct JobStepListResult { pub next_link: Option, } impl azure_core::Continuable for JobStepListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobStepListResult { @@ -5255,8 +5255,8 @@ pub struct JobTargetGroupListResult { pub next_link: Option, } impl azure_core::Continuable for JobTargetGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobTargetGroupListResult { @@ -5297,8 +5297,8 @@ pub struct JobVersionListResult { pub next_link: Option, } impl azure_core::Continuable for JobVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobVersionListResult { @@ -5442,8 +5442,8 @@ pub struct LogicalServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for LogicalServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalServerSecurityAlertPolicyListResult { @@ -5476,8 +5476,8 @@ pub struct LongTermRetentionBackupListResult { pub next_link: Option, } impl azure_core::Continuable for LongTermRetentionBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LongTermRetentionBackupListResult { @@ -5558,8 +5558,8 @@ pub struct ManagedBackupShortTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedBackupShortTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedBackupShortTermRetentionPolicyListResult { @@ -5607,8 +5607,8 @@ pub struct ManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedDatabaseListResult { @@ -5837,8 +5837,8 @@ pub struct ManagedDatabaseSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedDatabaseSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedDatabaseSecurityAlertPolicyListResult { @@ -5911,8 +5911,8 @@ pub struct ManagedInstanceAdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceAdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceAdministratorListResult { @@ -5993,8 +5993,8 @@ pub struct ManagedInstanceAzureAdOnlyAuthListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceAzureAdOnlyAuthListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceAzureAdOnlyAuthListResult { @@ -6090,8 +6090,8 @@ pub struct ManagedInstanceEncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceEncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceEncryptionProtectorListResult { @@ -6231,8 +6231,8 @@ pub struct ManagedInstanceKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceKeyListResult { @@ -6317,8 +6317,8 @@ pub struct ManagedInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceListResult { @@ -6351,8 +6351,8 @@ pub struct ManagedInstanceLongTermRetentionBackupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceLongTermRetentionBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceLongTermRetentionBackupListResult { @@ -6412,8 +6412,8 @@ pub struct ManagedInstanceLongTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceLongTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceLongTermRetentionPolicyListResult { @@ -6446,8 +6446,8 @@ pub struct ManagedInstanceOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceOperationListResult { @@ -7036,8 +7036,8 @@ pub struct ManagedInstanceVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceVulnerabilityAssessmentListResult { @@ -7096,8 +7096,8 @@ pub struct ManagedServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedServerSecurityAlertPolicyListResult { @@ -7422,7 +7422,7 @@ pub struct MetricDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7438,7 +7438,7 @@ pub struct MetricListResult { pub value: Vec, } impl azure_core::Continuable for MetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7664,8 +7664,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -7870,8 +7870,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -7995,8 +7995,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -8349,7 +8349,7 @@ pub struct RecommendedElasticPoolListMetricsResult { pub value: Vec, } impl azure_core::Continuable for RecommendedElasticPoolListMetricsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8365,7 +8365,7 @@ pub struct RecommendedElasticPoolListResult { pub value: Vec, } impl azure_core::Continuable for RecommendedElasticPoolListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8598,7 +8598,7 @@ pub struct RecoverableDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for RecoverableDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8653,8 +8653,8 @@ pub struct RecoverableManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RecoverableManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoverableManagedDatabaseListResult { @@ -8702,7 +8702,7 @@ pub struct ReplicationLinkListResult { pub value: Vec, } impl azure_core::Continuable for ReplicationLinkListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8932,7 +8932,7 @@ pub struct RestorableDroppedDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDroppedDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9002,8 +9002,8 @@ pub struct RestorableDroppedManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RestorableDroppedManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorableDroppedManagedDatabaseListResult { @@ -9060,7 +9060,7 @@ pub struct RestorePointListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9177,8 +9177,8 @@ pub struct SensitivityLabelListResult { pub next_link: Option, } impl azure_core::Continuable for SensitivityLabelListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SensitivityLabelListResult { @@ -9315,8 +9315,8 @@ pub struct ServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBlobAuditingPolicyListResult { @@ -9406,7 +9406,7 @@ pub struct ServerCommunicationLinkListResult { pub value: Vec, } impl azure_core::Continuable for ServerCommunicationLinkListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9512,8 +9512,8 @@ pub struct ServerDnsAliasListResult { pub next_link: Option, } impl azure_core::Continuable for ServerDnsAliasListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerDnsAliasListResult { @@ -9576,8 +9576,8 @@ pub struct ServerKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerKeyListResult { @@ -9666,8 +9666,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { @@ -9802,8 +9802,8 @@ pub struct ServerTrustGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ServerTrustGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerTrustGroupListResult { @@ -9881,7 +9881,7 @@ pub struct ServerUsageListResult { pub value: Vec, } impl azure_core::Continuable for ServerUsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9950,8 +9950,8 @@ pub struct ServerVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ServerVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerVulnerabilityAssessmentListResult { @@ -10065,7 +10065,7 @@ pub struct ServiceObjectiveListResult { pub value: Vec, } impl azure_core::Continuable for ServiceObjectiveListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10119,7 +10119,7 @@ pub struct ServiceTierAdvisorListResult { pub value: Vec, } impl azure_core::Continuable for ServiceTierAdvisorListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10540,8 +10540,8 @@ pub struct SubscriptionUsageListResult { pub next_link: Option, } impl azure_core::Continuable for SubscriptionUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionUsageListResult { @@ -10621,8 +10621,8 @@ pub struct SyncAgentLinkedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for SyncAgentLinkedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncAgentLinkedDatabaseListResult { @@ -10708,8 +10708,8 @@ pub struct SyncAgentListResult { pub next_link: Option, } impl azure_core::Continuable for SyncAgentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncAgentListResult { @@ -10800,8 +10800,8 @@ pub struct SyncDatabaseIdListResult { pub next_link: Option, } impl azure_core::Continuable for SyncDatabaseIdListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncDatabaseIdListResult { @@ -10847,8 +10847,8 @@ pub struct SyncFullSchemaPropertiesListResult { pub next_link: Option, } impl azure_core::Continuable for SyncFullSchemaPropertiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncFullSchemaPropertiesListResult { @@ -10935,8 +10935,8 @@ pub struct SyncGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SyncGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncGroupListResult { @@ -10955,8 +10955,8 @@ pub struct SyncGroupLogListResult { pub next_link: Option, } impl azure_core::Continuable for SyncGroupLogListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncGroupLogListResult { @@ -11230,8 +11230,8 @@ pub struct SyncMemberListResult { pub next_link: Option, } impl azure_core::Continuable for SyncMemberListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncMemberListResult { @@ -11546,8 +11546,8 @@ pub struct TopQueriesListResult { pub next_link: Option, } impl azure_core::Continuable for TopQueriesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopQueriesListResult { @@ -11616,7 +11616,7 @@ pub struct TransparentDataEncryptionActivityListResult { pub value: Vec, } impl azure_core::Continuable for TransparentDataEncryptionActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -11796,8 +11796,8 @@ pub struct UsageListResult { pub next_link: Option, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageListResult { @@ -11833,8 +11833,8 @@ pub struct VirtualClusterListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualClusterListResult { @@ -11900,8 +11900,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { @@ -12035,8 +12035,8 @@ pub struct VulnerabilityAssessmentScanRecordListResult { pub next_link: Option, } impl azure_core::Continuable for VulnerabilityAssessmentScanRecordListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VulnerabilityAssessmentScanRecordListResult { @@ -12183,8 +12183,8 @@ pub struct WorkloadClassifierListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadClassifierListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadClassifierListResult { @@ -12251,8 +12251,8 @@ pub struct WorkloadGroupListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadGroupListResult { diff --git a/services/mgmt/sql/src/package_composite_v3/operations.rs b/services/mgmt/sql/src/package_composite_v3/operations.rs index 281adf5980..f7e3c08c58 100644 --- a/services/mgmt/sql/src/package_composite_v3/operations.rs +++ b/services/mgmt/sql/src/package_composite_v3/operations.rs @@ -2159,9 +2159,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2180,6 +2180,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2777,9 +2780,9 @@ pub mod databases { &this.elastic_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2798,6 +2801,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2855,9 +2861,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2876,6 +2882,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3244,9 +3253,9 @@ pub mod elastic_pools { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3265,6 +3274,9 @@ pub mod elastic_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5625,9 +5637,9 @@ pub mod encryption_protectors { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5646,6 +5658,9 @@ pub mod encryption_protectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6174,9 +6189,9 @@ pub mod failover_groups { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6195,6 +6210,9 @@ pub mod failover_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6367,9 +6385,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Sql/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6388,6 +6406,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6511,9 +6532,9 @@ pub mod server_keys { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6532,6 +6553,9 @@ pub mod server_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7045,9 +7069,9 @@ pub mod sync_agents { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7066,6 +7090,9 @@ pub mod sync_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7180,9 +7207,9 @@ pub mod sync_agents { &this.sync_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7201,6 +7228,9 @@ pub mod sync_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7282,9 +7312,9 @@ pub mod subscription_usages { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7303,6 +7333,9 @@ pub mod subscription_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7472,9 +7505,9 @@ pub mod virtual_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7493,6 +7526,9 @@ pub mod virtual_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7548,9 +7584,9 @@ pub mod virtual_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7569,6 +7605,9 @@ pub mod virtual_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8040,9 +8079,9 @@ pub mod virtual_network_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8061,6 +8100,9 @@ pub mod virtual_network_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8277,9 +8319,9 @@ pub mod extended_database_blob_auditing_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/extendedAuditingSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8298,6 +8340,9 @@ pub mod extended_database_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8522,9 +8567,9 @@ pub mod extended_server_blob_auditing_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8543,6 +8588,9 @@ pub mod extended_server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8767,9 +8815,9 @@ pub mod server_blob_auditing_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8788,6 +8836,9 @@ pub mod server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9027,9 +9078,9 @@ pub mod database_blob_auditing_policies { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9048,6 +9099,9 @@ pub mod database_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9544,9 +9598,9 @@ pub mod database_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9565,6 +9619,9 @@ pub mod database_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9705,9 +9762,9 @@ pub mod job_agents { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9726,6 +9783,9 @@ pub mod job_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10101,9 +10161,9 @@ pub mod job_credentials { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10122,6 +10182,9 @@ pub mod job_credentials { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10522,9 +10585,9 @@ pub mod job_executions { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10543,6 +10606,9 @@ pub mod job_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10769,9 +10835,9 @@ pub mod job_executions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10790,6 +10856,9 @@ pub mod job_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11072,9 +11141,9 @@ pub mod jobs { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11093,6 +11162,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11415,9 +11487,9 @@ pub mod job_step_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/steps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11436,6 +11508,9 @@ pub mod job_step_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11683,9 +11758,9 @@ pub mod job_steps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/versions/{}/steps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_version)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11704,6 +11779,9 @@ pub mod job_steps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11815,9 +11893,9 @@ pub mod job_steps { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11836,6 +11914,9 @@ pub mod job_steps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12194,9 +12275,9 @@ pub mod job_target_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/targets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12215,6 +12296,9 @@ pub mod job_target_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12326,9 +12410,9 @@ pub mod job_target_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/steps/{}/targets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id , & this . step_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12347,6 +12431,9 @@ pub mod job_target_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12552,9 +12639,9 @@ pub mod job_target_groups { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12573,6 +12660,9 @@ pub mod job_target_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12856,9 +12946,9 @@ pub mod job_versions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12877,6 +12967,9 @@ pub mod job_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13268,9 +13361,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionDatabases/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . long_term_retention_server_name , & this . long_term_retention_database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13289,6 +13382,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13364,9 +13460,9 @@ pub mod long_term_retention_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13385,6 +13481,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13455,9 +13554,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . long_term_retention_server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13476,6 +13575,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13644,9 +13746,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionDatabases/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . long_term_retention_server_name , & this . long_term_retention_database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13665,6 +13767,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13738,9 +13843,9 @@ pub mod long_term_retention_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13759,6 +13864,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13834,9 +13942,9 @@ pub mod long_term_retention_backups { &this.long_term_retention_server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13855,6 +13963,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14359,9 +14470,9 @@ pub mod managed_backup_short_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14380,6 +14491,9 @@ pub mod managed_backup_short_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14668,9 +14782,9 @@ pub mod managed_restorable_dropped_database_backup_short_term_retention_policies async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/restorableDroppedDatabases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . restorable_dropped_database_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14689,6 +14803,9 @@ pub mod managed_restorable_dropped_database_backup_short_term_retention_policies req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15145,9 +15262,9 @@ pub mod server_dns_aliases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15166,6 +15283,9 @@ pub mod server_dns_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15448,9 +15568,9 @@ pub mod server_security_alert_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15469,6 +15589,9 @@ pub mod server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15560,9 +15683,9 @@ pub mod restorable_dropped_managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15581,6 +15704,9 @@ pub mod restorable_dropped_managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16147,9 +16273,9 @@ pub mod managed_database_security_alert_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/securityAlertPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16168,6 +16294,9 @@ pub mod managed_database_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16392,9 +16521,9 @@ pub mod managed_server_security_alert_policies { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16413,6 +16542,9 @@ pub mod managed_server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16627,9 +16759,9 @@ pub mod sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16648,6 +16780,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16718,9 +16853,9 @@ pub mod sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16739,6 +16874,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17129,9 +17267,9 @@ pub mod managed_instance_administrators { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17150,6 +17288,9 @@ pub mod managed_instance_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17478,9 +17619,9 @@ pub mod database_operations { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17499,6 +17640,9 @@ pub mod database_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17649,9 +17793,9 @@ pub mod elastic_pool_operations { &this.elastic_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17670,6 +17814,9 @@ pub mod elastic_pool_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17803,9 +17950,9 @@ pub mod database_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17824,6 +17971,9 @@ pub mod database_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18336,9 +18486,9 @@ pub mod managed_database_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18357,6 +18507,9 @@ pub mod managed_database_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18794,9 +18947,9 @@ pub mod managed_database_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18815,6 +18968,9 @@ pub mod managed_database_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19148,9 +19304,9 @@ pub mod instance_failover_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19169,6 +19325,9 @@ pub mod instance_failover_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19567,9 +19726,9 @@ pub mod managed_instance_keys { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19588,6 +19747,9 @@ pub mod managed_instance_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19944,9 +20106,9 @@ pub mod managed_instance_encryption_protectors { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19965,6 +20127,9 @@ pub mod managed_instance_encryption_protectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20172,9 +20337,9 @@ pub mod recoverable_managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20193,6 +20358,9 @@ pub mod recoverable_managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20535,9 +20703,9 @@ pub mod backup_short_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20556,6 +20724,9 @@ pub mod backup_short_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20848,9 +21019,9 @@ pub mod managed_instance_vulnerability_assessments { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20869,6 +21040,9 @@ pub mod managed_instance_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21162,9 +21336,9 @@ pub mod server_vulnerability_assessments { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21183,6 +21357,9 @@ pub mod server_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21653,9 +21830,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21674,6 +21851,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21744,9 +21924,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21765,6 +21945,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22144,9 +22327,9 @@ pub mod instance_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22165,6 +22348,9 @@ pub mod instance_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22218,9 +22404,9 @@ pub mod instance_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22239,6 +22425,9 @@ pub mod instance_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22321,9 +22510,9 @@ pub mod usages { &this.instance_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22342,6 +22531,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22438,9 +22630,9 @@ pub mod private_link_resources { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22459,6 +22651,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22673,9 +22868,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22694,6 +22889,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22981,9 +23179,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23002,6 +23200,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23514,9 +23715,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionDatabases/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23535,6 +23736,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23605,9 +23809,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23626,6 +23830,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23700,9 +23907,9 @@ pub mod long_term_retention_managed_instance_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23721,6 +23928,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23893,9 +24103,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionDatabases/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23914,6 +24124,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23985,9 +24198,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24006,6 +24219,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24076,9 +24292,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24097,6 +24313,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24319,9 +24538,9 @@ pub mod managed_instance_long_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/backupLongTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24340,6 +24559,9 @@ pub mod managed_instance_long_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24660,9 +24882,9 @@ pub mod workload_groups { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24681,6 +24903,9 @@ pub mod workload_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24981,9 +25206,9 @@ pub mod workload_classifiers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/workloadGroups/{}/workloadClassifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . workload_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25002,6 +25227,9 @@ pub mod workload_classifiers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25159,9 +25387,9 @@ pub mod managed_instance_operations { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25180,6 +25408,9 @@ pub mod managed_instance_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25537,9 +25768,9 @@ pub mod server_azure_ad_administrators { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25558,6 +25789,9 @@ pub mod server_azure_ad_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25809,9 +26043,9 @@ pub mod sync_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25830,6 +26064,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25934,9 +26171,9 @@ pub mod sync_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/hubSchemas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25955,6 +26192,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26024,9 +26264,9 @@ pub mod sync_groups { &this.sync_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26045,6 +26285,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26453,9 +26696,9 @@ pub mod sync_groups { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26474,6 +26717,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26890,9 +27136,9 @@ pub mod sync_members { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/syncMembers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26911,6 +27157,9 @@ pub mod sync_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26965,9 +27214,9 @@ pub mod sync_members { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/syncMembers/{}/schemas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name , & this . sync_member_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26986,6 +27235,9 @@ pub mod sync_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27293,9 +27545,9 @@ pub mod managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27314,6 +27566,9 @@ pub mod managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27658,9 +27913,9 @@ pub mod managed_databases { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/inaccessibleManagedDatabases" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27679,6 +27934,9 @@ pub mod managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27982,9 +28240,9 @@ pub mod server_azure_ad_only_authentications { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28003,6 +28261,9 @@ pub mod server_azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28186,9 +28447,9 @@ pub mod managed_instances { &this.instance_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28207,6 +28468,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28262,9 +28526,9 @@ pub mod managed_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28283,6 +28547,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28609,9 +28876,9 @@ pub mod managed_instances { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28630,6 +28897,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28771,9 +29041,9 @@ pub mod managed_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28792,6 +29062,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29074,9 +29347,9 @@ pub mod managed_instance_azure_ad_only_authentications { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29095,6 +29368,9 @@ pub mod managed_instance_azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29411,9 +29687,9 @@ pub mod server_trust_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29432,6 +29708,9 @@ pub mod server_trust_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29489,9 +29768,9 @@ pub mod server_trust_groups { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29510,6 +29789,9 @@ pub mod server_trust_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29807,9 +30089,9 @@ pub mod private_endpoint_connections { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29828,6 +30110,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/sql/src/package_composite_v4/models.rs b/services/mgmt/sql/src/package_composite_v4/models.rs index 409120e5e2..a4c4db9e1b 100644 --- a/services/mgmt/sql/src/package_composite_v4/models.rs +++ b/services/mgmt/sql/src/package_composite_v4/models.rs @@ -15,8 +15,8 @@ pub struct AdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for AdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AdministratorListResult { @@ -293,8 +293,8 @@ pub struct AzureAdOnlyAuthListResult { pub next_link: Option, } impl azure_core::Continuable for AzureAdOnlyAuthListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureAdOnlyAuthListResult { @@ -341,8 +341,8 @@ pub struct BackupShortTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for BackupShortTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupShortTermRetentionPolicyListResult { @@ -621,7 +621,7 @@ pub struct DataMaskingRuleListResult { pub value: Vec, } impl azure_core::Continuable for DataMaskingRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -822,8 +822,8 @@ pub struct DatabaseBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseBlobAuditingPolicyListResult { @@ -896,8 +896,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -930,8 +930,8 @@ pub struct DatabaseOperationListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseOperationListResult { @@ -1699,7 +1699,7 @@ pub struct DatabaseUsageListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseUsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1733,8 +1733,8 @@ pub struct DatabaseVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseVulnerabilityAssessmentListResult { @@ -1916,7 +1916,7 @@ pub struct ElasticPoolActivityListResult { pub value: Vec, } impl azure_core::Continuable for ElasticPoolActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2018,7 +2018,7 @@ pub struct ElasticPoolDatabaseActivityListResult { pub value: Vec, } impl azure_core::Continuable for ElasticPoolDatabaseActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2127,8 +2127,8 @@ pub struct ElasticPoolListResult { pub next_link: Option, } impl azure_core::Continuable for ElasticPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticPoolListResult { @@ -2161,8 +2161,8 @@ pub struct ElasticPoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ElasticPoolOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticPoolOperationListResult { @@ -2665,8 +2665,8 @@ pub struct EncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionProtectorListResult { @@ -2853,8 +2853,8 @@ pub struct ExtendedDatabaseBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedDatabaseBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedDatabaseBlobAuditingPolicyListResult { @@ -2945,8 +2945,8 @@ pub struct ExtendedServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedServerBlobAuditingPolicyListResult { @@ -3043,8 +3043,8 @@ pub struct FailoverGroupListResult { pub next_link: Option, } impl azure_core::Continuable for FailoverGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FailoverGroupListResult { @@ -3304,7 +3304,7 @@ pub struct FirewallRuleListResult { pub value: Vec, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3363,7 +3363,7 @@ pub struct GeoBackupPolicyListResult { pub value: Vec, } impl azure_core::Continuable for GeoBackupPolicyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3657,8 +3657,8 @@ pub struct InstanceFailoverGroupListResult { pub next_link: Option, } impl azure_core::Continuable for InstanceFailoverGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstanceFailoverGroupListResult { @@ -3957,8 +3957,8 @@ pub struct InstancePoolListResult { pub next_link: Option, } impl azure_core::Continuable for InstancePoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstancePoolListResult { @@ -4121,8 +4121,8 @@ pub struct JobAgentListResult { pub next_link: Option, } impl azure_core::Continuable for JobAgentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobAgentListResult { @@ -4228,8 +4228,8 @@ pub struct JobCredentialListResult { pub next_link: Option, } impl azure_core::Continuable for JobCredentialListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCredentialListResult { @@ -4275,8 +4275,8 @@ pub struct JobExecutionListResult { pub next_link: Option, } impl azure_core::Continuable for JobExecutionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobExecutionListResult { @@ -4506,8 +4506,8 @@ pub struct JobListResult { pub next_link: Option, } impl azure_core::Continuable for JobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResult { @@ -4724,8 +4724,8 @@ pub struct JobStepListResult { pub next_link: Option, } impl azure_core::Continuable for JobStepListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobStepListResult { @@ -4969,8 +4969,8 @@ pub struct JobTargetGroupListResult { pub next_link: Option, } impl azure_core::Continuable for JobTargetGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobTargetGroupListResult { @@ -5011,8 +5011,8 @@ pub struct JobVersionListResult { pub next_link: Option, } impl azure_core::Continuable for JobVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobVersionListResult { @@ -5156,8 +5156,8 @@ pub struct LogicalServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for LogicalServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalServerSecurityAlertPolicyListResult { @@ -5190,8 +5190,8 @@ pub struct LongTermRetentionBackupListResult { pub next_link: Option, } impl azure_core::Continuable for LongTermRetentionBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LongTermRetentionBackupListResult { @@ -5424,8 +5424,8 @@ pub struct LongTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for LongTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LongTermRetentionPolicyListResult { @@ -5490,8 +5490,8 @@ pub struct ManagedBackupShortTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedBackupShortTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedBackupShortTermRetentionPolicyListResult { @@ -5539,8 +5539,8 @@ pub struct ManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedDatabaseListResult { @@ -5822,8 +5822,8 @@ pub struct ManagedDatabaseSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedDatabaseSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedDatabaseSecurityAlertPolicyListResult { @@ -5896,8 +5896,8 @@ pub struct ManagedInstanceAdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceAdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceAdministratorListResult { @@ -5978,8 +5978,8 @@ pub struct ManagedInstanceAzureAdOnlyAuthListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceAzureAdOnlyAuthListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceAzureAdOnlyAuthListResult { @@ -6081,8 +6081,8 @@ pub struct ManagedInstanceEncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceEncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceEncryptionProtectorListResult { @@ -6222,8 +6222,8 @@ pub struct ManagedInstanceKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceKeyListResult { @@ -6308,8 +6308,8 @@ pub struct ManagedInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceListResult { @@ -6342,8 +6342,8 @@ pub struct ManagedInstanceLongTermRetentionBackupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceLongTermRetentionBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceLongTermRetentionBackupListResult { @@ -6403,8 +6403,8 @@ pub struct ManagedInstanceLongTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceLongTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceLongTermRetentionPolicyListResult { @@ -6466,8 +6466,8 @@ pub struct ManagedInstanceOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceOperationListResult { @@ -7059,8 +7059,8 @@ pub struct ManagedInstanceVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceVulnerabilityAssessmentListResult { @@ -7119,8 +7119,8 @@ pub struct ManagedServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedServerSecurityAlertPolicyListResult { @@ -7445,7 +7445,7 @@ pub struct MetricDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7461,7 +7461,7 @@ pub struct MetricListResult { pub value: Vec, } impl azure_core::Continuable for MetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7687,8 +7687,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -7893,8 +7893,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -8018,8 +8018,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -8372,7 +8372,7 @@ pub struct RecommendedElasticPoolListMetricsResult { pub value: Vec, } impl azure_core::Continuable for RecommendedElasticPoolListMetricsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8388,7 +8388,7 @@ pub struct RecommendedElasticPoolListResult { pub value: Vec, } impl azure_core::Continuable for RecommendedElasticPoolListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8621,7 +8621,7 @@ pub struct RecoverableDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for RecoverableDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8676,8 +8676,8 @@ pub struct RecoverableManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RecoverableManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoverableManagedDatabaseListResult { @@ -8725,7 +8725,7 @@ pub struct ReplicationLinkListResult { pub value: Vec, } impl azure_core::Continuable for ReplicationLinkListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -8955,7 +8955,7 @@ pub struct RestorableDroppedDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDroppedDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9025,8 +9025,8 @@ pub struct RestorableDroppedManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RestorableDroppedManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorableDroppedManagedDatabaseListResult { @@ -9083,7 +9083,7 @@ pub struct RestorePointListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9200,8 +9200,8 @@ pub struct SensitivityLabelListResult { pub next_link: Option, } impl azure_core::Continuable for SensitivityLabelListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SensitivityLabelListResult { @@ -9338,8 +9338,8 @@ pub struct ServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBlobAuditingPolicyListResult { @@ -9429,7 +9429,7 @@ pub struct ServerCommunicationLinkListResult { pub value: Vec, } impl azure_core::Continuable for ServerCommunicationLinkListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9509,8 +9509,8 @@ pub struct ServerDevOpsAuditSettingsListResult { pub next_link: Option, } impl azure_core::Continuable for ServerDevOpsAuditSettingsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerDevOpsAuditSettingsListResult { @@ -9610,8 +9610,8 @@ pub struct ServerDnsAliasListResult { pub next_link: Option, } impl azure_core::Continuable for ServerDnsAliasListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerDnsAliasListResult { @@ -9674,8 +9674,8 @@ pub struct ServerKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerKeyListResult { @@ -9764,8 +9764,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { @@ -9900,8 +9900,8 @@ pub struct ServerTrustGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ServerTrustGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerTrustGroupListResult { @@ -9979,7 +9979,7 @@ pub struct ServerUsageListResult { pub value: Vec, } impl azure_core::Continuable for ServerUsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10048,8 +10048,8 @@ pub struct ServerVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ServerVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerVulnerabilityAssessmentListResult { @@ -10166,7 +10166,7 @@ pub struct ServiceObjectiveListResult { pub value: Vec, } impl azure_core::Continuable for ServiceObjectiveListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10220,7 +10220,7 @@ pub struct ServiceTierAdvisorListResult { pub value: Vec, } impl azure_core::Continuable for ServiceTierAdvisorListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10641,8 +10641,8 @@ pub struct SubscriptionUsageListResult { pub next_link: Option, } impl azure_core::Continuable for SubscriptionUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionUsageListResult { @@ -10722,8 +10722,8 @@ pub struct SyncAgentLinkedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for SyncAgentLinkedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncAgentLinkedDatabaseListResult { @@ -10809,8 +10809,8 @@ pub struct SyncAgentListResult { pub next_link: Option, } impl azure_core::Continuable for SyncAgentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncAgentListResult { @@ -10901,8 +10901,8 @@ pub struct SyncDatabaseIdListResult { pub next_link: Option, } impl azure_core::Continuable for SyncDatabaseIdListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncDatabaseIdListResult { @@ -10948,8 +10948,8 @@ pub struct SyncFullSchemaPropertiesListResult { pub next_link: Option, } impl azure_core::Continuable for SyncFullSchemaPropertiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncFullSchemaPropertiesListResult { @@ -11036,8 +11036,8 @@ pub struct SyncGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SyncGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncGroupListResult { @@ -11056,8 +11056,8 @@ pub struct SyncGroupLogListResult { pub next_link: Option, } impl azure_core::Continuable for SyncGroupLogListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncGroupLogListResult { @@ -11331,8 +11331,8 @@ pub struct SyncMemberListResult { pub next_link: Option, } impl azure_core::Continuable for SyncMemberListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncMemberListResult { @@ -11647,8 +11647,8 @@ pub struct TopQueriesListResult { pub next_link: Option, } impl azure_core::Continuable for TopQueriesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopQueriesListResult { @@ -11717,7 +11717,7 @@ pub struct TransparentDataEncryptionActivityListResult { pub value: Vec, } impl azure_core::Continuable for TransparentDataEncryptionActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -11964,8 +11964,8 @@ pub struct UsageListResult { pub next_link: Option, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageListResult { @@ -12001,8 +12001,8 @@ pub struct VirtualClusterListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualClusterListResult { @@ -12068,8 +12068,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { @@ -12203,8 +12203,8 @@ pub struct VulnerabilityAssessmentScanRecordListResult { pub next_link: Option, } impl azure_core::Continuable for VulnerabilityAssessmentScanRecordListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VulnerabilityAssessmentScanRecordListResult { @@ -12351,8 +12351,8 @@ pub struct WorkloadClassifierListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadClassifierListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadClassifierListResult { @@ -12419,8 +12419,8 @@ pub struct WorkloadGroupListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadGroupListResult { diff --git a/services/mgmt/sql/src/package_composite_v4/operations.rs b/services/mgmt/sql/src/package_composite_v4/operations.rs index 8d7f162f01..538d68cbfb 100644 --- a/services/mgmt/sql/src/package_composite_v4/operations.rs +++ b/services/mgmt/sql/src/package_composite_v4/operations.rs @@ -2227,9 +2227,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2248,6 +2248,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2549,9 +2552,9 @@ pub mod databases { &this.elastic_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2570,6 +2573,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2814,9 +2820,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2835,6 +2841,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3250,9 +3259,9 @@ pub mod elastic_pools { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3271,6 +3280,9 @@ pub mod elastic_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5631,9 +5643,9 @@ pub mod encryption_protectors { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5652,6 +5664,9 @@ pub mod encryption_protectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6180,9 +6195,9 @@ pub mod failover_groups { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6201,6 +6216,9 @@ pub mod failover_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6373,9 +6391,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Sql/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6394,6 +6412,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6517,9 +6538,9 @@ pub mod server_keys { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6538,6 +6559,9 @@ pub mod server_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7051,9 +7075,9 @@ pub mod sync_agents { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7072,6 +7096,9 @@ pub mod sync_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7186,9 +7213,9 @@ pub mod sync_agents { &this.sync_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7207,6 +7234,9 @@ pub mod sync_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7288,9 +7318,9 @@ pub mod subscription_usages { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7309,6 +7339,9 @@ pub mod subscription_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7478,9 +7511,9 @@ pub mod virtual_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7499,6 +7532,9 @@ pub mod virtual_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7554,9 +7590,9 @@ pub mod virtual_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7575,6 +7611,9 @@ pub mod virtual_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8046,9 +8085,9 @@ pub mod virtual_network_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8067,6 +8106,9 @@ pub mod virtual_network_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8283,9 +8325,9 @@ pub mod extended_database_blob_auditing_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/extendedAuditingSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8304,6 +8346,9 @@ pub mod extended_database_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8528,9 +8573,9 @@ pub mod extended_server_blob_auditing_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8549,6 +8594,9 @@ pub mod extended_server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8773,9 +8821,9 @@ pub mod server_blob_auditing_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8794,6 +8842,9 @@ pub mod server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9033,9 +9084,9 @@ pub mod database_blob_auditing_policies { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9054,6 +9105,9 @@ pub mod database_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9550,9 +9604,9 @@ pub mod database_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9571,6 +9625,9 @@ pub mod database_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9711,9 +9768,9 @@ pub mod job_agents { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9732,6 +9789,9 @@ pub mod job_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10107,9 +10167,9 @@ pub mod job_credentials { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10128,6 +10188,9 @@ pub mod job_credentials { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10528,9 +10591,9 @@ pub mod job_executions { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10549,6 +10612,9 @@ pub mod job_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10775,9 +10841,9 @@ pub mod job_executions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10796,6 +10862,9 @@ pub mod job_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11078,9 +11147,9 @@ pub mod jobs { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11099,6 +11168,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11421,9 +11493,9 @@ pub mod job_step_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/steps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11442,6 +11514,9 @@ pub mod job_step_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11689,9 +11764,9 @@ pub mod job_steps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/versions/{}/steps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_version)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11710,6 +11785,9 @@ pub mod job_steps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11821,9 +11899,9 @@ pub mod job_steps { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11842,6 +11920,9 @@ pub mod job_steps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12200,9 +12281,9 @@ pub mod job_target_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/targets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12221,6 +12302,9 @@ pub mod job_target_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12332,9 +12416,9 @@ pub mod job_target_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/steps/{}/targets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id , & this . step_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12353,6 +12437,9 @@ pub mod job_target_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12558,9 +12645,9 @@ pub mod job_target_groups { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12579,6 +12666,9 @@ pub mod job_target_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12862,9 +12952,9 @@ pub mod job_versions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12883,6 +12973,9 @@ pub mod job_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13229,9 +13322,9 @@ pub mod managed_backup_short_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13250,6 +13343,9 @@ pub mod managed_backup_short_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13538,9 +13634,9 @@ pub mod managed_restorable_dropped_database_backup_short_term_retention_policies async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/restorableDroppedDatabases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . restorable_dropped_database_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13559,6 +13655,9 @@ pub mod managed_restorable_dropped_database_backup_short_term_retention_policies req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14015,9 +14114,9 @@ pub mod server_dns_aliases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14036,6 +14135,9 @@ pub mod server_dns_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14318,9 +14420,9 @@ pub mod server_security_alert_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14339,6 +14441,9 @@ pub mod server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14430,9 +14535,9 @@ pub mod restorable_dropped_managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14451,6 +14556,9 @@ pub mod restorable_dropped_managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15017,9 +15125,9 @@ pub mod managed_database_security_alert_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/securityAlertPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15038,6 +15146,9 @@ pub mod managed_database_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15262,9 +15373,9 @@ pub mod managed_server_security_alert_policies { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15283,6 +15394,9 @@ pub mod managed_server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15497,9 +15611,9 @@ pub mod sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15518,6 +15632,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15588,9 +15705,9 @@ pub mod sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15609,6 +15726,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15999,9 +16119,9 @@ pub mod managed_instance_administrators { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16020,6 +16140,9 @@ pub mod managed_instance_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16348,9 +16471,9 @@ pub mod database_operations { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16369,6 +16492,9 @@ pub mod database_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16519,9 +16645,9 @@ pub mod elastic_pool_operations { &this.elastic_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16540,6 +16666,9 @@ pub mod elastic_pool_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16673,9 +16802,9 @@ pub mod database_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16694,6 +16823,9 @@ pub mod database_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17206,9 +17338,9 @@ pub mod managed_database_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17227,6 +17359,9 @@ pub mod managed_database_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17664,9 +17799,9 @@ pub mod managed_database_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17685,6 +17820,9 @@ pub mod managed_database_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18018,9 +18156,9 @@ pub mod instance_failover_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18039,6 +18177,9 @@ pub mod instance_failover_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18437,9 +18578,9 @@ pub mod managed_instance_keys { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18458,6 +18599,9 @@ pub mod managed_instance_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18814,9 +18958,9 @@ pub mod managed_instance_encryption_protectors { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18835,6 +18979,9 @@ pub mod managed_instance_encryption_protectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19042,9 +19189,9 @@ pub mod recoverable_managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19063,6 +19210,9 @@ pub mod recoverable_managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19405,9 +19555,9 @@ pub mod backup_short_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19426,6 +19576,9 @@ pub mod backup_short_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19718,9 +19871,9 @@ pub mod managed_instance_vulnerability_assessments { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19739,6 +19892,9 @@ pub mod managed_instance_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20032,9 +20188,9 @@ pub mod server_vulnerability_assessments { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20053,6 +20209,9 @@ pub mod server_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20523,9 +20682,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20544,6 +20703,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20614,9 +20776,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20635,6 +20797,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21014,9 +21179,9 @@ pub mod instance_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21035,6 +21200,9 @@ pub mod instance_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21088,9 +21256,9 @@ pub mod instance_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21109,6 +21277,9 @@ pub mod instance_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21191,9 +21362,9 @@ pub mod usages { &this.instance_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21212,6 +21383,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21308,9 +21482,9 @@ pub mod private_link_resources { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21329,6 +21503,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21543,9 +21720,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21564,6 +21741,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21851,9 +22031,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21872,6 +22052,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22384,9 +22567,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionDatabases/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22405,6 +22588,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22475,9 +22661,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22496,6 +22682,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22570,9 +22759,9 @@ pub mod long_term_retention_managed_instance_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22591,6 +22780,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22763,9 +22955,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionDatabases/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22784,6 +22976,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22855,9 +23050,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22876,6 +23071,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22946,9 +23144,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22967,6 +23165,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23189,9 +23390,9 @@ pub mod managed_instance_long_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/backupLongTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23210,6 +23411,9 @@ pub mod managed_instance_long_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23530,9 +23734,9 @@ pub mod workload_groups { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23551,6 +23755,9 @@ pub mod workload_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23851,9 +24058,9 @@ pub mod workload_classifiers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/workloadGroups/{}/workloadClassifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . workload_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23872,6 +24079,9 @@ pub mod workload_classifiers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24029,9 +24239,9 @@ pub mod managed_instance_operations { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24050,6 +24260,9 @@ pub mod managed_instance_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24407,9 +24620,9 @@ pub mod server_azure_ad_administrators { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24428,6 +24641,9 @@ pub mod server_azure_ad_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24679,9 +24895,9 @@ pub mod sync_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24700,6 +24916,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24804,9 +25023,9 @@ pub mod sync_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/hubSchemas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24825,6 +25044,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24894,9 +25116,9 @@ pub mod sync_groups { &this.sync_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24915,6 +25137,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25323,9 +25548,9 @@ pub mod sync_groups { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25344,6 +25569,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25760,9 +25988,9 @@ pub mod sync_members { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/syncMembers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25781,6 +26009,9 @@ pub mod sync_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25835,9 +26066,9 @@ pub mod sync_members { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/syncMembers/{}/schemas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name , & this . sync_member_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25856,6 +26087,9 @@ pub mod sync_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26163,9 +26397,9 @@ pub mod managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26184,6 +26418,9 @@ pub mod managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26528,9 +26765,9 @@ pub mod managed_databases { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/inaccessibleManagedDatabases" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26549,6 +26786,9 @@ pub mod managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26923,9 +27163,9 @@ pub mod server_azure_ad_only_authentications { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26944,6 +27184,9 @@ pub mod server_azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27127,9 +27370,9 @@ pub mod managed_instances { &this.instance_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27148,6 +27391,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27203,9 +27449,9 @@ pub mod managed_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27224,6 +27470,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27550,9 +27799,9 @@ pub mod managed_instances { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27571,6 +27820,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27712,9 +27964,9 @@ pub mod managed_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27733,6 +27985,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28015,9 +28270,9 @@ pub mod managed_instance_azure_ad_only_authentications { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28036,6 +28291,9 @@ pub mod managed_instance_azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28352,9 +28610,9 @@ pub mod server_trust_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28373,6 +28631,9 @@ pub mod server_trust_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28430,9 +28691,9 @@ pub mod server_trust_groups { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28451,6 +28712,9 @@ pub mod server_trust_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28675,9 +28939,9 @@ pub mod server_dev_ops_audit_settings { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28696,6 +28960,9 @@ pub mod server_dev_ops_audit_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29218,9 +29485,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionDatabases/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . long_term_retention_server_name , & this . long_term_retention_database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29239,6 +29506,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29312,9 +29582,9 @@ pub mod long_term_retention_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29333,6 +29603,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29408,9 +29681,9 @@ pub mod long_term_retention_backups { &this.long_term_retention_server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29429,6 +29702,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29714,9 +29990,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionDatabases/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . long_term_retention_server_name , & this . long_term_retention_database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29735,6 +30011,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29810,9 +30089,9 @@ pub mod long_term_retention_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29831,6 +30110,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29901,9 +30183,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . long_term_retention_server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29922,6 +30204,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30143,9 +30428,9 @@ pub mod long_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/backupLongTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30164,6 +30449,9 @@ pub mod long_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30461,9 +30749,9 @@ pub mod private_endpoint_connections { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30482,6 +30770,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/sql/src/package_composite_v5/models.rs b/services/mgmt/sql/src/package_composite_v5/models.rs index 531aa105bc..97745ec5fd 100644 --- a/services/mgmt/sql/src/package_composite_v5/models.rs +++ b/services/mgmt/sql/src/package_composite_v5/models.rs @@ -15,8 +15,8 @@ pub struct AdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for AdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AdministratorListResult { @@ -402,8 +402,8 @@ pub struct AzureAdOnlyAuthListResult { pub next_link: Option, } impl azure_core::Continuable for AzureAdOnlyAuthListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureAdOnlyAuthListResult { @@ -450,8 +450,8 @@ pub struct BackupShortTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for BackupShortTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupShortTermRetentionPolicyListResult { @@ -777,7 +777,7 @@ pub struct DataMaskingRuleListResult { pub value: Vec, } impl azure_core::Continuable for DataMaskingRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -895,8 +895,8 @@ pub struct DataWarehouseUserActivitiesListResult { pub next_link: Option, } impl azure_core::Continuable for DataWarehouseUserActivitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataWarehouseUserActivitiesListResult { @@ -977,8 +977,8 @@ pub struct DatabaseAdvancedThreatProtectionListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseAdvancedThreatProtectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseAdvancedThreatProtectionListResult { @@ -1065,8 +1065,8 @@ pub struct DatabaseBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseBlobAuditingPolicyListResult { @@ -1157,8 +1157,8 @@ pub struct DatabaseColumnListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseColumnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseColumnListResult { @@ -1555,8 +1555,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -1589,8 +1589,8 @@ pub struct DatabaseOperationListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseOperationListResult { @@ -2264,8 +2264,8 @@ pub struct DatabaseSchemaListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseSchemaListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseSchemaListResult { @@ -2284,8 +2284,8 @@ pub struct DatabaseSecurityAlertListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseSecurityAlertListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseSecurityAlertListResult { @@ -2335,8 +2335,8 @@ pub struct DatabaseTableListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseTableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseTableListResult { @@ -2991,8 +2991,8 @@ pub struct DatabaseUsageListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseUsageListResult { @@ -3061,8 +3061,8 @@ pub struct DatabaseVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseVulnerabilityAssessmentListResult { @@ -3179,8 +3179,8 @@ pub struct DeletedServerListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedServerListResult { @@ -3313,8 +3313,8 @@ pub struct DistributedAvailabilityGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for DistributedAvailabilityGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DistributedAvailabilityGroupsListResult { @@ -3433,7 +3433,7 @@ pub struct ElasticPoolActivityListResult { pub value: Vec, } impl azure_core::Continuable for ElasticPoolActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3535,7 +3535,7 @@ pub struct ElasticPoolDatabaseActivityListResult { pub value: Vec, } impl azure_core::Continuable for ElasticPoolDatabaseActivityListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3644,8 +3644,8 @@ pub struct ElasticPoolListResult { pub next_link: Option, } impl azure_core::Continuable for ElasticPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticPoolListResult { @@ -3678,8 +3678,8 @@ pub struct ElasticPoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ElasticPoolOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticPoolOperationListResult { @@ -4188,8 +4188,8 @@ pub struct EncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionProtectorListResult { @@ -4296,8 +4296,8 @@ pub struct EndpointCertificateListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointCertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointCertificateListResult { @@ -4426,8 +4426,8 @@ pub struct ExtendedDatabaseBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedDatabaseBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedDatabaseBlobAuditingPolicyListResult { @@ -4522,8 +4522,8 @@ pub struct ExtendedServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedServerBlobAuditingPolicyListResult { @@ -4628,8 +4628,8 @@ pub struct FailoverGroupListResult { pub next_link: Option, } impl azure_core::Continuable for FailoverGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FailoverGroupListResult { @@ -4894,8 +4894,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -4935,7 +4935,7 @@ pub struct GeoBackupPolicyListResult { pub value: Vec, } impl azure_core::Continuable for GeoBackupPolicyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4992,8 +4992,8 @@ pub struct IPv6FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for IPv6FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IPv6FirewallRuleListResult { @@ -5111,8 +5111,8 @@ pub struct ImportExportExtensionsOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ImportExportExtensionsOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImportExportExtensionsOperationListResult { @@ -5342,8 +5342,8 @@ pub struct InstanceFailoverGroupListResult { pub next_link: Option, } impl azure_core::Continuable for InstanceFailoverGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstanceFailoverGroupListResult { @@ -5642,8 +5642,8 @@ pub struct InstancePoolListResult { pub next_link: Option, } impl azure_core::Continuable for InstancePoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstancePoolListResult { @@ -5806,8 +5806,8 @@ pub struct JobAgentListResult { pub next_link: Option, } impl azure_core::Continuable for JobAgentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobAgentListResult { @@ -5913,8 +5913,8 @@ pub struct JobCredentialListResult { pub next_link: Option, } impl azure_core::Continuable for JobCredentialListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCredentialListResult { @@ -5960,8 +5960,8 @@ pub struct JobExecutionListResult { pub next_link: Option, } impl azure_core::Continuable for JobExecutionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobExecutionListResult { @@ -6191,8 +6191,8 @@ pub struct JobListResult { pub next_link: Option, } impl azure_core::Continuable for JobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResult { @@ -6409,8 +6409,8 @@ pub struct JobStepListResult { pub next_link: Option, } impl azure_core::Continuable for JobStepListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobStepListResult { @@ -6654,8 +6654,8 @@ pub struct JobTargetGroupListResult { pub next_link: Option, } impl azure_core::Continuable for JobTargetGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobTargetGroupListResult { @@ -6696,8 +6696,8 @@ pub struct JobVersionListResult { pub next_link: Option, } impl azure_core::Continuable for JobVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobVersionListResult { @@ -6730,8 +6730,8 @@ pub struct LedgerDigestUploadsListResult { pub next_link: Option, } impl azure_core::Continuable for LedgerDigestUploadsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LedgerDigestUploadsListResult { @@ -6913,8 +6913,8 @@ pub struct LogicalDatabaseTransparentDataEncryptionListResult { pub next_link: Option, } impl azure_core::Continuable for LogicalDatabaseTransparentDataEncryptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalDatabaseTransparentDataEncryptionListResult { @@ -6933,8 +6933,8 @@ pub struct LogicalServerAdvancedThreatProtectionListResult { pub next_link: Option, } impl azure_core::Continuable for LogicalServerAdvancedThreatProtectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalServerAdvancedThreatProtectionListResult { @@ -6953,8 +6953,8 @@ pub struct LogicalServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for LogicalServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalServerSecurityAlertPolicyListResult { @@ -6987,8 +6987,8 @@ pub struct LongTermRetentionBackupListResult { pub next_link: Option, } impl azure_core::Continuable for LongTermRetentionBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LongTermRetentionBackupListResult { @@ -7227,8 +7227,8 @@ pub struct LongTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for LongTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LongTermRetentionPolicyListResult { @@ -7434,8 +7434,8 @@ pub struct ManagedBackupShortTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedBackupShortTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedBackupShortTermRetentionPolicyListResult { @@ -7483,8 +7483,8 @@ pub struct ManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedDatabaseListResult { @@ -7766,8 +7766,8 @@ pub struct ManagedDatabaseSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedDatabaseSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedDatabaseSecurityAlertPolicyListResult { @@ -7840,8 +7840,8 @@ pub struct ManagedInstanceAdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceAdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceAdministratorListResult { @@ -7922,8 +7922,8 @@ pub struct ManagedInstanceAzureAdOnlyAuthListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceAzureAdOnlyAuthListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceAzureAdOnlyAuthListResult { @@ -8025,8 +8025,8 @@ pub struct ManagedInstanceEncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceEncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceEncryptionProtectorListResult { @@ -8274,8 +8274,8 @@ pub struct ManagedInstanceKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceKeyListResult { @@ -8364,8 +8364,8 @@ pub struct ManagedInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceListResult { @@ -8398,8 +8398,8 @@ pub struct ManagedInstanceLongTermRetentionBackupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceLongTermRetentionBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceLongTermRetentionBackupListResult { @@ -8506,8 +8506,8 @@ pub struct ManagedInstanceLongTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceLongTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceLongTermRetentionPolicyListResult { @@ -8569,8 +8569,8 @@ pub struct ManagedInstanceOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceOperationListResult { @@ -8766,8 +8766,8 @@ pub struct ManagedInstancePrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstancePrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstancePrivateEndpointConnectionListResult { @@ -8827,8 +8827,8 @@ pub struct ManagedInstancePrivateLinkListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstancePrivateLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstancePrivateLinkListResult { @@ -9206,8 +9206,8 @@ pub struct ManagedInstanceQueryStatistics { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceQueryStatistics { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceQueryStatistics { @@ -9343,8 +9343,8 @@ pub struct ManagedInstanceVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceVulnerabilityAssessmentListResult { @@ -9406,8 +9406,8 @@ pub struct ManagedServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedServerSecurityAlertPolicyListResult { @@ -9440,8 +9440,8 @@ pub struct ManagedTransparentDataEncryptionListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedTransparentDataEncryptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedTransparentDataEncryptionListResult { @@ -9786,7 +9786,7 @@ pub struct MetricDefinitionListResult { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -9802,7 +9802,7 @@ pub struct MetricListResult { pub value: Vec, } impl azure_core::Continuable for MetricListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -10028,8 +10028,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -10062,8 +10062,8 @@ pub struct OutboundFirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for OutboundFirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundFirewallRuleListResult { @@ -10280,8 +10280,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -10405,8 +10405,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -11173,7 +11173,7 @@ pub struct RecoverableDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for RecoverableDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -11228,8 +11228,8 @@ pub struct RecoverableManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RecoverableManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoverableManagedDatabaseListResult { @@ -11274,8 +11274,8 @@ pub struct ReplicationLinkListResult { pub next_link: Option, } impl azure_core::Continuable for ReplicationLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationLinkListResult { @@ -11577,8 +11577,8 @@ pub struct RestorableDroppedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RestorableDroppedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorableDroppedDatabaseListResult { @@ -11685,8 +11685,8 @@ pub struct RestorableDroppedManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RestorableDroppedManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorableDroppedManagedDatabaseListResult { @@ -11743,8 +11743,8 @@ pub struct RestorePointListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorePointListResult { @@ -11910,8 +11910,8 @@ pub struct SecurityEventCollection { pub next_link: Option, } impl azure_core::Continuable for SecurityEventCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityEventCollection { @@ -12042,8 +12042,8 @@ pub struct SensitivityLabelListResult { pub next_link: Option, } impl azure_core::Continuable for SensitivityLabelListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SensitivityLabelListResult { @@ -12266,8 +12266,8 @@ pub struct ServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBlobAuditingPolicyListResult { @@ -12365,7 +12365,7 @@ pub struct ServerCommunicationLinkListResult { pub value: Vec, } impl azure_core::Continuable for ServerCommunicationLinkListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -12423,8 +12423,8 @@ pub struct ServerConnectionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerConnectionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerConnectionPolicyListResult { @@ -12497,8 +12497,8 @@ pub struct ServerDevOpsAuditSettingsListResult { pub next_link: Option, } impl azure_core::Continuable for ServerDevOpsAuditSettingsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerDevOpsAuditSettingsListResult { @@ -12598,8 +12598,8 @@ pub struct ServerDnsAliasListResult { pub next_link: Option, } impl azure_core::Continuable for ServerDnsAliasListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerDnsAliasListResult { @@ -12781,8 +12781,8 @@ pub struct ServerKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerKeyListResult { @@ -12875,8 +12875,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { @@ -12909,8 +12909,8 @@ pub struct ServerOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ServerOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerOperationListResult { @@ -13254,8 +13254,8 @@ pub struct ServerTrustCertificatesListResult { pub next_link: Option, } impl azure_core::Continuable for ServerTrustCertificatesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerTrustCertificatesListResult { @@ -13288,8 +13288,8 @@ pub struct ServerTrustGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ServerTrustGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerTrustGroupListResult { @@ -13370,7 +13370,7 @@ pub struct ServerUsageListResult { pub value: Vec, } impl azure_core::Continuable for ServerUsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -13439,8 +13439,8 @@ pub struct ServerVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ServerVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerVulnerabilityAssessmentListResult { @@ -13557,7 +13557,7 @@ pub struct ServiceObjectiveListResult { pub value: Vec, } impl azure_core::Continuable for ServiceObjectiveListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -14000,8 +14000,8 @@ pub struct SubscriptionUsageListResult { pub next_link: Option, } impl azure_core::Continuable for SubscriptionUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionUsageListResult { @@ -14081,8 +14081,8 @@ pub struct SyncAgentLinkedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for SyncAgentLinkedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncAgentLinkedDatabaseListResult { @@ -14168,8 +14168,8 @@ pub struct SyncAgentListResult { pub next_link: Option, } impl azure_core::Continuable for SyncAgentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncAgentListResult { @@ -14260,8 +14260,8 @@ pub struct SyncDatabaseIdListResult { pub next_link: Option, } impl azure_core::Continuable for SyncDatabaseIdListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncDatabaseIdListResult { @@ -14307,8 +14307,8 @@ pub struct SyncFullSchemaPropertiesListResult { pub next_link: Option, } impl azure_core::Continuable for SyncFullSchemaPropertiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncFullSchemaPropertiesListResult { @@ -14398,8 +14398,8 @@ pub struct SyncGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SyncGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncGroupListResult { @@ -14418,8 +14418,8 @@ pub struct SyncGroupLogListResult { pub next_link: Option, } impl azure_core::Continuable for SyncGroupLogListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncGroupLogListResult { @@ -14699,8 +14699,8 @@ pub struct SyncMemberListResult { pub next_link: Option, } impl azure_core::Continuable for SyncMemberListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncMemberListResult { @@ -14958,8 +14958,8 @@ pub struct TimeZoneListResult { pub next_link: Option, } impl azure_core::Continuable for TimeZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TimeZoneListResult { @@ -15064,8 +15064,8 @@ pub struct TopQueriesListResult { pub next_link: Option, } impl azure_core::Continuable for TopQueriesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopQueriesListResult { @@ -15279,8 +15279,8 @@ pub struct UsageListResult { pub next_link: Option, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageListResult { @@ -15331,8 +15331,8 @@ pub struct VirtualClusterListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualClusterListResult { @@ -15401,8 +15401,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { @@ -15538,8 +15538,8 @@ pub struct VulnerabilityAssessmentScanRecordListResult { pub next_link: Option, } impl azure_core::Continuable for VulnerabilityAssessmentScanRecordListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VulnerabilityAssessmentScanRecordListResult { @@ -15686,8 +15686,8 @@ pub struct WorkloadClassifierListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadClassifierListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadClassifierListResult { @@ -15754,8 +15754,8 @@ pub struct WorkloadGroupListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadGroupListResult { diff --git a/services/mgmt/sql/src/package_composite_v5/operations.rs b/services/mgmt/sql/src/package_composite_v5/operations.rs index 94235dce90..2afe7bc33d 100644 --- a/services/mgmt/sql/src/package_composite_v5/operations.rs +++ b/services/mgmt/sql/src/package_composite_v5/operations.rs @@ -1532,9 +1532,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1553,6 +1553,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2277,9 +2280,9 @@ pub mod databases { &this.elastic_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2298,6 +2301,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2355,9 +2361,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2376,6 +2382,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2682,9 +2691,9 @@ pub mod elastic_pools { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2703,6 +2712,9 @@ pub mod elastic_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4181,9 +4193,9 @@ pub mod database_columns { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4202,6 +4214,9 @@ pub mod database_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4280,9 +4295,9 @@ pub mod database_columns { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/schemas/{}/tables/{}/columns" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . schema_name , & this . table_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4301,6 +4316,9 @@ pub mod database_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4668,9 +4686,9 @@ pub mod database_schemas { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4689,6 +4707,9 @@ pub mod database_schemas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4971,9 +4992,9 @@ pub mod database_security_alert_policies { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4992,6 +5013,9 @@ pub mod database_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5101,9 +5125,9 @@ pub mod database_tables { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5122,6 +5146,9 @@ pub mod database_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5679,9 +5706,9 @@ pub mod database_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5700,6 +5727,9 @@ pub mod database_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5885,9 +5915,9 @@ pub mod database_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5906,6 +5936,9 @@ pub mod database_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6152,9 +6185,9 @@ pub mod data_warehouse_user_activities { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/dataWarehouseUserActivities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6173,6 +6206,9 @@ pub mod data_warehouse_user_activities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6271,9 +6307,9 @@ pub mod deleted_servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6292,6 +6328,9 @@ pub mod deleted_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6399,9 +6438,9 @@ pub mod deleted_servers { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6420,6 +6459,9 @@ pub mod deleted_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6629,9 +6671,9 @@ pub mod elastic_pool_operations { &this.elastic_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6650,6 +6692,9 @@ pub mod elastic_pool_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6773,9 +6818,9 @@ pub mod encryption_protectors { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6794,6 +6839,9 @@ pub mod encryption_protectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7379,9 +7427,9 @@ pub mod failover_groups { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7400,6 +7448,9 @@ pub mod failover_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7827,9 +7878,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7848,6 +7899,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8240,9 +8294,9 @@ pub mod instance_failover_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8261,6 +8315,9 @@ pub mod instance_failover_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8744,9 +8801,9 @@ pub mod instance_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8765,6 +8822,9 @@ pub mod instance_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8818,9 +8878,9 @@ pub mod instance_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8839,6 +8899,9 @@ pub mod instance_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8979,9 +9042,9 @@ pub mod job_agents { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9000,6 +9063,9 @@ pub mod job_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9375,9 +9441,9 @@ pub mod job_credentials { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9396,6 +9462,9 @@ pub mod job_credentials { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9796,9 +9865,9 @@ pub mod job_executions { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9817,6 +9886,9 @@ pub mod job_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10043,9 +10115,9 @@ pub mod job_executions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10064,6 +10136,9 @@ pub mod job_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10346,9 +10421,9 @@ pub mod jobs { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10367,6 +10442,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10689,9 +10767,9 @@ pub mod job_step_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/steps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10710,6 +10788,9 @@ pub mod job_step_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10957,9 +11038,9 @@ pub mod job_steps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/versions/{}/steps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_version)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10978,6 +11059,9 @@ pub mod job_steps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11089,9 +11173,9 @@ pub mod job_steps { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11110,6 +11194,9 @@ pub mod job_steps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11468,9 +11555,9 @@ pub mod job_target_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/targets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11489,6 +11576,9 @@ pub mod job_target_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11600,9 +11690,9 @@ pub mod job_target_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/steps/{}/targets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id , & this . step_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11621,6 +11711,9 @@ pub mod job_target_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11826,9 +11919,9 @@ pub mod job_target_groups { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11847,6 +11940,9 @@ pub mod job_target_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12130,9 +12226,9 @@ pub mod job_versions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12151,6 +12247,9 @@ pub mod job_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12494,9 +12593,9 @@ pub mod long_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/backupLongTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12515,6 +12614,9 @@ pub mod long_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13022,9 +13124,9 @@ pub mod managed_backup_short_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13043,6 +13145,9 @@ pub mod managed_backup_short_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13194,9 +13299,9 @@ pub mod managed_database_columns { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13215,6 +13320,9 @@ pub mod managed_database_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13293,9 +13401,9 @@ pub mod managed_database_columns { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/schemas/{}/tables/{}/columns" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . schema_name , & this . table_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13314,6 +13422,9 @@ pub mod managed_database_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13534,9 +13645,9 @@ pub mod managed_database_queries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/queries/{}/statistics" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . query_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13555,6 +13666,9 @@ pub mod managed_database_queries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13805,9 +13919,9 @@ pub mod managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13826,6 +13940,9 @@ pub mod managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14170,9 +14287,9 @@ pub mod managed_databases { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/inaccessibleManagedDatabases" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14191,6 +14308,9 @@ pub mod managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14294,9 +14414,9 @@ pub mod managed_database_schemas { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14315,6 +14435,9 @@ pub mod managed_database_schemas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14590,9 +14713,9 @@ pub mod managed_database_security_alert_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/securityAlertPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14611,6 +14734,9 @@ pub mod managed_database_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14715,9 +14841,9 @@ pub mod managed_database_security_events { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14736,6 +14862,9 @@ pub mod managed_database_security_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14849,9 +14978,9 @@ pub mod managed_database_tables { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/schemas/{}/tables" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . schema_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14870,6 +14999,9 @@ pub mod managed_database_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15138,9 +15270,9 @@ pub mod managed_database_transparent_data_encryption { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/transparentDataEncryption" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15159,6 +15291,9 @@ pub mod managed_database_transparent_data_encryption { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15655,9 +15790,9 @@ pub mod managed_database_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15676,6 +15811,9 @@ pub mod managed_database_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15920,9 +16058,9 @@ pub mod managed_database_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15941,6 +16079,9 @@ pub mod managed_database_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16113,9 +16254,9 @@ pub mod managed_instance_administrators { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16134,6 +16275,9 @@ pub mod managed_instance_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16594,9 +16738,9 @@ pub mod managed_instance_azure_ad_only_authentications { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16615,6 +16759,9 @@ pub mod managed_instance_azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16788,9 +16935,9 @@ pub mod managed_instance_encryption_protectors { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16809,6 +16956,9 @@ pub mod managed_instance_encryption_protectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17054,9 +17204,9 @@ pub mod managed_instance_keys { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17075,6 +17225,9 @@ pub mod managed_instance_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17471,9 +17624,9 @@ pub mod managed_instance_long_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/backupLongTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17492,6 +17645,9 @@ pub mod managed_instance_long_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17599,9 +17755,9 @@ pub mod managed_instance_operations { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17620,6 +17776,9 @@ pub mod managed_instance_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18001,9 +18160,9 @@ pub mod managed_instance_private_endpoint_connections { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18022,6 +18181,9 @@ pub mod managed_instance_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18114,9 +18276,9 @@ pub mod managed_instance_private_link_resources { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18135,6 +18297,9 @@ pub mod managed_instance_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18558,9 +18723,9 @@ pub mod managed_instance_vulnerability_assessments { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18579,6 +18744,9 @@ pub mod managed_instance_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18868,9 +19036,9 @@ pub mod managed_restorable_dropped_database_backup_short_term_retention_policies async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/restorableDroppedDatabases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . restorable_dropped_database_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18889,6 +19057,9 @@ pub mod managed_restorable_dropped_database_backup_short_term_retention_policies req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19113,9 +19284,9 @@ pub mod managed_server_security_alert_policies { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19134,6 +19305,9 @@ pub mod managed_server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19191,9 +19365,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Sql/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19212,6 +19386,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19509,9 +19686,9 @@ pub mod private_endpoint_connections { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19530,6 +19707,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19621,9 +19801,9 @@ pub mod private_link_resources { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19642,6 +19822,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19787,9 +19970,9 @@ pub mod recoverable_managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19808,6 +19991,9 @@ pub mod recoverable_managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19993,9 +20179,9 @@ pub mod restore_points { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20014,6 +20200,9 @@ pub mod restore_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20855,9 +21044,9 @@ pub mod server_azure_ad_administrators { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20876,6 +21065,9 @@ pub mod server_azure_ad_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21179,9 +21371,9 @@ pub mod server_azure_ad_only_authentications { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21200,6 +21392,9 @@ pub mod server_azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21424,9 +21619,9 @@ pub mod server_dev_ops_audit_settings { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21445,6 +21640,9 @@ pub mod server_dev_ops_audit_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21761,9 +21959,9 @@ pub mod server_dns_aliases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21782,6 +21980,9 @@ pub mod server_dns_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21967,9 +22168,9 @@ pub mod server_keys { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21988,6 +22189,9 @@ pub mod server_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22244,9 +22448,9 @@ pub mod server_operations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22265,6 +22469,9 @@ pub mod server_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22489,9 +22696,9 @@ pub mod server_security_alert_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22510,6 +22717,9 @@ pub mod server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22826,9 +23036,9 @@ pub mod server_trust_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22847,6 +23057,9 @@ pub mod server_trust_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22904,9 +23117,9 @@ pub mod server_trust_groups { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22925,6 +23138,9 @@ pub mod server_trust_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23217,9 +23433,9 @@ pub mod server_vulnerability_assessments { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23238,6 +23454,9 @@ pub mod server_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23459,9 +23678,9 @@ pub mod subscription_usages { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23480,6 +23699,9 @@ pub mod subscription_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23865,9 +24087,9 @@ pub mod sync_agents { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23886,6 +24108,9 @@ pub mod sync_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24000,9 +24225,9 @@ pub mod sync_agents { &this.sync_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24021,6 +24246,9 @@ pub mod sync_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24272,9 +24500,9 @@ pub mod sync_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24293,6 +24521,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24397,9 +24628,9 @@ pub mod sync_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/hubSchemas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24418,6 +24649,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24487,9 +24721,9 @@ pub mod sync_groups { &this.sync_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24508,6 +24742,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24916,9 +25153,9 @@ pub mod sync_groups { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24937,6 +25174,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25353,9 +25593,9 @@ pub mod sync_members { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/syncMembers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25374,6 +25614,9 @@ pub mod sync_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25428,9 +25671,9 @@ pub mod sync_members { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/syncMembers/{}/schemas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name , & this . sync_member_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25449,6 +25692,9 @@ pub mod sync_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25659,9 +25905,9 @@ pub mod time_zones { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25680,6 +25926,9 @@ pub mod time_zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25909,9 +26158,9 @@ pub mod virtual_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25930,6 +26179,9 @@ pub mod virtual_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25985,9 +26237,9 @@ pub mod virtual_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26006,6 +26258,9 @@ pub mod virtual_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26477,9 +26732,9 @@ pub mod virtual_network_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26498,6 +26753,9 @@ pub mod virtual_network_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26798,9 +27056,9 @@ pub mod workload_classifiers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/workloadGroups/{}/workloadClassifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . workload_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26819,6 +27077,9 @@ pub mod workload_classifiers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27138,9 +27399,9 @@ pub mod workload_groups { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27159,6 +27420,9 @@ pub mod workload_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27377,9 +27641,9 @@ pub mod transparent_data_encryptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/transparentDataEncryption" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27398,6 +27662,9 @@ pub mod transparent_data_encryptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27687,9 +27954,9 @@ pub mod backup_short_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27708,6 +27975,9 @@ pub mod backup_short_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27940,9 +28210,9 @@ pub mod database_extensions { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27961,6 +28231,9 @@ pub mod database_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28111,9 +28384,9 @@ pub mod database_operations { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28132,6 +28405,9 @@ pub mod database_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28212,9 +28488,9 @@ pub mod database_usages { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28233,6 +28509,9 @@ pub mod database_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28486,9 +28765,9 @@ pub mod ledger_digest_uploads { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28507,6 +28786,9 @@ pub mod ledger_digest_uploads { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28865,9 +29147,9 @@ pub mod outbound_firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28886,6 +29168,9 @@ pub mod outbound_firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29054,9 +29339,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29075,6 +29360,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29378,9 +29666,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29399,6 +29687,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29594,9 +29885,9 @@ pub mod usages { &this.instance_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29615,6 +29906,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30142,9 +30436,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionDatabases/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . long_term_retention_server_name , & this . long_term_retention_database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30163,6 +30457,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30236,9 +30533,9 @@ pub mod long_term_retention_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30257,6 +30554,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30332,9 +30632,9 @@ pub mod long_term_retention_backups { &this.long_term_retention_server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30353,6 +30653,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30638,9 +30941,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionDatabases/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . long_term_retention_server_name , & this . long_term_retention_database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30659,6 +30962,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30734,9 +31040,9 @@ pub mod long_term_retention_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30755,6 +31061,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30825,9 +31134,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . long_term_retention_server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30846,6 +31155,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31184,9 +31496,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionDatabases/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31205,6 +31517,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31275,9 +31590,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31296,6 +31611,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31370,9 +31688,9 @@ pub mod long_term_retention_managed_instance_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31391,6 +31709,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31563,9 +31884,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionDatabases/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31584,6 +31905,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31655,9 +31979,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31676,6 +32000,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31746,9 +32073,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31767,6 +32094,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31968,9 +32298,9 @@ pub mod managed_instances { &this.instance_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31989,6 +32319,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32050,9 +32383,9 @@ pub mod managed_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32071,6 +32404,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32134,9 +32470,9 @@ pub mod managed_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32155,6 +32491,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32492,9 +32831,9 @@ pub mod managed_instances { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32513,6 +32852,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32692,9 +33034,9 @@ pub mod restorable_dropped_databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32713,6 +33055,9 @@ pub mod restorable_dropped_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32858,9 +33203,9 @@ pub mod restorable_dropped_managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32879,6 +33224,9 @@ pub mod restorable_dropped_managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33150,9 +33498,9 @@ pub mod server_connection_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33171,6 +33519,9 @@ pub mod server_connection_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33305,9 +33656,9 @@ pub mod distributed_availability_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/distributedAvailabilityGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33326,6 +33677,9 @@ pub mod distributed_availability_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33663,9 +34017,9 @@ pub mod server_trust_certificates { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33684,6 +34038,9 @@ pub mod server_trust_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33987,9 +34344,9 @@ pub mod i_pv6_firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34008,6 +34365,9 @@ pub mod i_pv6_firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34273,9 +34633,9 @@ pub mod endpoint_certificates { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34294,6 +34654,9 @@ pub mod endpoint_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34509,9 +34872,9 @@ pub mod replication_links { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34530,6 +34893,9 @@ pub mod replication_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34805,9 +35171,9 @@ pub mod replication_links { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34826,6 +35192,9 @@ pub mod replication_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35325,9 +35694,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35346,6 +35715,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35467,9 +35839,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35488,6 +35860,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35810,9 +36185,9 @@ pub mod sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35831,6 +36206,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35952,9 +36330,9 @@ pub mod sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35973,6 +36351,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36416,9 +36797,9 @@ pub mod server_blob_auditing_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36437,6 +36818,9 @@ pub mod server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36669,9 +37053,9 @@ pub mod database_blob_auditing_policies { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36690,6 +37074,9 @@ pub mod database_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36922,9 +37309,9 @@ pub mod extended_database_blob_auditing_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/extendedAuditingSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36943,6 +37330,9 @@ pub mod extended_database_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37158,9 +37548,9 @@ pub mod extended_server_blob_auditing_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37179,6 +37569,9 @@ pub mod extended_server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37404,9 +37797,9 @@ pub mod database_advanced_threat_protection_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/advancedThreatProtectionSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37425,6 +37818,9 @@ pub mod database_advanced_threat_protection_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37640,9 +38036,9 @@ pub mod server_advanced_threat_protection_settings { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37661,6 +38057,9 @@ pub mod server_advanced_threat_protection_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/sql/src/package_preview_2021_11/models.rs b/services/mgmt/sql/src/package_preview_2021_11/models.rs index ee6110c85f..767b6a0014 100644 --- a/services/mgmt/sql/src/package_preview_2021_11/models.rs +++ b/services/mgmt/sql/src/package_preview_2021_11/models.rs @@ -15,8 +15,8 @@ pub struct AdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for AdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AdministratorListResult { @@ -402,8 +402,8 @@ pub struct AzureAdOnlyAuthListResult { pub next_link: Option, } impl azure_core::Continuable for AzureAdOnlyAuthListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureAdOnlyAuthListResult { @@ -450,8 +450,8 @@ pub struct BackupShortTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for BackupShortTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupShortTermRetentionPolicyListResult { @@ -719,8 +719,8 @@ pub struct DataWarehouseUserActivitiesListResult { pub next_link: Option, } impl azure_core::Continuable for DataWarehouseUserActivitiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataWarehouseUserActivitiesListResult { @@ -801,8 +801,8 @@ pub struct DatabaseAdvancedThreatProtectionListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseAdvancedThreatProtectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseAdvancedThreatProtectionListResult { @@ -889,8 +889,8 @@ pub struct DatabaseBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseBlobAuditingPolicyListResult { @@ -981,8 +981,8 @@ pub struct DatabaseColumnListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseColumnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseColumnListResult { @@ -1411,8 +1411,8 @@ pub struct DatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseListResult { @@ -1445,8 +1445,8 @@ pub struct DatabaseOperationListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseOperationListResult { @@ -2120,8 +2120,8 @@ pub struct DatabaseSchemaListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseSchemaListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseSchemaListResult { @@ -2140,8 +2140,8 @@ pub struct DatabaseSecurityAlertListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseSecurityAlertListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseSecurityAlertListResult { @@ -2191,8 +2191,8 @@ pub struct DatabaseTableListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseTableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseTableListResult { @@ -2847,8 +2847,8 @@ pub struct DatabaseUsageListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseUsageListResult { @@ -2917,8 +2917,8 @@ pub struct DatabaseVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for DatabaseVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatabaseVulnerabilityAssessmentListResult { @@ -3035,8 +3035,8 @@ pub struct DeletedServerListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedServerListResult { @@ -3169,8 +3169,8 @@ pub struct DistributedAvailabilityGroupsListResult { pub next_link: Option, } impl azure_core::Continuable for DistributedAvailabilityGroupsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DistributedAvailabilityGroupsListResult { @@ -3311,8 +3311,8 @@ pub struct ElasticPoolListResult { pub next_link: Option, } impl azure_core::Continuable for ElasticPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticPoolListResult { @@ -3345,8 +3345,8 @@ pub struct ElasticPoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ElasticPoolOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ElasticPoolOperationListResult { @@ -3861,8 +3861,8 @@ pub struct EncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionProtectorListResult { @@ -3969,8 +3969,8 @@ pub struct EndpointCertificateListResult { pub next_link: Option, } impl azure_core::Continuable for EndpointCertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EndpointCertificateListResult { @@ -4126,8 +4126,8 @@ pub struct ExtendedDatabaseBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedDatabaseBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedDatabaseBlobAuditingPolicyListResult { @@ -4222,8 +4222,8 @@ pub struct ExtendedServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedServerBlobAuditingPolicyListResult { @@ -4328,8 +4328,8 @@ pub struct FailoverGroupListResult { pub next_link: Option, } impl azure_core::Continuable for FailoverGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FailoverGroupListResult { @@ -4594,8 +4594,8 @@ pub struct FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FirewallRuleListResult { @@ -4628,8 +4628,8 @@ pub struct IPv6FirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for IPv6FirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IPv6FirewallRuleListResult { @@ -4747,8 +4747,8 @@ pub struct ImportExportExtensionsOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ImportExportExtensionsOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ImportExportExtensionsOperationListResult { @@ -4987,8 +4987,8 @@ pub struct InstanceFailoverGroupListResult { pub next_link: Option, } impl azure_core::Continuable for InstanceFailoverGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstanceFailoverGroupListResult { @@ -5287,8 +5287,8 @@ pub struct InstancePoolListResult { pub next_link: Option, } impl azure_core::Continuable for InstancePoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InstancePoolListResult { @@ -5451,8 +5451,8 @@ pub struct JobAgentListResult { pub next_link: Option, } impl azure_core::Continuable for JobAgentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobAgentListResult { @@ -5558,8 +5558,8 @@ pub struct JobCredentialListResult { pub next_link: Option, } impl azure_core::Continuable for JobCredentialListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCredentialListResult { @@ -5605,8 +5605,8 @@ pub struct JobExecutionListResult { pub next_link: Option, } impl azure_core::Continuable for JobExecutionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobExecutionListResult { @@ -5836,8 +5836,8 @@ pub struct JobListResult { pub next_link: Option, } impl azure_core::Continuable for JobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobListResult { @@ -6054,8 +6054,8 @@ pub struct JobStepListResult { pub next_link: Option, } impl azure_core::Continuable for JobStepListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobStepListResult { @@ -6299,8 +6299,8 @@ pub struct JobTargetGroupListResult { pub next_link: Option, } impl azure_core::Continuable for JobTargetGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobTargetGroupListResult { @@ -6341,8 +6341,8 @@ pub struct JobVersionListResult { pub next_link: Option, } impl azure_core::Continuable for JobVersionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobVersionListResult { @@ -6375,8 +6375,8 @@ pub struct LedgerDigestUploadsListResult { pub next_link: Option, } impl azure_core::Continuable for LedgerDigestUploadsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LedgerDigestUploadsListResult { @@ -6558,8 +6558,8 @@ pub struct LogicalDatabaseTransparentDataEncryptionListResult { pub next_link: Option, } impl azure_core::Continuable for LogicalDatabaseTransparentDataEncryptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalDatabaseTransparentDataEncryptionListResult { @@ -6578,8 +6578,8 @@ pub struct LogicalServerAdvancedThreatProtectionListResult { pub next_link: Option, } impl azure_core::Continuable for LogicalServerAdvancedThreatProtectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalServerAdvancedThreatProtectionListResult { @@ -6598,8 +6598,8 @@ pub struct LogicalServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for LogicalServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogicalServerSecurityAlertPolicyListResult { @@ -6632,8 +6632,8 @@ pub struct LongTermRetentionBackupListResult { pub next_link: Option, } impl azure_core::Continuable for LongTermRetentionBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LongTermRetentionBackupListResult { @@ -6872,8 +6872,8 @@ pub struct LongTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for LongTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LongTermRetentionPolicyListResult { @@ -7079,8 +7079,8 @@ pub struct ManagedBackupShortTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedBackupShortTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedBackupShortTermRetentionPolicyListResult { @@ -7128,8 +7128,8 @@ pub struct ManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedDatabaseListResult { @@ -7411,8 +7411,8 @@ pub struct ManagedDatabaseSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedDatabaseSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedDatabaseSecurityAlertPolicyListResult { @@ -7485,8 +7485,8 @@ pub struct ManagedInstanceAdministratorListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceAdministratorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceAdministratorListResult { @@ -7567,8 +7567,8 @@ pub struct ManagedInstanceAzureAdOnlyAuthListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceAzureAdOnlyAuthListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceAzureAdOnlyAuthListResult { @@ -7670,8 +7670,8 @@ pub struct ManagedInstanceEncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceEncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceEncryptionProtectorListResult { @@ -7919,8 +7919,8 @@ pub struct ManagedInstanceKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceKeyListResult { @@ -8009,8 +8009,8 @@ pub struct ManagedInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceListResult { @@ -8043,8 +8043,8 @@ pub struct ManagedInstanceLongTermRetentionBackupListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceLongTermRetentionBackupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceLongTermRetentionBackupListResult { @@ -8151,8 +8151,8 @@ pub struct ManagedInstanceLongTermRetentionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceLongTermRetentionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceLongTermRetentionPolicyListResult { @@ -8214,8 +8214,8 @@ pub struct ManagedInstanceOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceOperationListResult { @@ -8411,8 +8411,8 @@ pub struct ManagedInstancePrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstancePrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstancePrivateEndpointConnectionListResult { @@ -8472,8 +8472,8 @@ pub struct ManagedInstancePrivateLinkListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstancePrivateLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstancePrivateLinkListResult { @@ -8854,8 +8854,8 @@ pub struct ManagedInstanceQueryStatistics { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceQueryStatistics { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceQueryStatistics { @@ -8991,8 +8991,8 @@ pub struct ManagedInstanceVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedInstanceVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedInstanceVulnerabilityAssessmentListResult { @@ -9077,8 +9077,8 @@ pub struct ManagedServerDnsAliasListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedServerDnsAliasListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedServerDnsAliasListResult { @@ -9129,8 +9129,8 @@ pub struct ManagedServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedServerSecurityAlertPolicyListResult { @@ -9163,8 +9163,8 @@ pub struct ManagedTransparentDataEncryptionListResult { pub next_link: Option, } impl azure_core::Continuable for ManagedTransparentDataEncryptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedTransparentDataEncryptionListResult { @@ -9443,8 +9443,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -9478,8 +9478,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -9512,8 +9512,8 @@ pub struct OutboundFirewallRuleListResult { pub next_link: Option, } impl azure_core::Continuable for OutboundFirewallRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundFirewallRuleListResult { @@ -9730,8 +9730,8 @@ pub struct PrivateEndpointConnectionListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionListResult { @@ -9858,8 +9858,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -10630,8 +10630,8 @@ pub struct RecoverableManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RecoverableManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoverableManagedDatabaseListResult { @@ -10676,8 +10676,8 @@ pub struct ReplicationLinkListResult { pub next_link: Option, } impl azure_core::Continuable for ReplicationLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationLinkListResult { @@ -10979,8 +10979,8 @@ pub struct RestorableDroppedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RestorableDroppedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorableDroppedDatabaseListResult { @@ -11087,8 +11087,8 @@ pub struct RestorableDroppedManagedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for RestorableDroppedManagedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorableDroppedManagedDatabaseListResult { @@ -11145,8 +11145,8 @@ pub struct RestorePointListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorePointListResult { @@ -11312,8 +11312,8 @@ pub struct SecurityEventCollection { pub next_link: Option, } impl azure_core::Continuable for SecurityEventCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecurityEventCollection { @@ -11444,8 +11444,8 @@ pub struct SensitivityLabelListResult { pub next_link: Option, } impl azure_core::Continuable for SensitivityLabelListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SensitivityLabelListResult { @@ -11668,8 +11668,8 @@ pub struct ServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBlobAuditingPolicyListResult { @@ -11770,8 +11770,8 @@ pub struct ServerConnectionPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerConnectionPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerConnectionPolicyListResult { @@ -11844,8 +11844,8 @@ pub struct ServerDevOpsAuditSettingsListResult { pub next_link: Option, } impl azure_core::Continuable for ServerDevOpsAuditSettingsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerDevOpsAuditSettingsListResult { @@ -11945,8 +11945,8 @@ pub struct ServerDnsAliasListResult { pub next_link: Option, } impl azure_core::Continuable for ServerDnsAliasListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerDnsAliasListResult { @@ -12128,8 +12128,8 @@ pub struct ServerKeyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerKeyListResult { @@ -12222,8 +12222,8 @@ pub struct ServerListResult { pub next_link: Option, } impl azure_core::Continuable for ServerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerListResult { @@ -12256,8 +12256,8 @@ pub struct ServerOperationListResult { pub next_link: Option, } impl azure_core::Continuable for ServerOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerOperationListResult { @@ -12601,8 +12601,8 @@ pub struct ServerTrustCertificatesListResult { pub next_link: Option, } impl azure_core::Continuable for ServerTrustCertificatesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerTrustCertificatesListResult { @@ -12635,8 +12635,8 @@ pub struct ServerTrustGroupListResult { pub next_link: Option, } impl azure_core::Continuable for ServerTrustGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerTrustGroupListResult { @@ -12740,8 +12740,8 @@ pub struct ServerVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ServerVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerVulnerabilityAssessmentListResult { @@ -13028,8 +13028,8 @@ pub struct SubscriptionUsageListResult { pub next_link: Option, } impl azure_core::Continuable for SubscriptionUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionUsageListResult { @@ -13109,8 +13109,8 @@ pub struct SyncAgentLinkedDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for SyncAgentLinkedDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncAgentLinkedDatabaseListResult { @@ -13196,8 +13196,8 @@ pub struct SyncAgentListResult { pub next_link: Option, } impl azure_core::Continuable for SyncAgentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncAgentListResult { @@ -13288,8 +13288,8 @@ pub struct SyncDatabaseIdListResult { pub next_link: Option, } impl azure_core::Continuable for SyncDatabaseIdListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncDatabaseIdListResult { @@ -13335,8 +13335,8 @@ pub struct SyncFullSchemaPropertiesListResult { pub next_link: Option, } impl azure_core::Continuable for SyncFullSchemaPropertiesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncFullSchemaPropertiesListResult { @@ -13426,8 +13426,8 @@ pub struct SyncGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SyncGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncGroupListResult { @@ -13446,8 +13446,8 @@ pub struct SyncGroupLogListResult { pub next_link: Option, } impl azure_core::Continuable for SyncGroupLogListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncGroupLogListResult { @@ -13727,8 +13727,8 @@ pub struct SyncMemberListResult { pub next_link: Option, } impl azure_core::Continuable for SyncMemberListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SyncMemberListResult { @@ -13986,8 +13986,8 @@ pub struct TimeZoneListResult { pub next_link: Option, } impl azure_core::Continuable for TimeZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TimeZoneListResult { @@ -14092,8 +14092,8 @@ pub struct TopQueriesListResult { pub next_link: Option, } impl azure_core::Continuable for TopQueriesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopQueriesListResult { @@ -14313,8 +14313,8 @@ pub struct UsageListResult { pub next_link: Option, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageListResult { @@ -14365,8 +14365,8 @@ pub struct VirtualClusterListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualClusterListResult { @@ -14435,8 +14435,8 @@ pub struct VirtualNetworkRuleListResult { pub next_link: Option, } impl azure_core::Continuable for VirtualNetworkRuleListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkRuleListResult { @@ -14572,8 +14572,8 @@ pub struct VulnerabilityAssessmentScanRecordListResult { pub next_link: Option, } impl azure_core::Continuable for VulnerabilityAssessmentScanRecordListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VulnerabilityAssessmentScanRecordListResult { @@ -14720,8 +14720,8 @@ pub struct WorkloadClassifierListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadClassifierListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadClassifierListResult { @@ -14788,8 +14788,8 @@ pub struct WorkloadGroupListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadGroupListResult { diff --git a/services/mgmt/sql/src/package_preview_2021_11/operations.rs b/services/mgmt/sql/src/package_preview_2021_11/operations.rs index 24c63954f9..47a3806c00 100644 --- a/services/mgmt/sql/src/package_preview_2021_11/operations.rs +++ b/services/mgmt/sql/src/package_preview_2021_11/operations.rs @@ -520,9 +520,9 @@ pub mod backup_short_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -541,6 +541,9 @@ pub mod backup_short_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -809,9 +812,9 @@ pub mod server_blob_auditing_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -830,6 +833,9 @@ pub mod server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1062,9 +1068,9 @@ pub mod database_blob_auditing_policies { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1083,6 +1089,9 @@ pub mod database_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1315,9 +1324,9 @@ pub mod extended_database_blob_auditing_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/extendedAuditingSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1336,6 +1345,9 @@ pub mod extended_database_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1551,9 +1563,9 @@ pub mod extended_server_blob_auditing_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1572,6 +1584,9 @@ pub mod extended_server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1797,9 +1812,9 @@ pub mod database_advanced_threat_protection_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/advancedThreatProtectionSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1818,6 +1833,9 @@ pub mod database_advanced_threat_protection_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2458,9 +2476,9 @@ pub mod database_columns { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2479,6 +2497,9 @@ pub mod database_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2557,9 +2578,9 @@ pub mod database_columns { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/schemas/{}/tables/{}/columns" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . schema_name , & this . table_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2578,6 +2599,9 @@ pub mod database_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2747,9 +2771,9 @@ pub mod database_extensions { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2768,6 +2792,9 @@ pub mod database_extensions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2981,9 +3008,9 @@ pub mod database_operations { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3002,6 +3029,9 @@ pub mod database_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3552,9 +3582,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3573,6 +3603,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4297,9 +4330,9 @@ pub mod databases { &this.elastic_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4318,6 +4351,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4375,9 +4411,9 @@ pub mod databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4396,6 +4432,9 @@ pub mod databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4499,9 +4538,9 @@ pub mod database_schemas { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4520,6 +4559,9 @@ pub mod database_schemas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4695,9 +4737,9 @@ pub mod database_security_alert_policies { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4716,6 +4758,9 @@ pub mod database_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4932,9 +4977,9 @@ pub mod database_tables { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4953,6 +4998,9 @@ pub mod database_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5094,9 +5142,9 @@ pub mod database_usages { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5115,6 +5163,9 @@ pub mod database_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5460,9 +5511,9 @@ pub mod database_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5481,6 +5532,9 @@ pub mod database_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5765,9 +5819,9 @@ pub mod database_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5786,6 +5840,9 @@ pub mod database_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6036,9 +6093,9 @@ pub mod data_warehouse_user_activities { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/dataWarehouseUserActivities" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6057,6 +6114,9 @@ pub mod data_warehouse_user_activities { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6203,9 +6263,9 @@ pub mod deleted_servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6224,6 +6284,9 @@ pub mod deleted_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6279,9 +6342,9 @@ pub mod deleted_servers { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6300,6 +6363,9 @@ pub mod deleted_servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6545,9 +6611,9 @@ pub mod distributed_availability_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/distributedAvailabilityGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6566,6 +6632,9 @@ pub mod distributed_availability_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6877,9 +6946,9 @@ pub mod elastic_pool_operations { &this.elastic_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6898,6 +6967,9 @@ pub mod elastic_pool_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7112,9 +7184,9 @@ pub mod elastic_pools { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7133,6 +7205,9 @@ pub mod elastic_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7558,9 +7633,9 @@ pub mod encryption_protectors { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7579,6 +7654,9 @@ pub mod encryption_protectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7843,9 +7921,9 @@ pub mod endpoint_certificates { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7864,6 +7942,9 @@ pub mod endpoint_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8088,9 +8169,9 @@ pub mod failover_groups { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8109,6 +8190,9 @@ pub mod failover_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8604,9 +8688,9 @@ pub mod firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8625,6 +8709,9 @@ pub mod firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9011,9 +9098,9 @@ pub mod instance_failover_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9032,6 +9119,9 @@ pub mod instance_failover_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9459,9 +9549,9 @@ pub mod instance_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9480,6 +9570,9 @@ pub mod instance_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9535,9 +9628,9 @@ pub mod instance_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9556,6 +9649,9 @@ pub mod instance_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9913,9 +10009,9 @@ pub mod i_pv6_firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9934,6 +10030,9 @@ pub mod i_pv6_firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10248,9 +10347,9 @@ pub mod job_agents { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10269,6 +10368,9 @@ pub mod job_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10644,9 +10746,9 @@ pub mod job_credentials { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10665,6 +10767,9 @@ pub mod job_credentials { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11065,9 +11170,9 @@ pub mod job_executions { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11086,6 +11191,9 @@ pub mod job_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11203,9 +11311,9 @@ pub mod job_executions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11224,6 +11332,9 @@ pub mod job_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11615,9 +11726,9 @@ pub mod jobs { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11636,6 +11747,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11958,9 +12072,9 @@ pub mod job_step_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/steps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11979,6 +12093,9 @@ pub mod job_step_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12233,9 +12350,9 @@ pub mod job_steps { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12254,6 +12371,9 @@ pub mod job_steps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12494,9 +12614,9 @@ pub mod job_steps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/versions/{}/steps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_version)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12515,6 +12635,9 @@ pub mod job_steps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12738,9 +12861,9 @@ pub mod job_target_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/steps/{}/targets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id , & this . step_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12759,6 +12882,9 @@ pub mod job_target_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12920,9 +13046,9 @@ pub mod job_target_executions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/jobAgents/{}/jobs/{}/executions/{}/targets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . job_agent_name , & this . job_name , & this . job_execution_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12941,6 +13067,9 @@ pub mod job_target_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13095,9 +13224,9 @@ pub mod job_target_groups { &this.job_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13116,6 +13245,9 @@ pub mod job_target_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13399,9 +13531,9 @@ pub mod job_versions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13420,6 +13552,9 @@ pub mod job_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13611,9 +13746,9 @@ pub mod ledger_digest_uploads { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13632,6 +13767,9 @@ pub mod ledger_digest_uploads { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14194,9 +14332,9 @@ pub mod long_term_retention_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14215,6 +14353,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14290,9 +14431,9 @@ pub mod long_term_retention_backups { &this.long_term_retention_server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14311,6 +14452,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14381,9 +14525,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionDatabases/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . long_term_retention_server_name , & this . long_term_retention_database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14402,6 +14546,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14687,9 +14834,9 @@ pub mod long_term_retention_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14708,6 +14855,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14778,9 +14928,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . long_term_retention_server_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14799,6 +14949,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14870,9 +15023,9 @@ pub mod long_term_retention_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionServers/{}/longTermRetentionDatabases/{}/longTermRetentionBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . long_term_retention_server_name , & this . long_term_retention_database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14891,6 +15044,9 @@ pub mod long_term_retention_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15348,9 +15504,9 @@ pub mod long_term_retention_managed_instance_backups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15369,6 +15525,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15440,9 +15599,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionDatabases/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15461,6 +15620,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15629,9 +15791,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . location_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15650,6 +15812,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15720,9 +15885,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15741,6 +15906,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15813,9 +15981,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionDatabases/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15834,6 +16002,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16005,9 +16176,9 @@ pub mod long_term_retention_managed_instance_backups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/locations/{}/longTermRetentionManagedInstances/{}/longTermRetentionManagedInstanceBackups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . location_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16026,6 +16197,9 @@ pub mod long_term_retention_managed_instance_backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16144,9 +16318,9 @@ pub mod long_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/backupLongTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16165,6 +16339,9 @@ pub mod long_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16616,9 +16793,9 @@ pub mod managed_backup_short_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16637,6 +16814,9 @@ pub mod managed_backup_short_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16948,9 +17128,9 @@ pub mod managed_database_columns { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16969,6 +17149,9 @@ pub mod managed_database_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17047,9 +17230,9 @@ pub mod managed_database_columns { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/schemas/{}/tables/{}/columns" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . schema_name , & this . table_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17068,6 +17251,9 @@ pub mod managed_database_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17288,9 +17474,9 @@ pub mod managed_database_queries { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/queries/{}/statistics" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . query_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17309,6 +17495,9 @@ pub mod managed_database_queries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17559,9 +17748,9 @@ pub mod managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17580,6 +17769,9 @@ pub mod managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17924,9 +18116,9 @@ pub mod managed_databases { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/inaccessibleManagedDatabases" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17945,6 +18137,9 @@ pub mod managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18048,9 +18243,9 @@ pub mod managed_database_schemas { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18069,6 +18264,9 @@ pub mod managed_database_schemas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18237,9 +18435,9 @@ pub mod managed_database_security_alert_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/securityAlertPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18258,6 +18456,9 @@ pub mod managed_database_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18469,9 +18670,9 @@ pub mod managed_database_security_events { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18490,6 +18691,9 @@ pub mod managed_database_security_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18761,9 +18965,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18782,6 +18986,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18903,9 +19110,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18924,6 +19131,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19248,9 +19458,9 @@ pub mod managed_database_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/sensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19269,6 +19479,9 @@ pub mod managed_database_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19441,9 +19654,9 @@ pub mod managed_database_tables { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/schemas/{}/tables" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . schema_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19462,6 +19675,9 @@ pub mod managed_database_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19623,9 +19839,9 @@ pub mod managed_database_transparent_data_encryption { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/transparentDataEncryption" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19644,6 +19860,9 @@ pub mod managed_database_transparent_data_encryption { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20096,9 +20315,9 @@ pub mod managed_database_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20117,6 +20336,9 @@ pub mod managed_database_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20401,9 +20623,9 @@ pub mod managed_database_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20422,6 +20644,9 @@ pub mod managed_database_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20705,9 +20930,9 @@ pub mod managed_instance_administrators { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20726,6 +20951,9 @@ pub mod managed_instance_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21027,9 +21255,9 @@ pub mod managed_instance_azure_ad_only_authentications { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21048,6 +21276,9 @@ pub mod managed_instance_azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21330,9 +21561,9 @@ pub mod managed_instance_encryption_protectors { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21351,6 +21582,9 @@ pub mod managed_instance_encryption_protectors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21646,9 +21880,9 @@ pub mod managed_instance_keys { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21667,6 +21901,9 @@ pub mod managed_instance_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21959,9 +22196,9 @@ pub mod managed_instance_long_term_retention_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/databases/{}/backupLongTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21980,6 +22217,9 @@ pub mod managed_instance_long_term_retention_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22191,9 +22431,9 @@ pub mod managed_instance_operations { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22212,6 +22452,9 @@ pub mod managed_instance_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22440,9 +22683,9 @@ pub mod managed_instance_private_endpoint_connections { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22461,6 +22704,9 @@ pub mod managed_instance_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22706,9 +22952,9 @@ pub mod managed_instance_private_link_resources { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22727,6 +22973,9 @@ pub mod managed_instance_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22982,9 +23231,9 @@ pub mod managed_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23003,6 +23252,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23068,9 +23320,9 @@ pub mod managed_instances { &this.instance_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23089,6 +23341,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23152,9 +23407,9 @@ pub mod managed_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23173,6 +23428,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23532,9 +23790,9 @@ pub mod managed_instances { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23553,6 +23811,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23645,9 +23906,9 @@ pub mod managed_instances { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23666,6 +23927,9 @@ pub mod managed_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23891,9 +24155,9 @@ pub mod managed_instance_vulnerability_assessments { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23912,6 +24176,9 @@ pub mod managed_instance_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24210,9 +24477,9 @@ pub mod managed_restorable_dropped_database_backup_short_term_retention_policies async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/managedInstances/{}/restorableDroppedDatabases/{}/backupShortTermRetentionPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . managed_instance_name , & this . restorable_dropped_database_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24231,6 +24498,9 @@ pub mod managed_restorable_dropped_database_backup_short_term_retention_policies req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24531,9 +24801,9 @@ pub mod managed_server_dns_aliases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24552,6 +24822,9 @@ pub mod managed_server_dns_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24902,9 +25175,9 @@ pub mod managed_server_security_alert_policies { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24923,6 +25196,9 @@ pub mod managed_server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25096,9 +25372,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Sql/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25117,6 +25393,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25238,9 +25517,9 @@ pub mod outbound_firewall_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25259,6 +25538,9 @@ pub mod outbound_firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25560,9 +25842,9 @@ pub mod private_endpoint_connections { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25581,6 +25863,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25846,9 +26131,9 @@ pub mod private_link_resources { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25867,6 +26152,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26012,9 +26300,9 @@ pub mod recoverable_managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26033,6 +26321,9 @@ pub mod recoverable_managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26248,9 +26539,9 @@ pub mod replication_links { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26269,6 +26560,9 @@ pub mod replication_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26544,9 +26838,9 @@ pub mod replication_links { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26565,6 +26859,9 @@ pub mod replication_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26656,9 +26953,9 @@ pub mod restorable_dropped_databases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26677,6 +26974,9 @@ pub mod restorable_dropped_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26822,9 +27122,9 @@ pub mod restorable_dropped_managed_databases { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26843,6 +27143,9 @@ pub mod restorable_dropped_managed_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27021,9 +27324,9 @@ pub mod restore_points { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27042,6 +27345,9 @@ pub mod restore_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27477,9 +27783,9 @@ pub mod sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27498,6 +27804,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27619,9 +27928,9 @@ pub mod sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27640,6 +27949,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27971,9 +28283,9 @@ pub mod sensitivity_labels { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27992,6 +28304,9 @@ pub mod sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28171,9 +28486,9 @@ pub mod server_advanced_threat_protection_settings { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28192,6 +28507,9 @@ pub mod server_advanced_threat_protection_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28793,9 +29111,9 @@ pub mod server_azure_ad_administrators { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28814,6 +29132,9 @@ pub mod server_azure_ad_administrators { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29117,9 +29438,9 @@ pub mod server_azure_ad_only_authentications { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29138,6 +29459,9 @@ pub mod server_azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29426,9 +29750,9 @@ pub mod server_connection_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29447,6 +29771,9 @@ pub mod server_connection_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29671,9 +29998,9 @@ pub mod server_dev_ops_audit_settings { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29692,6 +30019,9 @@ pub mod server_dev_ops_audit_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29946,9 +30276,9 @@ pub mod server_dns_aliases { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29967,6 +30297,9 @@ pub mod server_dns_aliases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30330,9 +30663,9 @@ pub mod server_keys { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30351,6 +30684,9 @@ pub mod server_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30607,9 +30943,9 @@ pub mod server_operations { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30628,6 +30964,9 @@ pub mod server_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30844,9 +31183,9 @@ pub mod servers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30865,6 +31204,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30928,9 +31270,9 @@ pub mod servers { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30949,6 +31291,9 @@ pub mod servers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31362,9 +31707,9 @@ pub mod server_security_alert_policies { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31383,6 +31728,9 @@ pub mod server_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31622,9 +31970,9 @@ pub mod server_trust_certificates { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31643,6 +31991,9 @@ pub mod server_trust_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31959,9 +32310,9 @@ pub mod server_trust_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31980,6 +32331,9 @@ pub mod server_trust_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32217,9 +32571,9 @@ pub mod server_trust_groups { &this.managed_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32238,6 +32592,9 @@ pub mod server_trust_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32361,9 +32718,9 @@ pub mod server_vulnerability_assessments { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32382,6 +32739,9 @@ pub mod server_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32772,9 +33132,9 @@ pub mod subscription_usages { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32793,6 +33153,9 @@ pub mod subscription_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32998,9 +33361,9 @@ pub mod sync_agents { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33019,6 +33382,9 @@ pub mod sync_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33313,9 +33679,9 @@ pub mod sync_agents { &this.sync_agent_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33334,6 +33700,9 @@ pub mod sync_agents { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33585,9 +33954,9 @@ pub mod sync_groups { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33606,6 +33975,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33665,9 +34037,9 @@ pub mod sync_groups { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33686,6 +34058,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34034,9 +34409,9 @@ pub mod sync_groups { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/hubSchemas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34055,6 +34430,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34124,9 +34502,9 @@ pub mod sync_groups { &this.sync_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34145,6 +34523,9 @@ pub mod sync_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34444,9 +34825,9 @@ pub mod sync_members { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/syncMembers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34465,6 +34846,9 @@ pub mod sync_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34793,9 +35177,9 @@ pub mod sync_members { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/syncGroups/{}/syncMembers/{}/schemas" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . sync_group_name , & this . sync_member_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34814,6 +35198,9 @@ pub mod sync_members { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34972,9 +35359,9 @@ pub mod time_zones { &this.location_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34993,6 +35380,9 @@ pub mod time_zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35154,9 +35544,9 @@ pub mod transparent_data_encryptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/transparentDataEncryption" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35175,6 +35565,9 @@ pub mod transparent_data_encryptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35367,9 +35760,9 @@ pub mod usages { &this.instance_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35388,6 +35781,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35523,9 +35919,9 @@ pub mod virtual_clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35544,6 +35940,9 @@ pub mod virtual_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35599,9 +35998,9 @@ pub mod virtual_clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35620,6 +36019,9 @@ pub mod virtual_clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35958,9 +36360,9 @@ pub mod virtual_network_rules { &this.server_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35979,6 +36381,9 @@ pub mod virtual_network_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36294,9 +36699,9 @@ pub mod workload_classifiers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Sql/servers/{}/databases/{}/workloadGroups/{}/workloadClassifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . server_name , & this . database_name , & this . workload_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36315,6 +36720,9 @@ pub mod workload_classifiers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36613,9 +37021,9 @@ pub mod workload_groups { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36634,6 +37042,9 @@ pub mod workload_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/sqlvirtualmachine/src/package_2017_03_01_preview/models.rs b/services/mgmt/sqlvirtualmachine/src/package_2017_03_01_preview/models.rs index e31ee9db99..b2a78759c1 100644 --- a/services/mgmt/sqlvirtualmachine/src/package_2017_03_01_preview/models.rs +++ b/services/mgmt/sqlvirtualmachine/src/package_2017_03_01_preview/models.rs @@ -198,8 +198,8 @@ pub struct AvailabilityGroupListenerListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilityGroupListenerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilityGroupListenerListResult { @@ -378,8 +378,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -705,8 +705,8 @@ pub struct SqlVirtualMachineGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SqlVirtualMachineGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlVirtualMachineGroupListResult { @@ -914,8 +914,8 @@ pub struct SqlVirtualMachineListResult { pub next_link: Option, } impl azure_core::Continuable for SqlVirtualMachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlVirtualMachineListResult { diff --git a/services/mgmt/sqlvirtualmachine/src/package_2017_03_01_preview/operations.rs b/services/mgmt/sqlvirtualmachine/src/package_2017_03_01_preview/operations.rs index f6c51dbbff..3d7ee42810 100644 --- a/services/mgmt/sqlvirtualmachine/src/package_2017_03_01_preview/operations.rs +++ b/services/mgmt/sqlvirtualmachine/src/package_2017_03_01_preview/operations.rs @@ -326,9 +326,9 @@ pub mod availability_group_listeners { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{}/availabilityGroupListeners" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . sql_virtual_machine_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -347,6 +347,9 @@ pub mod availability_group_listeners { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -407,9 +410,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -428,6 +431,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -789,9 +795,9 @@ pub mod sql_virtual_machine_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -810,6 +816,9 @@ pub mod sql_virtual_machine_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -863,9 +872,9 @@ pub mod sql_virtual_machine_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -884,6 +893,9 @@ pub mod sql_virtual_machine_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1028,9 +1040,9 @@ pub mod sql_virtual_machines { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{}/sqlVirtualMachines" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . sql_virtual_machine_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1049,6 +1061,9 @@ pub mod sql_virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1102,9 +1117,9 @@ pub mod sql_virtual_machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1123,6 +1138,9 @@ pub mod sql_virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1413,9 +1431,9 @@ pub mod sql_virtual_machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1434,6 +1452,9 @@ pub mod sql_virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/sqlvirtualmachine/src/package_preview_2021_11/models.rs b/services/mgmt/sqlvirtualmachine/src/package_preview_2021_11/models.rs index 9af5cc5946..3500204af8 100644 --- a/services/mgmt/sqlvirtualmachine/src/package_preview_2021_11/models.rs +++ b/services/mgmt/sqlvirtualmachine/src/package_preview_2021_11/models.rs @@ -423,8 +423,8 @@ pub struct AvailabilityGroupListenerListResult { pub next_link: Option, } impl azure_core::Continuable for AvailabilityGroupListenerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailabilityGroupListenerListResult { @@ -606,8 +606,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1036,8 +1036,8 @@ pub struct SqlVirtualMachineGroupListResult { pub next_link: Option, } impl azure_core::Continuable for SqlVirtualMachineGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlVirtualMachineGroupListResult { @@ -1245,8 +1245,8 @@ pub struct SqlVirtualMachineListResult { pub next_link: Option, } impl azure_core::Continuable for SqlVirtualMachineListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlVirtualMachineListResult { diff --git a/services/mgmt/sqlvirtualmachine/src/package_preview_2021_11/operations.rs b/services/mgmt/sqlvirtualmachine/src/package_preview_2021_11/operations.rs index ea658a2874..eb050fd13c 100644 --- a/services/mgmt/sqlvirtualmachine/src/package_preview_2021_11/operations.rs +++ b/services/mgmt/sqlvirtualmachine/src/package_preview_2021_11/operations.rs @@ -335,9 +335,9 @@ pub mod availability_group_listeners { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{}/availabilityGroupListeners" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . sql_virtual_machine_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -356,6 +356,9 @@ pub mod availability_group_listeners { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -416,9 +419,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -437,6 +440,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -798,9 +804,9 @@ pub mod sql_virtual_machine_groups { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -819,6 +825,9 @@ pub mod sql_virtual_machine_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -872,9 +881,9 @@ pub mod sql_virtual_machine_groups { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -893,6 +902,9 @@ pub mod sql_virtual_machine_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1063,9 +1075,9 @@ pub mod sql_virtual_machines { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{}/sqlVirtualMachines" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . sql_virtual_machine_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1084,6 +1096,9 @@ pub mod sql_virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1137,9 +1152,9 @@ pub mod sql_virtual_machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1158,6 +1173,9 @@ pub mod sql_virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1503,9 +1521,9 @@ pub mod sql_virtual_machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1524,6 +1542,9 @@ pub mod sql_virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/stack/src/package_2016_01/models.rs b/services/mgmt/stack/src/package_2016_01/models.rs index ee0cbb81d4..c661a14cdb 100644 --- a/services/mgmt/stack/src/package_2016_01/models.rs +++ b/services/mgmt/stack/src/package_2016_01/models.rs @@ -264,7 +264,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -524,8 +524,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -588,8 +588,8 @@ pub struct ProductList { pub value: Vec, } impl azure_core::Continuable for ProductList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductList { @@ -746,8 +746,8 @@ pub struct RegistrationList { pub value: Vec, } impl azure_core::Continuable for RegistrationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationList { diff --git a/services/mgmt/stack/src/package_2016_01/operations.rs b/services/mgmt/stack/src/package_2016_01/operations.rs index c1e4d0e610..869b1b18ca 100644 --- a/services/mgmt/stack/src/package_2016_01/operations.rs +++ b/services/mgmt/stack/src/package_2016_01/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AzureStack/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -282,9 +285,9 @@ pub mod products { &this.registration_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -303,6 +306,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -743,9 +749,9 @@ pub mod registrations { &this.resource_group ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -764,6 +770,9 @@ pub mod registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -817,9 +826,9 @@ pub mod registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -838,6 +847,9 @@ pub mod registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/stack/src/package_2017_06_01/models.rs b/services/mgmt/stack/src/package_2017_06_01/models.rs index e37aaf9948..b599e3adc3 100644 --- a/services/mgmt/stack/src/package_2017_06_01/models.rs +++ b/services/mgmt/stack/src/package_2017_06_01/models.rs @@ -232,8 +232,8 @@ pub struct CustomerSubscriptionList { pub value: Vec, } impl azure_core::Continuable for CustomerSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomerSubscriptionList { @@ -372,7 +372,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -525,8 +525,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -589,8 +589,8 @@ pub struct ProductList { pub value: Vec, } impl azure_core::Continuable for ProductList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductList { @@ -751,8 +751,8 @@ pub struct RegistrationList { pub value: Vec, } impl azure_core::Continuable for RegistrationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationList { diff --git a/services/mgmt/stack/src/package_2017_06_01/operations.rs b/services/mgmt/stack/src/package_2017_06_01/operations.rs index 7e805a3722..ca7ba3b1d0 100644 --- a/services/mgmt/stack/src/package_2017_06_01/operations.rs +++ b/services/mgmt/stack/src/package_2017_06_01/operations.rs @@ -113,9 +113,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AzureStack/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -134,6 +134,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -408,9 +411,9 @@ pub mod products { &this.registration_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -429,6 +432,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -882,9 +888,9 @@ pub mod registrations { &this.resource_group ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -903,6 +909,9 @@ pub mod registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -956,9 +965,9 @@ pub mod registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -977,6 +986,9 @@ pub mod registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1421,9 +1433,9 @@ pub mod customer_subscriptions { &this.registration_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1442,6 +1454,9 @@ pub mod customer_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/stack/src/package_preview_2020_06/models.rs b/services/mgmt/stack/src/package_preview_2020_06/models.rs index 89d8b828c3..3587ba464e 100644 --- a/services/mgmt/stack/src/package_preview_2020_06/models.rs +++ b/services/mgmt/stack/src/package_preview_2020_06/models.rs @@ -235,8 +235,8 @@ pub struct CustomerSubscriptionList { pub value: Vec, } impl azure_core::Continuable for CustomerSubscriptionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomerSubscriptionList { @@ -375,7 +375,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -567,8 +567,8 @@ pub struct LinkedSubscriptionsList { pub value: Vec, } impl azure_core::Continuable for LinkedSubscriptionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LinkedSubscriptionsList { @@ -665,8 +665,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -732,8 +732,8 @@ pub struct ProductList { pub value: Vec, } impl azure_core::Continuable for ProductList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProductList { @@ -894,8 +894,8 @@ pub struct RegistrationList { pub value: Vec, } impl azure_core::Continuable for RegistrationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RegistrationList { diff --git a/services/mgmt/stack/src/package_preview_2020_06/operations.rs b/services/mgmt/stack/src/package_preview_2020_06/operations.rs index d8eaf5500f..5c1a80c1cc 100644 --- a/services/mgmt/stack/src/package_preview_2020_06/operations.rs +++ b/services/mgmt/stack/src/package_preview_2020_06/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AzureStack/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -380,9 +383,9 @@ pub mod customer_subscriptions { &this.registration_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -401,6 +404,9 @@ pub mod customer_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -699,9 +705,9 @@ pub mod products { &this.registration_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -720,6 +726,9 @@ pub mod products { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1173,9 +1182,9 @@ pub mod registrations { &this.resource_group ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1194,6 +1203,9 @@ pub mod registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1247,9 +1259,9 @@ pub mod registrations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1268,6 +1280,9 @@ pub mod registrations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1723,9 +1738,9 @@ pub mod linked_subscriptions { &this.resource_group ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1744,6 +1759,9 @@ pub mod linked_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1797,9 +1815,9 @@ pub mod linked_subscriptions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1818,6 +1836,9 @@ pub mod linked_subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storage/src/package_2021_04/models.rs b/services/mgmt/storage/src/package_2021_04/models.rs index ecfe50a236..67ace44039 100644 --- a/services/mgmt/storage/src/package_2021_04/models.rs +++ b/services/mgmt/storage/src/package_2021_04/models.rs @@ -790,7 +790,7 @@ pub struct BlobServiceItems { pub value: Vec, } impl azure_core::Continuable for BlobServiceItems { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -905,7 +905,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1256,8 +1256,8 @@ pub struct DeletedAccountListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedAccountListResult { @@ -1454,8 +1454,8 @@ pub struct EncryptionScopeListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionScopeListResult { @@ -1689,7 +1689,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1851,8 +1851,8 @@ pub struct FileShareItems { pub next_link: Option, } impl azure_core::Continuable for FileShareItems { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FileShareItems { @@ -2782,7 +2782,7 @@ pub struct ListBlobInventoryPolicy { pub value: Vec, } impl azure_core::Continuable for ListBlobInventoryPolicy { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2816,8 +2816,8 @@ pub struct ListContainerItems { pub next_link: Option, } impl azure_core::Continuable for ListContainerItems { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListContainerItems { @@ -2859,8 +2859,8 @@ pub struct ListQueueResource { pub next_link: Option, } impl azure_core::Continuable for ListQueueResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListQueueResource { @@ -2902,8 +2902,8 @@ pub struct ListTableResource { pub next_link: Option, } impl azure_core::Continuable for ListTableResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListTableResource { @@ -3283,7 +3283,7 @@ pub struct ObjectReplicationPolicies { pub value: Vec, } impl azure_core::Continuable for ObjectReplicationPolicies { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3430,7 +3430,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3485,7 +3485,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4629,8 +4629,8 @@ pub struct StorageAccountListResult { pub next_link: Option, } impl azure_core::Continuable for StorageAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountListResult { @@ -5262,7 +5262,7 @@ pub struct StorageSkuListResult { pub value: Vec, } impl azure_core::Continuable for StorageSkuListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5503,7 +5503,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storage/src/package_2021_04/operations.rs b/services/mgmt/storage/src/package_2021_04/operations.rs index a9eab14e61..e4799bf672 100644 --- a/services/mgmt/storage/src/package_2021_04/operations.rs +++ b/services/mgmt/storage/src/package_2021_04/operations.rs @@ -732,9 +732,9 @@ pub mod storage_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -753,6 +753,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -808,9 +811,9 @@ pub mod storage_accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -829,6 +832,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1298,9 +1304,9 @@ pub mod deleted_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1319,6 +1325,9 @@ pub mod deleted_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2822,9 +2831,9 @@ pub mod encryption_scopes { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2843,6 +2852,9 @@ pub mod encryption_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3365,9 +3377,9 @@ pub mod blob_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/blobServices/default/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3386,6 +3398,9 @@ pub mod blob_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4487,9 +4502,9 @@ pub mod file_shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/fileServices/default/shares" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4508,6 +4523,9 @@ pub mod file_shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5416,9 +5434,9 @@ pub mod queue { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/queueServices/default/queues" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5437,6 +5455,9 @@ pub mod queue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5970,9 +5991,9 @@ pub mod table { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/tableServices/default/tables" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5991,6 +6012,9 @@ pub mod table { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storage/src/package_2021_06/models.rs b/services/mgmt/storage/src/package_2021_06/models.rs index a89098a3fa..6fe2e43fa9 100644 --- a/services/mgmt/storage/src/package_2021_06/models.rs +++ b/services/mgmt/storage/src/package_2021_06/models.rs @@ -846,7 +846,7 @@ pub struct BlobServiceItems { pub value: Vec, } impl azure_core::Continuable for BlobServiceItems { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -961,7 +961,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1318,8 +1318,8 @@ pub struct DeletedAccountListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedAccountListResult { @@ -1516,8 +1516,8 @@ pub struct EncryptionScopeListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionScopeListResult { @@ -1751,7 +1751,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1913,8 +1913,8 @@ pub struct FileShareItems { pub next_link: Option, } impl azure_core::Continuable for FileShareItems { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FileShareItems { @@ -2869,7 +2869,7 @@ pub struct ListBlobInventoryPolicy { pub value: Vec, } impl azure_core::Continuable for ListBlobInventoryPolicy { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2903,8 +2903,8 @@ pub struct ListContainerItems { pub next_link: Option, } impl azure_core::Continuable for ListContainerItems { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListContainerItems { @@ -2946,8 +2946,8 @@ pub struct ListQueueResource { pub next_link: Option, } impl azure_core::Continuable for ListQueueResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListQueueResource { @@ -2989,8 +2989,8 @@ pub struct ListTableResource { pub next_link: Option, } impl azure_core::Continuable for ListTableResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListTableResource { @@ -3370,7 +3370,7 @@ pub struct ObjectReplicationPolicies { pub value: Vec, } impl azure_core::Continuable for ObjectReplicationPolicies { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3517,7 +3517,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3572,7 +3572,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4731,8 +4731,8 @@ pub struct StorageAccountListResult { pub next_link: Option, } impl azure_core::Continuable for StorageAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountListResult { @@ -5502,7 +5502,7 @@ pub struct StorageSkuListResult { pub value: Vec, } impl azure_core::Continuable for StorageSkuListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5749,7 +5749,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storage/src/package_2021_06/operations.rs b/services/mgmt/storage/src/package_2021_06/operations.rs index 49a6d2478d..f5d93e05a4 100644 --- a/services/mgmt/storage/src/package_2021_06/operations.rs +++ b/services/mgmt/storage/src/package_2021_06/operations.rs @@ -760,9 +760,9 @@ pub mod storage_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -781,6 +781,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -836,9 +839,9 @@ pub mod storage_accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -857,6 +860,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1439,9 +1445,9 @@ pub mod deleted_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1460,6 +1466,9 @@ pub mod deleted_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2963,9 +2972,9 @@ pub mod encryption_scopes { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2984,6 +2993,9 @@ pub mod encryption_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3506,9 +3518,9 @@ pub mod blob_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/blobServices/default/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3527,6 +3539,9 @@ pub mod blob_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4628,9 +4643,9 @@ pub mod file_shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/fileServices/default/shares" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4649,6 +4664,9 @@ pub mod file_shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5557,9 +5575,9 @@ pub mod queue { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/queueServices/default/queues" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5578,6 +5596,9 @@ pub mod queue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6111,9 +6132,9 @@ pub mod table { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/tableServices/default/tables" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6132,6 +6153,9 @@ pub mod table { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storage/src/package_2021_08/models.rs b/services/mgmt/storage/src/package_2021_08/models.rs index 4680c3baf9..2ea0693426 100644 --- a/services/mgmt/storage/src/package_2021_08/models.rs +++ b/services/mgmt/storage/src/package_2021_08/models.rs @@ -863,7 +863,7 @@ pub struct BlobServiceItems { pub value: Vec, } impl azure_core::Continuable for BlobServiceItems { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -978,7 +978,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1335,8 +1335,8 @@ pub struct DeletedAccountListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedAccountListResult { @@ -1536,8 +1536,8 @@ pub struct EncryptionScopeListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionScopeListResult { @@ -1771,7 +1771,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1933,8 +1933,8 @@ pub struct FileShareItems { pub next_link: Option, } impl azure_core::Continuable for FileShareItems { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FileShareItems { @@ -2889,7 +2889,7 @@ pub struct ListBlobInventoryPolicy { pub value: Vec, } impl azure_core::Continuable for ListBlobInventoryPolicy { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2923,8 +2923,8 @@ pub struct ListContainerItems { pub next_link: Option, } impl azure_core::Continuable for ListContainerItems { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListContainerItems { @@ -2966,8 +2966,8 @@ pub struct ListQueueResource { pub next_link: Option, } impl azure_core::Continuable for ListQueueResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListQueueResource { @@ -3009,8 +3009,8 @@ pub struct ListTableResource { pub next_link: Option, } impl azure_core::Continuable for ListTableResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListTableResource { @@ -3111,7 +3111,7 @@ pub struct LocalUsers { pub value: Vec, } impl azure_core::Continuable for LocalUsers { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3481,7 +3481,7 @@ pub struct ObjectReplicationPolicies { pub value: Vec, } impl azure_core::Continuable for ObjectReplicationPolicies { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3628,7 +3628,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3702,7 +3702,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4877,8 +4877,8 @@ pub struct StorageAccountListResult { pub next_link: Option, } impl azure_core::Continuable for StorageAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountListResult { @@ -5789,7 +5789,7 @@ pub struct StorageSkuListResult { pub value: Vec, } impl azure_core::Continuable for StorageSkuListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6036,7 +6036,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storage/src/package_2021_08/operations.rs b/services/mgmt/storage/src/package_2021_08/operations.rs index 6b992dde31..65788ee370 100644 --- a/services/mgmt/storage/src/package_2021_08/operations.rs +++ b/services/mgmt/storage/src/package_2021_08/operations.rs @@ -763,9 +763,9 @@ pub mod storage_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -784,6 +784,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -839,9 +842,9 @@ pub mod storage_accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -860,6 +863,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1442,9 +1448,9 @@ pub mod deleted_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1463,6 +1469,9 @@ pub mod deleted_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3383,9 +3392,9 @@ pub mod encryption_scopes { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3404,6 +3413,9 @@ pub mod encryption_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3926,9 +3938,9 @@ pub mod blob_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/blobServices/default/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3947,6 +3959,9 @@ pub mod blob_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5048,9 +5063,9 @@ pub mod file_shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/fileServices/default/shares" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5069,6 +5084,9 @@ pub mod file_shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5977,9 +5995,9 @@ pub mod queue { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/queueServices/default/queues" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5998,6 +6016,9 @@ pub mod queue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6531,9 +6552,9 @@ pub mod table { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/tableServices/default/tables" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6552,6 +6573,9 @@ pub mod table { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storage/src/package_2021_09/models.rs b/services/mgmt/storage/src/package_2021_09/models.rs index 1c862d588a..76d302b334 100644 --- a/services/mgmt/storage/src/package_2021_09/models.rs +++ b/services/mgmt/storage/src/package_2021_09/models.rs @@ -877,7 +877,7 @@ pub struct BlobServiceItems { pub value: Vec, } impl azure_core::Continuable for BlobServiceItems { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -992,7 +992,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1362,8 +1362,8 @@ pub struct DeletedAccountListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedAccountListResult { @@ -1563,8 +1563,8 @@ pub struct EncryptionScopeListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionScopeListResult { @@ -1798,7 +1798,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1960,8 +1960,8 @@ pub struct FileShareItems { pub next_link: Option, } impl azure_core::Continuable for FileShareItems { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FileShareItems { @@ -2923,7 +2923,7 @@ pub struct ListBlobInventoryPolicy { pub value: Vec, } impl azure_core::Continuable for ListBlobInventoryPolicy { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2957,8 +2957,8 @@ pub struct ListContainerItems { pub next_link: Option, } impl azure_core::Continuable for ListContainerItems { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListContainerItems { @@ -3000,8 +3000,8 @@ pub struct ListQueueResource { pub next_link: Option, } impl azure_core::Continuable for ListQueueResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListQueueResource { @@ -3043,8 +3043,8 @@ pub struct ListTableResource { pub next_link: Option, } impl azure_core::Continuable for ListTableResource { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListTableResource { @@ -3145,7 +3145,7 @@ pub struct LocalUsers { pub value: Vec, } impl azure_core::Continuable for LocalUsers { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3515,7 +3515,7 @@ pub struct ObjectReplicationPolicies { pub value: Vec, } impl azure_core::Continuable for ObjectReplicationPolicies { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3662,7 +3662,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3736,7 +3736,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4911,8 +4911,8 @@ pub struct StorageAccountListResult { pub next_link: Option, } impl azure_core::Continuable for StorageAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountListResult { @@ -6012,7 +6012,7 @@ pub struct StorageSkuListResult { pub value: Vec, } impl azure_core::Continuable for StorageSkuListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -6297,7 +6297,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storage/src/package_2021_09/operations.rs b/services/mgmt/storage/src/package_2021_09/operations.rs index c815fe9c05..f1e0c2d0ae 100644 --- a/services/mgmt/storage/src/package_2021_09/operations.rs +++ b/services/mgmt/storage/src/package_2021_09/operations.rs @@ -763,9 +763,9 @@ pub mod storage_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -784,6 +784,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -839,9 +842,9 @@ pub mod storage_accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -860,6 +863,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1442,9 +1448,9 @@ pub mod deleted_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1463,6 +1469,9 @@ pub mod deleted_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3383,9 +3392,9 @@ pub mod encryption_scopes { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3404,6 +3413,9 @@ pub mod encryption_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3926,9 +3938,9 @@ pub mod blob_containers { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/blobServices/default/containers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3947,6 +3959,9 @@ pub mod blob_containers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5048,9 +5063,9 @@ pub mod file_shares { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/fileServices/default/shares" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5069,6 +5084,9 @@ pub mod file_shares { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5977,9 +5995,9 @@ pub mod queue { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/queueServices/default/queues" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5998,6 +6016,9 @@ pub mod queue { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6553,9 +6574,9 @@ pub mod table { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/tableServices/default/tables" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . account_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6574,6 +6595,9 @@ pub mod table { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storage/src/profile_hybrid_2020_09_01/models.rs b/services/mgmt/storage/src/profile_hybrid_2020_09_01/models.rs index 569aca4028..05e3612164 100644 --- a/services/mgmt/storage/src/profile_hybrid_2020_09_01/models.rs +++ b/services/mgmt/storage/src/profile_hybrid_2020_09_01/models.rs @@ -750,8 +750,8 @@ pub struct EncryptionScopeListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionScopeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionScopeListResult { @@ -982,7 +982,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1167,7 +1167,7 @@ pub struct ListBlobInventoryPolicy { pub value: Vec, } impl azure_core::Continuable for ListBlobInventoryPolicy { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1533,7 +1533,7 @@ pub struct ObjectReplicationPolicies { pub value: Vec, } impl azure_core::Continuable for ObjectReplicationPolicies { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1680,7 +1680,7 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1735,7 +1735,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2664,8 +2664,8 @@ pub struct StorageAccountListResult { pub next_link: Option, } impl azure_core::Continuable for StorageAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageAccountListResult { @@ -3249,7 +3249,7 @@ pub struct StorageSkuListResult { pub value: Vec, } impl azure_core::Continuable for StorageSkuListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3341,7 +3341,7 @@ pub struct UsageListResult { pub value: Vec, } impl azure_core::Continuable for UsageListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storage/src/profile_hybrid_2020_09_01/operations.rs b/services/mgmt/storage/src/profile_hybrid_2020_09_01/operations.rs index 6afe81c5e6..b5048651d5 100644 --- a/services/mgmt/storage/src/profile_hybrid_2020_09_01/operations.rs +++ b/services/mgmt/storage/src/profile_hybrid_2020_09_01/operations.rs @@ -705,9 +705,9 @@ pub mod storage_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -726,6 +726,9 @@ pub mod storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2619,9 +2622,9 @@ pub mod encryption_scopes { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2640,6 +2643,9 @@ pub mod encryption_scopes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagecache/src/package_2021_03/models.rs b/services/mgmt/storagecache/src/package_2021_03/models.rs index 0e507ccbca..a624cc404e 100644 --- a/services/mgmt/storagecache/src/package_2021_03/models.rs +++ b/services/mgmt/storagecache/src/package_2021_03/models.rs @@ -90,8 +90,8 @@ pub struct ApiOperationListResult { pub value: Vec, } impl azure_core::Continuable for ApiOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiOperationListResult { @@ -776,8 +776,8 @@ pub struct CachesListResult { pub value: Vec, } impl azure_core::Continuable for CachesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CachesListResult { @@ -805,7 +805,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1195,8 +1195,8 @@ pub struct ResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -1442,8 +1442,8 @@ pub struct StorageTargetsResult { pub value: Vec, } impl azure_core::Continuable for StorageTargetsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageTargetsResult { @@ -1516,8 +1516,8 @@ pub struct UsageModelsResult { pub value: Vec, } impl azure_core::Continuable for UsageModelsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageModelsResult { diff --git a/services/mgmt/storagecache/src/package_2021_03/operations.rs b/services/mgmt/storagecache/src/package_2021_03/operations.rs index e5b0808729..bb163a76a4 100644 --- a/services/mgmt/storagecache/src/package_2021_03/operations.rs +++ b/services/mgmt/storagecache/src/package_2021_03/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorageCache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -202,9 +205,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -223,6 +226,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -288,9 +294,9 @@ pub mod usage_models { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -309,6 +315,9 @@ pub mod usage_models { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -575,9 +584,9 @@ pub mod caches { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -596,6 +605,9 @@ pub mod caches { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -651,9 +663,9 @@ pub mod caches { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -672,6 +684,9 @@ pub mod caches { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1395,9 +1410,9 @@ pub mod storage_targets { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1416,6 +1431,9 @@ pub mod storage_targets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagecache/src/package_2021_05/models.rs b/services/mgmt/storagecache/src/package_2021_05/models.rs index 4b201f2070..3cec3bb2c5 100644 --- a/services/mgmt/storagecache/src/package_2021_05/models.rs +++ b/services/mgmt/storagecache/src/package_2021_05/models.rs @@ -90,8 +90,8 @@ pub struct ApiOperationListResult { pub value: Vec, } impl azure_core::Continuable for ApiOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiOperationListResult { @@ -785,8 +785,8 @@ pub struct CachesListResult { pub value: Vec, } impl azure_core::Continuable for CachesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CachesListResult { @@ -814,7 +814,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1204,8 +1204,8 @@ pub struct ResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -1451,8 +1451,8 @@ pub struct StorageTargetsResult { pub value: Vec, } impl azure_core::Continuable for StorageTargetsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageTargetsResult { @@ -1525,8 +1525,8 @@ pub struct UsageModelsResult { pub value: Vec, } impl azure_core::Continuable for UsageModelsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageModelsResult { diff --git a/services/mgmt/storagecache/src/package_2021_05/operations.rs b/services/mgmt/storagecache/src/package_2021_05/operations.rs index b143d953b9..a52764960b 100644 --- a/services/mgmt/storagecache/src/package_2021_05/operations.rs +++ b/services/mgmt/storagecache/src/package_2021_05/operations.rs @@ -119,9 +119,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorageCache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -140,6 +140,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -205,9 +208,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -226,6 +229,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -291,9 +297,9 @@ pub mod usage_models { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -312,6 +318,9 @@ pub mod usage_models { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -578,9 +587,9 @@ pub mod caches { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -599,6 +608,9 @@ pub mod caches { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -654,9 +666,9 @@ pub mod caches { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -675,6 +687,9 @@ pub mod caches { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1399,9 +1414,9 @@ pub mod storage_targets { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1420,6 +1435,9 @@ pub mod storage_targets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagecache/src/package_2021_09/models.rs b/services/mgmt/storagecache/src/package_2021_09/models.rs index 40f8ea076f..4fa2076107 100644 --- a/services/mgmt/storagecache/src/package_2021_09/models.rs +++ b/services/mgmt/storagecache/src/package_2021_09/models.rs @@ -90,8 +90,8 @@ pub struct ApiOperationListResult { pub value: Vec, } impl azure_core::Continuable for ApiOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiOperationListResult { @@ -785,8 +785,8 @@ pub struct CachesListResult { pub value: Vec, } impl azure_core::Continuable for CachesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CachesListResult { @@ -814,7 +814,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1204,8 +1204,8 @@ pub struct ResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -1496,8 +1496,8 @@ pub struct StorageTargetsResult { pub value: Vec, } impl azure_core::Continuable for StorageTargetsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageTargetsResult { @@ -1570,8 +1570,8 @@ pub struct UsageModelsResult { pub value: Vec, } impl azure_core::Continuable for UsageModelsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageModelsResult { diff --git a/services/mgmt/storagecache/src/package_2021_09/operations.rs b/services/mgmt/storagecache/src/package_2021_09/operations.rs index 421860bb1e..96005bbae8 100644 --- a/services/mgmt/storagecache/src/package_2021_09/operations.rs +++ b/services/mgmt/storagecache/src/package_2021_09/operations.rs @@ -119,9 +119,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorageCache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -140,6 +140,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -205,9 +208,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -226,6 +229,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -291,9 +297,9 @@ pub mod usage_models { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -312,6 +318,9 @@ pub mod usage_models { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -578,9 +587,9 @@ pub mod caches { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -599,6 +608,9 @@ pub mod caches { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -654,9 +666,9 @@ pub mod caches { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -675,6 +687,9 @@ pub mod caches { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1399,9 +1414,9 @@ pub mod storage_targets { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1420,6 +1435,9 @@ pub mod storage_targets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagecache/src/package_2022_01/models.rs b/services/mgmt/storagecache/src/package_2022_01/models.rs index 8fcfc3f35c..10dbdf2558 100644 --- a/services/mgmt/storagecache/src/package_2022_01/models.rs +++ b/services/mgmt/storagecache/src/package_2022_01/models.rs @@ -90,8 +90,8 @@ pub struct ApiOperationListResult { pub value: Vec, } impl azure_core::Continuable for ApiOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiOperationListResult { @@ -788,8 +788,8 @@ pub struct CachesListResult { pub value: Vec, } impl azure_core::Continuable for CachesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CachesListResult { @@ -817,7 +817,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1207,8 +1207,8 @@ pub struct ResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -1266,8 +1266,8 @@ pub struct ResourceUsagesListResult { pub value: Vec, } impl azure_core::Continuable for ResourceUsagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUsagesListResult { @@ -1558,8 +1558,8 @@ pub struct StorageTargetsResult { pub value: Vec, } impl azure_core::Continuable for StorageTargetsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageTargetsResult { @@ -1632,8 +1632,8 @@ pub struct UsageModelsResult { pub value: Vec, } impl azure_core::Continuable for UsageModelsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageModelsResult { diff --git a/services/mgmt/storagecache/src/package_2022_01/operations.rs b/services/mgmt/storagecache/src/package_2022_01/operations.rs index dec77a2e70..7186a0fecf 100644 --- a/services/mgmt/storagecache/src/package_2022_01/operations.rs +++ b/services/mgmt/storagecache/src/package_2022_01/operations.rs @@ -122,9 +122,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorageCache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -143,6 +143,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -208,9 +211,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -229,6 +232,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -294,9 +300,9 @@ pub mod usage_models { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -315,6 +321,9 @@ pub mod usage_models { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -454,9 +463,9 @@ pub mod asc_usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -475,6 +484,9 @@ pub mod asc_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -670,9 +682,9 @@ pub mod caches { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -691,6 +703,9 @@ pub mod caches { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -746,9 +761,9 @@ pub mod caches { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -767,6 +782,9 @@ pub mod caches { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1491,9 +1509,9 @@ pub mod storage_targets { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1512,6 +1530,9 @@ pub mod storage_targets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagecache/src/package_2022_05/models.rs b/services/mgmt/storagecache/src/package_2022_05/models.rs index 6f00553f4f..8f1a7d391f 100644 --- a/services/mgmt/storagecache/src/package_2022_05/models.rs +++ b/services/mgmt/storagecache/src/package_2022_05/models.rs @@ -93,8 +93,8 @@ pub struct ApiOperationListResult { pub value: Vec, } impl azure_core::Continuable for ApiOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiOperationListResult { @@ -821,8 +821,8 @@ pub struct CachesListResult { pub value: Vec, } impl azure_core::Continuable for CachesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CachesListResult { @@ -850,7 +850,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1350,8 +1350,8 @@ pub struct ResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ResourceSkusResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkusResult { @@ -1409,8 +1409,8 @@ pub struct ResourceUsagesListResult { pub value: Vec, } impl azure_core::Continuable for ResourceUsagesListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceUsagesListResult { @@ -1722,8 +1722,8 @@ pub struct StorageTargetsResult { pub value: Vec, } impl azure_core::Continuable for StorageTargetsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageTargetsResult { @@ -1796,8 +1796,8 @@ pub struct UsageModelsResult { pub value: Vec, } impl azure_core::Continuable for UsageModelsResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageModelsResult { diff --git a/services/mgmt/storagecache/src/package_2022_05/operations.rs b/services/mgmt/storagecache/src/package_2022_05/operations.rs index 3e441e0e27..bcea0ec477 100644 --- a/services/mgmt/storagecache/src/package_2022_05/operations.rs +++ b/services/mgmt/storagecache/src/package_2022_05/operations.rs @@ -122,9 +122,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorageCache/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -143,6 +143,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -208,9 +211,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -229,6 +232,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -294,9 +300,9 @@ pub mod usage_models { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -315,6 +321,9 @@ pub mod usage_models { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -454,9 +463,9 @@ pub mod asc_usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -475,6 +484,9 @@ pub mod asc_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -740,9 +752,9 @@ pub mod caches { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -761,6 +773,9 @@ pub mod caches { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -816,9 +831,9 @@ pub mod caches { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -837,6 +852,9 @@ pub mod caches { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1871,9 +1889,9 @@ pub mod storage_targets { &this.cache_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1892,6 +1910,9 @@ pub mod storage_targets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storageimportexport/src/package_2016_11/models.rs b/services/mgmt/storageimportexport/src/package_2016_11/models.rs index 978aa0a23c..c4d9606c96 100644 --- a/services/mgmt/storageimportexport/src/package_2016_11/models.rs +++ b/services/mgmt/storageimportexport/src/package_2016_11/models.rs @@ -216,7 +216,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -293,7 +293,7 @@ pub struct GetBitLockerKeysResponse { pub value: Vec, } impl azure_core::Continuable for GetBitLockerKeysResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -474,8 +474,8 @@ pub struct ListJobsResponse { pub value: Vec, } impl azure_core::Continuable for ListJobsResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListJobsResponse { @@ -491,7 +491,7 @@ pub struct ListOperationsResponse { pub value: Vec, } impl azure_core::Continuable for ListOperationsResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -574,7 +574,7 @@ pub struct LocationsResponse { pub value: Vec, } impl azure_core::Continuable for LocationsResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storageimportexport/src/package_2016_11/operations.rs b/services/mgmt/storageimportexport/src/package_2016_11/operations.rs index b25aa033d3..10c2d5811f 100644 --- a/services/mgmt/storageimportexport/src/package_2016_11/operations.rs +++ b/services/mgmt/storageimportexport/src/package_2016_11/operations.rs @@ -338,9 +338,9 @@ pub mod jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -359,6 +359,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -438,9 +441,9 @@ pub mod jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -459,6 +462,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storageimportexport/src/package_2020_08/models.rs b/services/mgmt/storageimportexport/src/package_2020_08/models.rs index 51cd6cea6e..6c5bc5f186 100644 --- a/services/mgmt/storageimportexport/src/package_2020_08/models.rs +++ b/services/mgmt/storageimportexport/src/package_2020_08/models.rs @@ -216,7 +216,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -293,7 +293,7 @@ pub struct GetBitLockerKeysResponse { pub value: Vec, } impl azure_core::Continuable for GetBitLockerKeysResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -474,8 +474,8 @@ pub struct ListJobsResponse { pub value: Vec, } impl azure_core::Continuable for ListJobsResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListJobsResponse { @@ -491,7 +491,7 @@ pub struct ListOperationsResponse { pub value: Vec, } impl azure_core::Continuable for ListOperationsResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -574,7 +574,7 @@ pub struct LocationsResponse { pub value: Vec, } impl azure_core::Continuable for LocationsResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storageimportexport/src/package_2020_08/operations.rs b/services/mgmt/storageimportexport/src/package_2020_08/operations.rs index eba1c7191e..5f568225c3 100644 --- a/services/mgmt/storageimportexport/src/package_2020_08/operations.rs +++ b/services/mgmt/storageimportexport/src/package_2020_08/operations.rs @@ -338,9 +338,9 @@ pub mod jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -359,6 +359,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -438,9 +441,9 @@ pub mod jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -459,6 +462,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storageimportexport/src/package_preview_2021_01/models.rs b/services/mgmt/storageimportexport/src/package_preview_2021_01/models.rs index d8b226d633..a12c601404 100644 --- a/services/mgmt/storageimportexport/src/package_preview_2021_01/models.rs +++ b/services/mgmt/storageimportexport/src/package_preview_2021_01/models.rs @@ -216,7 +216,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -293,7 +293,7 @@ pub struct GetBitLockerKeysResponse { pub value: Vec, } impl azure_core::Continuable for GetBitLockerKeysResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -474,8 +474,8 @@ pub struct ListJobsResponse { pub value: Vec, } impl azure_core::Continuable for ListJobsResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListJobsResponse { @@ -491,7 +491,7 @@ pub struct ListOperationsResponse { pub value: Vec, } impl azure_core::Continuable for ListOperationsResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -574,7 +574,7 @@ pub struct LocationsResponse { pub value: Vec, } impl azure_core::Continuable for LocationsResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storageimportexport/src/package_preview_2021_01/operations.rs b/services/mgmt/storageimportexport/src/package_preview_2021_01/operations.rs index 7f65b2c7ec..9f0876544c 100644 --- a/services/mgmt/storageimportexport/src/package_preview_2021_01/operations.rs +++ b/services/mgmt/storageimportexport/src/package_preview_2021_01/operations.rs @@ -338,9 +338,9 @@ pub mod jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -359,6 +359,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -438,9 +441,9 @@ pub mod jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -459,6 +462,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagepool/src/package_2020_03_15_preview/models.rs b/services/mgmt/storagepool/src/package_2020_03_15_preview/models.rs index a241e9c63d..eff96e557d 100644 --- a/services/mgmt/storagepool/src/package_2020_03_15_preview/models.rs +++ b/services/mgmt/storagepool/src/package_2020_03_15_preview/models.rs @@ -147,8 +147,8 @@ pub struct DiskPoolListResult { pub next_link: Option, } impl azure_core::Continuable for DiskPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskPoolListResult { @@ -271,7 +271,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -405,8 +405,8 @@ pub struct IscsiTargetList { pub next_link: Option, } impl azure_core::Continuable for IscsiTargetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IscsiTargetList { @@ -620,7 +620,7 @@ pub struct StoragePoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for StoragePoolOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storagepool/src/package_2020_03_15_preview/operations.rs b/services/mgmt/storagepool/src/package_2020_03_15_preview/operations.rs index 543c353b03..edde1ca025 100644 --- a/services/mgmt/storagepool/src/package_2020_03_15_preview/operations.rs +++ b/services/mgmt/storagepool/src/package_2020_03_15_preview/operations.rs @@ -235,9 +235,9 @@ pub mod disk_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -256,6 +256,9 @@ pub mod disk_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -311,9 +314,9 @@ pub mod disk_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -332,6 +335,9 @@ pub mod disk_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -708,9 +714,9 @@ pub mod iscsi_targets { &this.disk_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -729,6 +735,9 @@ pub mod iscsi_targets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagepool/src/package_2021_04_01_preview/models.rs b/services/mgmt/storagepool/src/package_2021_04_01_preview/models.rs index 8bda8d01cf..f0596726f7 100644 --- a/services/mgmt/storagepool/src/package_2021_04_01_preview/models.rs +++ b/services/mgmt/storagepool/src/package_2021_04_01_preview/models.rs @@ -167,8 +167,8 @@ pub struct DiskPoolListResult { pub next_link: Option, } impl azure_core::Continuable for DiskPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskPoolListResult { @@ -308,8 +308,8 @@ pub struct DiskPoolZoneListResult { pub next_link: Option, } impl azure_core::Continuable for DiskPoolZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskPoolZoneListResult { @@ -361,7 +361,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -502,8 +502,8 @@ pub struct IscsiTargetList { pub next_link: Option, } impl azure_core::Continuable for IscsiTargetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IscsiTargetList { @@ -658,8 +658,8 @@ pub struct OutboundEnvironmentEndpointList { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointList { @@ -791,7 +791,7 @@ pub struct StoragePoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for StoragePoolOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storagepool/src/package_2021_04_01_preview/operations.rs b/services/mgmt/storagepool/src/package_2021_04_01_preview/operations.rs index 052cbe4852..b8694cb438 100644 --- a/services/mgmt/storagepool/src/package_2021_04_01_preview/operations.rs +++ b/services/mgmt/storagepool/src/package_2021_04_01_preview/operations.rs @@ -277,9 +277,9 @@ pub mod disk_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -298,6 +298,9 @@ pub mod disk_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -353,9 +356,9 @@ pub mod disk_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -374,6 +377,9 @@ pub mod disk_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -657,9 +663,9 @@ pub mod disk_pools { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.StoragePool/diskPools/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . disk_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -678,6 +684,9 @@ pub mod disk_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -856,9 +865,9 @@ pub mod disk_pool_zones { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -877,6 +886,9 @@ pub mod disk_pool_zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1017,9 +1029,9 @@ pub mod iscsi_targets { &this.disk_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1038,6 +1050,9 @@ pub mod iscsi_targets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagepool/src/package_2021_08_01/models.rs b/services/mgmt/storagepool/src/package_2021_08_01/models.rs index a7a99dda80..311ad8b6e7 100644 --- a/services/mgmt/storagepool/src/package_2021_08_01/models.rs +++ b/services/mgmt/storagepool/src/package_2021_08_01/models.rs @@ -183,8 +183,8 @@ pub struct DiskPoolListResult { pub next_link: Option, } impl azure_core::Continuable for DiskPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskPoolListResult { @@ -339,8 +339,8 @@ pub struct DiskPoolZoneListResult { pub next_link: Option, } impl azure_core::Continuable for DiskPoolZoneListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiskPoolZoneListResult { @@ -392,7 +392,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -549,8 +549,8 @@ pub struct IscsiTargetList { pub next_link: Option, } impl azure_core::Continuable for IscsiTargetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IscsiTargetList { @@ -719,8 +719,8 @@ pub struct OutboundEnvironmentEndpointList { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointList { @@ -862,8 +862,8 @@ pub struct ResourceSkuListResult { pub next_link: Option, } impl azure_core::Continuable for ResourceSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceSkuListResult { @@ -1001,7 +1001,7 @@ pub struct StoragePoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for StoragePoolOperationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storagepool/src/package_2021_08_01/operations.rs b/services/mgmt/storagepool/src/package_2021_08_01/operations.rs index e494716fdc..acaf1acac3 100644 --- a/services/mgmt/storagepool/src/package_2021_08_01/operations.rs +++ b/services/mgmt/storagepool/src/package_2021_08_01/operations.rs @@ -293,9 +293,9 @@ pub mod disk_pools { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -314,6 +314,9 @@ pub mod disk_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -369,9 +372,9 @@ pub mod disk_pools { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -390,6 +393,9 @@ pub mod disk_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -673,9 +679,9 @@ pub mod disk_pools { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.StoragePool/diskPools/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . disk_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -694,6 +700,9 @@ pub mod disk_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -927,9 +936,9 @@ pub mod disk_pool_zones { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -948,6 +957,9 @@ pub mod disk_pool_zones { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1016,9 +1028,9 @@ pub mod resource_skus { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1037,6 +1049,9 @@ pub mod resource_skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1177,9 +1192,9 @@ pub mod iscsi_targets { &this.disk_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1198,6 +1213,9 @@ pub mod iscsi_targets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagesync/src/package_2019_03_01/models.rs b/services/mgmt/storagesync/src/package_2019_03_01/models.rs index a1a87ee28a..22206bea47 100644 --- a/services/mgmt/storagesync/src/package_2019_03_01/models.rs +++ b/services/mgmt/storagesync/src/package_2019_03_01/models.rs @@ -88,7 +88,7 @@ pub struct CloudEndpointArray { pub value: Vec, } impl azure_core::Continuable for CloudEndpointArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -292,8 +292,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -485,7 +485,7 @@ pub struct RegisteredServerArray { pub value: Vec, } impl azure_core::Continuable for RegisteredServerArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -679,7 +679,7 @@ pub struct ServerEndpointArray { pub value: Vec, } impl azure_core::Continuable for ServerEndpointArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -904,7 +904,7 @@ pub struct StorageSyncError { pub innererror: Option, } impl azure_core::Continuable for StorageSyncError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -956,7 +956,7 @@ pub struct StorageSyncServiceArray { pub value: Vec, } impl azure_core::Continuable for StorageSyncServiceArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1151,7 +1151,7 @@ pub struct SyncGroupArray { pub value: Vec, } impl azure_core::Continuable for SyncGroupArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1347,7 +1347,7 @@ pub struct WorkflowArray { pub value: Vec, } impl azure_core::Continuable for WorkflowArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storagesync/src/package_2019_03_01/operations.rs b/services/mgmt/storagesync/src/package_2019_03_01/operations.rs index 5bc611db03..1e2bc51711 100644 --- a/services/mgmt/storagesync/src/package_2019_03_01/operations.rs +++ b/services/mgmt/storagesync/src/package_2019_03_01/operations.rs @@ -122,9 +122,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorageSync/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -143,6 +143,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagesync/src/package_2019_06_01/models.rs b/services/mgmt/storagesync/src/package_2019_06_01/models.rs index a75603c782..538bd61c85 100644 --- a/services/mgmt/storagesync/src/package_2019_06_01/models.rs +++ b/services/mgmt/storagesync/src/package_2019_06_01/models.rs @@ -88,7 +88,7 @@ pub struct CloudEndpointArray { pub value: Vec, } impl azure_core::Continuable for CloudEndpointArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -257,8 +257,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -450,7 +450,7 @@ pub struct RegisteredServerArray { pub value: Vec, } impl azure_core::Continuable for RegisteredServerArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -644,7 +644,7 @@ pub struct ServerEndpointArray { pub value: Vec, } impl azure_core::Continuable for ServerEndpointArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1034,7 +1034,7 @@ pub struct StorageSyncError { pub innererror: Option, } impl azure_core::Continuable for StorageSyncError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1086,7 +1086,7 @@ pub struct StorageSyncServiceArray { pub value: Vec, } impl azure_core::Continuable for StorageSyncServiceArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1247,7 +1247,7 @@ pub struct SyncGroupArray { pub value: Vec, } impl azure_core::Continuable for SyncGroupArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1413,7 +1413,7 @@ pub struct WorkflowArray { pub value: Vec, } impl azure_core::Continuable for WorkflowArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storagesync/src/package_2019_06_01/operations.rs b/services/mgmt/storagesync/src/package_2019_06_01/operations.rs index f19ab6ef7a..d7d1e9e4df 100644 --- a/services/mgmt/storagesync/src/package_2019_06_01/operations.rs +++ b/services/mgmt/storagesync/src/package_2019_06_01/operations.rs @@ -122,9 +122,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorageSync/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -143,6 +143,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagesync/src/package_2019_10_01/models.rs b/services/mgmt/storagesync/src/package_2019_10_01/models.rs index d09489d7b0..e4f88f0a0a 100644 --- a/services/mgmt/storagesync/src/package_2019_10_01/models.rs +++ b/services/mgmt/storagesync/src/package_2019_10_01/models.rs @@ -88,7 +88,7 @@ pub struct CloudEndpointArray { pub value: Vec, } impl azure_core::Continuable for CloudEndpointArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -371,8 +371,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -564,7 +564,7 @@ pub struct RegisteredServerArray { pub value: Vec, } impl azure_core::Continuable for RegisteredServerArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -758,7 +758,7 @@ pub struct ServerEndpointArray { pub value: Vec, } impl azure_core::Continuable for ServerEndpointArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1109,7 +1109,7 @@ pub struct StorageSyncError { pub innererror: Option, } impl azure_core::Continuable for StorageSyncError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1161,7 +1161,7 @@ pub struct StorageSyncServiceArray { pub value: Vec, } impl azure_core::Continuable for StorageSyncServiceArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1349,7 +1349,7 @@ pub struct SyncGroupArray { pub value: Vec, } impl azure_core::Continuable for SyncGroupArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1545,7 +1545,7 @@ pub struct WorkflowArray { pub value: Vec, } impl azure_core::Continuable for WorkflowArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storagesync/src/package_2019_10_01/operations.rs b/services/mgmt/storagesync/src/package_2019_10_01/operations.rs index 6db5de6309..a0d11b3761 100644 --- a/services/mgmt/storagesync/src/package_2019_10_01/operations.rs +++ b/services/mgmt/storagesync/src/package_2019_10_01/operations.rs @@ -122,9 +122,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorageSync/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -143,6 +143,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagesync/src/package_2020_03_01/models.rs b/services/mgmt/storagesync/src/package_2020_03_01/models.rs index b1f53d3119..280a361c2c 100644 --- a/services/mgmt/storagesync/src/package_2020_03_01/models.rs +++ b/services/mgmt/storagesync/src/package_2020_03_01/models.rs @@ -88,7 +88,7 @@ pub struct CloudEndpointArray { pub value: Vec, } impl azure_core::Continuable for CloudEndpointArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -582,8 +582,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -822,7 +822,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1132,7 +1132,7 @@ pub struct RegisteredServerArray { pub value: Vec, } impl azure_core::Continuable for RegisteredServerArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1337,7 +1337,7 @@ pub struct ServerEndpointArray { pub value: Vec, } impl azure_core::Continuable for ServerEndpointArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1946,7 +1946,7 @@ pub struct StorageSyncError { pub innererror: Option, } impl azure_core::Continuable for StorageSyncError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2034,7 +2034,7 @@ pub struct StorageSyncServiceArray { pub value: Vec, } impl azure_core::Continuable for StorageSyncServiceArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2227,7 +2227,7 @@ pub struct SyncGroupArray { pub value: Vec, } impl azure_core::Continuable for SyncGroupArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2393,7 +2393,7 @@ pub struct WorkflowArray { pub value: Vec, } impl azure_core::Continuable for WorkflowArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storagesync/src/package_2020_03_01/operations.rs b/services/mgmt/storagesync/src/package_2020_03_01/operations.rs index 5eab009e52..4889eac296 100644 --- a/services/mgmt/storagesync/src/package_2020_03_01/operations.rs +++ b/services/mgmt/storagesync/src/package_2020_03_01/operations.rs @@ -128,9 +128,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorageSync/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -149,6 +149,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storagesync/src/package_2020_09_01/models.rs b/services/mgmt/storagesync/src/package_2020_09_01/models.rs index 5a7f34a10e..bac6858e85 100644 --- a/services/mgmt/storagesync/src/package_2020_09_01/models.rs +++ b/services/mgmt/storagesync/src/package_2020_09_01/models.rs @@ -88,7 +88,7 @@ pub struct CloudEndpointArray { pub value: Vec, } impl azure_core::Continuable for CloudEndpointArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -793,8 +793,8 @@ pub struct OperationEntityListResult { pub value: Vec, } impl azure_core::Continuable for OperationEntityListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationEntityListResult { @@ -1033,7 +1033,7 @@ pub struct PrivateEndpointConnectionListResult { pub value: Vec, } impl azure_core::Continuable for PrivateEndpointConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1343,7 +1343,7 @@ pub struct RegisteredServerArray { pub value: Vec, } impl azure_core::Continuable for RegisteredServerArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1554,7 +1554,7 @@ pub struct ServerEndpointArray { pub value: Vec, } impl azure_core::Continuable for ServerEndpointArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2154,7 +2154,7 @@ pub struct StorageSyncError { pub innererror: Option, } impl azure_core::Continuable for StorageSyncError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2242,7 +2242,7 @@ pub struct StorageSyncServiceArray { pub value: Vec, } impl azure_core::Continuable for StorageSyncServiceArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2435,7 +2435,7 @@ pub struct SyncGroupArray { pub value: Vec, } impl azure_core::Continuable for SyncGroupArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2601,7 +2601,7 @@ pub struct WorkflowArray { pub value: Vec, } impl azure_core::Continuable for WorkflowArray { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storagesync/src/package_2020_09_01/operations.rs b/services/mgmt/storagesync/src/package_2020_09_01/operations.rs index cfe1ca8565..6da93f0d5e 100644 --- a/services/mgmt/storagesync/src/package_2020_09_01/operations.rs +++ b/services/mgmt/storagesync/src/package_2020_09_01/operations.rs @@ -128,9 +128,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorageSync/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -149,6 +149,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storsimple1200series/src/package_2016_10/models.rs b/services/mgmt/storsimple1200series/src/package_2016_10/models.rs index 15cdb57398..34fa0c72e1 100644 --- a/services/mgmt/storsimple1200series/src/package_2016_10/models.rs +++ b/services/mgmt/storsimple1200series/src/package_2016_10/models.rs @@ -27,7 +27,7 @@ pub struct AccessControlRecordList { pub value: Vec, } impl azure_core::Continuable for AccessControlRecordList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -138,8 +138,8 @@ pub struct AlertList { pub next_link: Option, } impl azure_core::Continuable for AlertList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertList { @@ -420,8 +420,8 @@ pub struct AvailableProviderOperations { pub next_link: Option, } impl azure_core::Continuable for AvailableProviderOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableProviderOperations { @@ -528,8 +528,8 @@ pub struct BackupList { pub next_link: Option, } impl azure_core::Continuable for BackupList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupList { @@ -610,7 +610,7 @@ pub struct BackupScheduleGroupList { pub value: Vec, } impl azure_core::Continuable for BackupScheduleGroupList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -683,7 +683,7 @@ pub struct ChapSettingsList { pub value: Vec, } impl azure_core::Continuable for ChapSettingsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -810,7 +810,7 @@ pub struct DeviceList { pub value: Vec, } impl azure_core::Continuable for DeviceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -974,7 +974,7 @@ pub struct Error { pub values: Vec, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1027,7 +1027,7 @@ pub struct FileServerList { pub value: Vec, } impl azure_core::Continuable for FileServerList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1085,7 +1085,7 @@ pub struct FileShareList { pub value: Vec, } impl azure_core::Continuable for FileShareList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1209,7 +1209,7 @@ pub struct IscsiDiskList { pub value: Vec, } impl azure_core::Continuable for IscsiDiskList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1312,7 +1312,7 @@ pub struct IscsiServerList { pub value: Vec, } impl azure_core::Continuable for IscsiServerList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1505,8 +1505,8 @@ pub struct JobList { pub next_link: Option, } impl azure_core::Continuable for JobList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobList { @@ -1754,7 +1754,7 @@ pub struct ManagerList { pub value: Vec, } impl azure_core::Continuable for ManagerList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1940,7 +1940,7 @@ pub struct MetricDefinitionList { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1990,7 +1990,7 @@ pub struct MetricList { pub value: Vec, } impl azure_core::Continuable for MetricList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2399,7 +2399,7 @@ pub struct StorageAccountCredentialList { pub value: Vec, } impl azure_core::Continuable for StorageAccountCredentialList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2489,7 +2489,7 @@ pub struct StorageDomainList { pub value: Vec, } impl azure_core::Continuable for StorageDomainList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storsimple1200series/src/package_2016_10/operations.rs b/services/mgmt/storsimple1200series/src/package_2016_10/operations.rs index c0a0aacfa7..038e4803b6 100644 --- a/services/mgmt/storsimple1200series/src/package_2016_10/operations.rs +++ b/services/mgmt/storsimple1200series/src/package_2016_10/operations.rs @@ -1133,9 +1133,9 @@ pub mod available_provider_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorSimple/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1154,6 +1154,9 @@ pub mod available_provider_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1559,9 +1562,9 @@ pub mod alerts { &this.manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1580,6 +1583,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1815,9 +1821,9 @@ pub mod backups { &this.manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1836,6 +1842,9 @@ pub mod backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1908,9 +1917,9 @@ pub mod backups { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1929,6 +1938,9 @@ pub mod backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6203,9 +6215,9 @@ pub mod jobs { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6224,6 +6236,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6345,9 +6360,9 @@ pub mod jobs { &this.manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6366,6 +6381,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/storsimple8000series/src/package_2017_06/models.rs b/services/mgmt/storsimple8000series/src/package_2017_06/models.rs index de3dbbf2dd..3f65848d04 100644 --- a/services/mgmt/storsimple8000series/src/package_2017_06/models.rs +++ b/services/mgmt/storsimple8000series/src/package_2017_06/models.rs @@ -27,7 +27,7 @@ pub struct AccessControlRecordList { pub value: Vec, } impl azure_core::Continuable for AccessControlRecordList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -164,8 +164,8 @@ pub struct AlertList { pub next_link: Option, } impl azure_core::Continuable for AlertList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AlertList { @@ -434,8 +434,8 @@ pub struct AvailableProviderOperationList { pub next_link: Option, } impl azure_core::Continuable for AvailableProviderOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableProviderOperationList { @@ -550,8 +550,8 @@ pub struct BackupList { pub next_link: Option, } impl azure_core::Continuable for BackupList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupList { @@ -582,7 +582,7 @@ pub struct BackupPolicyList { pub value: Vec, } impl azure_core::Continuable for BackupPolicyList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -722,7 +722,7 @@ pub struct BackupScheduleList { pub value: Vec, } impl azure_core::Continuable for BackupScheduleList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -849,7 +849,7 @@ pub struct BandwidthSettingList { pub value: Vec, } impl azure_core::Continuable for BandwidthSettingList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1032,7 +1032,7 @@ pub struct CloudApplianceConfigurationList { pub value: Vec, } impl azure_core::Continuable for CloudApplianceConfigurationList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1312,7 +1312,7 @@ pub struct DeviceList { pub value: Vec, } impl azure_core::Continuable for DeviceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1679,7 +1679,7 @@ pub struct FailoverSetsList { pub value: Vec, } impl azure_core::Continuable for FailoverSetsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1756,7 +1756,7 @@ pub struct FailoverTargetsList { pub value: Vec, } impl azure_core::Continuable for FailoverTargetsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1807,7 +1807,7 @@ pub struct FeatureList { pub value: Vec, } impl azure_core::Continuable for FeatureList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1878,7 +1878,7 @@ pub struct HardwareComponentGroupList { pub value: Vec, } impl azure_core::Continuable for HardwareComponentGroupList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2023,8 +2023,8 @@ pub struct JobList { pub next_link: Option, } impl azure_core::Continuable for JobList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobList { @@ -2265,7 +2265,7 @@ pub struct ManagerList { pub value: Vec, } impl azure_core::Continuable for ManagerList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2429,7 +2429,7 @@ pub struct MetricDefinitionList { pub value: Vec, } impl azure_core::Continuable for MetricDefinitionList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2494,7 +2494,7 @@ pub struct MetricList { pub value: Vec, } impl azure_core::Continuable for MetricList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3056,7 +3056,7 @@ pub struct StorageAccountCredentialList { pub value: Vec, } impl azure_core::Continuable for StorageAccountCredentialList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3358,7 +3358,7 @@ pub struct VolumeContainerList { pub value: Vec, } impl azure_core::Continuable for VolumeContainerList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3471,7 +3471,7 @@ pub struct VolumeList { pub value: Vec, } impl azure_core::Continuable for VolumeList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/storsimple8000series/src/package_2017_06/operations.rs b/services/mgmt/storsimple8000series/src/package_2017_06/operations.rs index 2a372b6a79..fb5c60793b 100644 --- a/services/mgmt/storsimple8000series/src/package_2017_06/operations.rs +++ b/services/mgmt/storsimple8000series/src/package_2017_06/operations.rs @@ -146,9 +146,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.StorSimple/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -167,6 +167,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1755,9 +1758,9 @@ pub mod alerts { &this.manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1776,6 +1779,9 @@ pub mod alerts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4786,9 +4792,9 @@ pub mod backups { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4807,6 +4813,9 @@ pub mod backups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5246,9 +5255,9 @@ pub mod jobs { &this.device_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5267,6 +5276,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5447,9 +5459,9 @@ pub mod jobs { &this.manager_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5468,6 +5480,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/streamanalytics/src/package_2021_10_preview/models.rs b/services/mgmt/streamanalytics/src/package_2021_10_preview/models.rs index 22debfefcf..85a863f883 100644 --- a/services/mgmt/streamanalytics/src/package_2021_10_preview/models.rs +++ b/services/mgmt/streamanalytics/src/package_2021_10_preview/models.rs @@ -939,8 +939,8 @@ pub struct ClusterJobListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterJobListResult { @@ -959,8 +959,8 @@ pub struct ClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -1430,7 +1430,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1859,8 +1859,8 @@ pub struct FunctionListResult { pub next_link: Option, } impl azure_core::Continuable for FunctionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionListResult { @@ -2027,8 +2027,8 @@ pub struct InputListResult { pub next_link: Option, } impl azure_core::Continuable for InputListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InputListResult { @@ -2447,8 +2447,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -2530,8 +2530,8 @@ pub struct OutputListResult { pub next_link: Option, } impl azure_core::Continuable for OutputListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutputListResult { @@ -2827,8 +2827,8 @@ pub struct PrivateEndpointListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointListResult { @@ -3623,8 +3623,8 @@ pub struct StreamingJobListResult { pub next_link: Option, } impl azure_core::Continuable for StreamingJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingJobListResult { diff --git a/services/mgmt/streamanalytics/src/package_2021_10_preview/operations.rs b/services/mgmt/streamanalytics/src/package_2021_10_preview/operations.rs index 9b0a1e5144..e6b4d86bdf 100644 --- a/services/mgmt/streamanalytics/src/package_2021_10_preview/operations.rs +++ b/services/mgmt/streamanalytics/src/package_2021_10_preview/operations.rs @@ -502,9 +502,9 @@ pub mod functions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -523,6 +523,9 @@ pub mod functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1077,9 +1080,9 @@ pub mod inputs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1098,6 +1101,9 @@ pub mod inputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1590,9 +1596,9 @@ pub mod outputs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1611,6 +1617,9 @@ pub mod outputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1744,9 +1753,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1765,6 +1774,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2209,9 +2221,9 @@ pub mod streaming_jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2230,6 +2242,9 @@ pub mod streaming_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2291,9 +2306,9 @@ pub mod streaming_jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2312,6 +2327,9 @@ pub mod streaming_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3551,9 +3569,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3572,6 +3590,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3627,9 +3648,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3648,6 +3669,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3705,9 +3729,9 @@ pub mod clusters { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3726,6 +3750,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4045,9 +4072,9 @@ pub mod private_endpoints { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4066,6 +4093,9 @@ pub mod private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/streamanalytics/src/package_pure_2016_03/models.rs b/services/mgmt/streamanalytics/src/package_pure_2016_03/models.rs index 036ad6fb6b..b3d81b5df8 100644 --- a/services/mgmt/streamanalytics/src/package_pure_2016_03/models.rs +++ b/services/mgmt/streamanalytics/src/package_pure_2016_03/models.rs @@ -589,7 +589,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -859,8 +859,8 @@ pub struct FunctionListResult { pub next_link: Option, } impl azure_core::Continuable for FunctionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionListResult { @@ -932,8 +932,8 @@ pub struct InputListResult { pub next_link: Option, } impl azure_core::Continuable for InputListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InputListResult { @@ -1206,8 +1206,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1289,8 +1289,8 @@ pub struct OutputListResult { pub next_link: Option, } impl azure_core::Continuable for OutputListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutputListResult { @@ -1738,8 +1738,8 @@ pub struct StreamingJobListResult { pub next_link: Option, } impl azure_core::Continuable for StreamingJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingJobListResult { diff --git a/services/mgmt/streamanalytics/src/package_pure_2016_03/operations.rs b/services/mgmt/streamanalytics/src/package_pure_2016_03/operations.rs index 829b38175d..f8ed6c774e 100644 --- a/services/mgmt/streamanalytics/src/package_pure_2016_03/operations.rs +++ b/services/mgmt/streamanalytics/src/package_pure_2016_03/operations.rs @@ -121,9 +121,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -142,6 +142,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -572,9 +575,9 @@ pub mod streaming_jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -593,6 +596,9 @@ pub mod streaming_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -654,9 +660,9 @@ pub mod streaming_jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -675,6 +681,9 @@ pub mod streaming_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1216,9 +1225,9 @@ pub mod inputs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1237,6 +1246,9 @@ pub mod inputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1986,9 +1998,9 @@ pub mod outputs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2007,6 +2019,9 @@ pub mod outputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2515,9 +2530,9 @@ pub mod functions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2536,6 +2551,9 @@ pub mod functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/streamanalytics/src/package_pure_2017_04_preview/models.rs b/services/mgmt/streamanalytics/src/package_pure_2017_04_preview/models.rs index 33f47293d5..8df9ecfd48 100644 --- a/services/mgmt/streamanalytics/src/package_pure_2017_04_preview/models.rs +++ b/services/mgmt/streamanalytics/src/package_pure_2017_04_preview/models.rs @@ -1121,7 +1121,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1463,8 +1463,8 @@ pub struct FunctionListResult { pub next_link: Option, } impl azure_core::Continuable for FunctionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionListResult { @@ -1557,8 +1557,8 @@ pub struct InputListResult { pub next_link: Option, } impl azure_core::Continuable for InputListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InputListResult { @@ -1853,8 +1853,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1936,8 +1936,8 @@ pub struct OutputListResult { pub next_link: Option, } impl azure_core::Continuable for OutputListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutputListResult { @@ -2657,8 +2657,8 @@ pub struct StreamingJobListResult { pub next_link: Option, } impl azure_core::Continuable for StreamingJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingJobListResult { diff --git a/services/mgmt/streamanalytics/src/package_pure_2017_04_preview/operations.rs b/services/mgmt/streamanalytics/src/package_pure_2017_04_preview/operations.rs index 1778e94ab5..89bcb78d5b 100644 --- a/services/mgmt/streamanalytics/src/package_pure_2017_04_preview/operations.rs +++ b/services/mgmt/streamanalytics/src/package_pure_2017_04_preview/operations.rs @@ -496,9 +496,9 @@ pub mod functions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -517,6 +517,9 @@ pub mod functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1071,9 +1074,9 @@ pub mod inputs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1092,6 +1095,9 @@ pub mod inputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1584,9 +1590,9 @@ pub mod outputs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1605,6 +1611,9 @@ pub mod outputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2108,9 +2117,9 @@ pub mod streaming_jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2129,6 +2138,9 @@ pub mod streaming_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2190,9 +2202,9 @@ pub mod streaming_jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2211,6 +2223,9 @@ pub mod streaming_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3047,9 +3062,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3068,6 +3083,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/streamanalytics/src/package_pure_2020_03/models.rs b/services/mgmt/streamanalytics/src/package_pure_2020_03/models.rs index 1578c66c89..860d478726 100644 --- a/services/mgmt/streamanalytics/src/package_pure_2020_03/models.rs +++ b/services/mgmt/streamanalytics/src/package_pure_2020_03/models.rs @@ -675,8 +675,8 @@ pub struct ClusterJobListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterJobListResult { @@ -695,8 +695,8 @@ pub struct ClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -1062,7 +1062,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1387,8 +1387,8 @@ pub struct FunctionListResult { pub next_link: Option, } impl azure_core::Continuable for FunctionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionListResult { @@ -1484,8 +1484,8 @@ pub struct InputListResult { pub next_link: Option, } impl azure_core::Continuable for InputListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InputListResult { @@ -1836,8 +1836,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1919,8 +1919,8 @@ pub struct OutputListResult { pub next_link: Option, } impl azure_core::Continuable for OutputListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutputListResult { @@ -2090,8 +2090,8 @@ pub struct PrivateEndpointListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointListResult { @@ -2544,8 +2544,8 @@ pub struct StreamingJobListResult { pub next_link: Option, } impl azure_core::Continuable for StreamingJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StreamingJobListResult { diff --git a/services/mgmt/streamanalytics/src/package_pure_2020_03/operations.rs b/services/mgmt/streamanalytics/src/package_pure_2020_03/operations.rs index d201d09a3b..4258e57601 100644 --- a/services/mgmt/streamanalytics/src/package_pure_2020_03/operations.rs +++ b/services/mgmt/streamanalytics/src/package_pure_2020_03/operations.rs @@ -127,9 +127,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -148,6 +148,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -592,9 +595,9 @@ pub mod streaming_jobs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -613,6 +616,9 @@ pub mod streaming_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -674,9 +680,9 @@ pub mod streaming_jobs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -695,6 +701,9 @@ pub mod streaming_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1295,9 +1304,9 @@ pub mod inputs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1316,6 +1325,9 @@ pub mod inputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2065,9 +2077,9 @@ pub mod outputs { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2086,6 +2098,9 @@ pub mod outputs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2594,9 +2609,9 @@ pub mod functions { &this.job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2615,6 +2630,9 @@ pub mod functions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3217,9 +3235,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3238,6 +3256,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3293,9 +3314,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3314,6 +3335,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3371,9 +3395,9 @@ pub mod clusters { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3392,6 +3416,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3711,9 +3738,9 @@ pub mod private_endpoints { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3732,6 +3759,9 @@ pub mod private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/streamanalytics/src/package_pure_2020_03_preview/models.rs b/services/mgmt/streamanalytics/src/package_pure_2020_03_preview/models.rs index 27ee0cb291..e5a7fe900b 100644 --- a/services/mgmt/streamanalytics/src/package_pure_2020_03_preview/models.rs +++ b/services/mgmt/streamanalytics/src/package_pure_2020_03_preview/models.rs @@ -53,8 +53,8 @@ pub struct ClusterJobListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterJobListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterJobListResult { @@ -73,8 +73,8 @@ pub struct ClusterListResult { pub next_link: Option, } impl azure_core::Continuable for ClusterListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterListResult { @@ -208,7 +208,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -340,8 +340,8 @@ pub struct PrivateEndpointListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointListResult { diff --git a/services/mgmt/streamanalytics/src/package_pure_2020_03_preview/operations.rs b/services/mgmt/streamanalytics/src/package_pure_2020_03_preview/operations.rs index 820f030757..c06af65aac 100644 --- a/services/mgmt/streamanalytics/src/package_pure_2020_03_preview/operations.rs +++ b/services/mgmt/streamanalytics/src/package_pure_2020_03_preview/operations.rs @@ -450,9 +450,9 @@ pub mod clusters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -471,6 +471,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -526,9 +529,9 @@ pub mod clusters { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -547,6 +550,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -604,9 +610,9 @@ pub mod clusters { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -625,6 +631,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -944,9 +953,9 @@ pub mod private_endpoints { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -965,6 +974,9 @@ pub mod private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/subscription/src/package_2019_03_preview/models.rs b/services/mgmt/subscription/src/package_2019_03_preview/models.rs index 7bd1e83a36..4e56972a83 100644 --- a/services/mgmt/subscription/src/package_2019_03_preview/models.rs +++ b/services/mgmt/subscription/src/package_2019_03_preview/models.rs @@ -108,7 +108,7 @@ pub struct LocationListResult { pub value: Vec, } impl azure_core::Continuable for LocationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -306,8 +306,8 @@ pub struct SubscriptionListResult { pub next_link: Option, } impl azure_core::Continuable for SubscriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionListResult { @@ -411,11 +411,11 @@ pub struct TenantListResult { pub next_link: String, } impl azure_core::Continuable for TenantListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } diff --git a/services/mgmt/subscription/src/package_2019_03_preview/operations.rs b/services/mgmt/subscription/src/package_2019_03_preview/operations.rs index e416a87840..ea63baf61d 100644 --- a/services/mgmt/subscription/src/package_2019_03_preview/operations.rs +++ b/services/mgmt/subscription/src/package_2019_03_preview/operations.rs @@ -385,9 +385,9 @@ pub mod subscriptions { async move { let mut url = azure_core::Url::parse(&format!("{}/subscriptions", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -406,6 +406,9 @@ pub mod subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -722,9 +725,9 @@ pub mod tenants { async move { let mut url = azure_core::Url::parse(&format!("{}/tenants", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -743,6 +746,9 @@ pub mod tenants { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/subscription/src/package_2019_10_preview/models.rs b/services/mgmt/subscription/src/package_2019_10_preview/models.rs index 6b32a06900..bf36b308f1 100644 --- a/services/mgmt/subscription/src/package_2019_10_preview/models.rs +++ b/services/mgmt/subscription/src/package_2019_10_preview/models.rs @@ -102,7 +102,7 @@ pub struct LocationListResult { pub value: Vec, } impl azure_core::Continuable for LocationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -528,8 +528,8 @@ pub struct SubscriptionListResult { pub next_link: Option, } impl azure_core::Continuable for SubscriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionListResult { @@ -603,11 +603,11 @@ pub struct TenantListResult { pub next_link: String, } impl azure_core::Continuable for TenantListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } diff --git a/services/mgmt/subscription/src/package_2019_10_preview/operations.rs b/services/mgmt/subscription/src/package_2019_10_preview/operations.rs index 6867add04c..2e4f1ab2dc 100644 --- a/services/mgmt/subscription/src/package_2019_10_preview/operations.rs +++ b/services/mgmt/subscription/src/package_2019_10_preview/operations.rs @@ -218,9 +218,9 @@ pub mod subscriptions { async move { let mut url = azure_core::Url::parse(&format!("{}/subscriptions", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -239,6 +239,9 @@ pub mod subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -296,9 +299,9 @@ pub mod tenants { async move { let mut url = azure_core::Url::parse(&format!("{}/tenants", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -317,6 +320,9 @@ pub mod tenants { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/subscription/src/package_2020_09/models.rs b/services/mgmt/subscription/src/package_2020_09/models.rs index 46659dfedf..a839e756fa 100644 --- a/services/mgmt/subscription/src/package_2020_09/models.rs +++ b/services/mgmt/subscription/src/package_2020_09/models.rs @@ -96,7 +96,7 @@ pub struct LocationListResult { pub value: Vec, } impl azure_core::Continuable for LocationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -386,8 +386,8 @@ pub struct SubscriptionListResult { pub next_link: Option, } impl azure_core::Continuable for SubscriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionListResult { @@ -461,11 +461,11 @@ pub struct TenantListResult { pub next_link: String, } impl azure_core::Continuable for TenantListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } diff --git a/services/mgmt/subscription/src/package_2020_09/operations.rs b/services/mgmt/subscription/src/package_2020_09/operations.rs index e9f68bbb68..971fab75bb 100644 --- a/services/mgmt/subscription/src/package_2020_09/operations.rs +++ b/services/mgmt/subscription/src/package_2020_09/operations.rs @@ -218,9 +218,9 @@ pub mod subscriptions { async move { let mut url = azure_core::Url::parse(&format!("{}/subscriptions", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -239,6 +239,9 @@ pub mod subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -296,9 +299,9 @@ pub mod tenants { async move { let mut url = azure_core::Url::parse(&format!("{}/tenants", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -317,6 +320,9 @@ pub mod tenants { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/subscription/src/package_2021_10/models.rs b/services/mgmt/subscription/src/package_2021_10/models.rs index 3c7a94f7d4..03249b3730 100644 --- a/services/mgmt/subscription/src/package_2021_10/models.rs +++ b/services/mgmt/subscription/src/package_2021_10/models.rs @@ -197,7 +197,7 @@ pub struct ErrorResponseBody { pub message: Option, } impl azure_core::Continuable for ErrorResponseBody { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -217,8 +217,8 @@ pub struct GetTenantPolicyListResponse { pub next_link: Option, } impl azure_core::Continuable for GetTenantPolicyListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GetTenantPolicyListResponse { @@ -285,7 +285,7 @@ pub struct LocationListResult { pub value: Vec, } impl azure_core::Continuable for LocationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -347,8 +347,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -637,8 +637,8 @@ pub struct SubscriptionListResult { pub next_link: Option, } impl azure_core::Continuable for SubscriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SubscriptionListResult { @@ -712,11 +712,11 @@ pub struct TenantListResult { pub next_link: String, } impl azure_core::Continuable for TenantListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_link.is_empty() { None } else { - Some(self.next_link.clone()) + Some(azure_core::prelude::Continuation::from(self.next_link.clone())) } } } diff --git a/services/mgmt/subscription/src/package_2021_10/operations.rs b/services/mgmt/subscription/src/package_2021_10/operations.rs index 7d2169b1d0..c7f1fa8b2a 100644 --- a/services/mgmt/subscription/src/package_2021_10/operations.rs +++ b/services/mgmt/subscription/src/package_2021_10/operations.rs @@ -224,9 +224,9 @@ pub mod subscriptions { async move { let mut url = azure_core::Url::parse(&format!("{}/subscriptions", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -245,6 +245,9 @@ pub mod subscriptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -302,9 +305,9 @@ pub mod tenants { async move { let mut url = azure_core::Url::parse(&format!("{}/tenants", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -323,6 +326,9 @@ pub mod tenants { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -666,9 +672,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Subscription/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -687,6 +693,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1079,9 +1088,9 @@ pub mod subscription_policy { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Subscription/policies", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1100,6 +1109,9 @@ pub mod subscription_policy { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/support/src/package_2019_05_preview/models.rs b/services/mgmt/support/src/package_2019_05_preview/models.rs index a87b601671..d8dbcb6113 100644 --- a/services/mgmt/support/src/package_2019_05_preview/models.rs +++ b/services/mgmt/support/src/package_2019_05_preview/models.rs @@ -192,8 +192,8 @@ pub struct CommunicationsListResult { pub next_link: Option, } impl azure_core::Continuable for CommunicationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommunicationsListResult { @@ -304,7 +304,7 @@ pub struct ExceptionResponse { pub error: Option, } impl azure_core::Continuable for ExceptionResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -360,7 +360,7 @@ pub struct OperationsListResult { pub value: Vec, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -410,7 +410,7 @@ pub struct ProblemClassificationsListResult { pub value: Vec, } impl azure_core::Continuable for ProblemClassificationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -550,7 +550,7 @@ pub struct ServicesListResult { pub value: Vec, } impl azure_core::Continuable for ServicesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -746,8 +746,8 @@ pub struct SupportTicketsListResult { pub next_link: Option, } impl azure_core::Continuable for SupportTicketsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SupportTicketsListResult { diff --git a/services/mgmt/support/src/package_2019_05_preview/operations.rs b/services/mgmt/support/src/package_2019_05_preview/operations.rs index d25b366696..60a4f11700 100644 --- a/services/mgmt/support/src/package_2019_05_preview/operations.rs +++ b/services/mgmt/support/src/package_2019_05_preview/operations.rs @@ -504,9 +504,9 @@ pub mod support_tickets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -525,6 +525,9 @@ pub mod support_tickets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -864,9 +867,9 @@ pub mod communications { &this.support_ticket_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -885,6 +888,9 @@ pub mod communications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/support/src/package_2020_04/models.rs b/services/mgmt/support/src/package_2020_04/models.rs index 504d32c71f..6ec60b1830 100644 --- a/services/mgmt/support/src/package_2020_04/models.rs +++ b/services/mgmt/support/src/package_2020_04/models.rs @@ -192,8 +192,8 @@ pub struct CommunicationsListResult { pub next_link: Option, } impl azure_core::Continuable for CommunicationsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CommunicationsListResult { @@ -304,7 +304,7 @@ pub struct ExceptionResponse { pub error: Option, } impl azure_core::Continuable for ExceptionResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -360,7 +360,7 @@ pub struct OperationsListResult { pub value: Vec, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -410,7 +410,7 @@ pub struct ProblemClassificationsListResult { pub value: Vec, } impl azure_core::Continuable for ProblemClassificationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -553,7 +553,7 @@ pub struct ServicesListResult { pub value: Vec, } impl azure_core::Continuable for ServicesListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -748,8 +748,8 @@ pub struct SupportTicketsListResult { pub next_link: Option, } impl azure_core::Continuable for SupportTicketsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SupportTicketsListResult { diff --git a/services/mgmt/support/src/package_2020_04/operations.rs b/services/mgmt/support/src/package_2020_04/operations.rs index 961563c164..322fcbf4f1 100644 --- a/services/mgmt/support/src/package_2020_04/operations.rs +++ b/services/mgmt/support/src/package_2020_04/operations.rs @@ -504,9 +504,9 @@ pub mod support_tickets { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -525,6 +525,9 @@ pub mod support_tickets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -864,9 +867,9 @@ pub mod communications { &this.support_ticket_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -885,6 +888,9 @@ pub mod communications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/support/src/package_preview_2021_06/models.rs b/services/mgmt/support/src/package_preview_2021_06/models.rs index f9c3d2c794..fb3281837d 100644 --- a/services/mgmt/support/src/package_preview_2021_06/models.rs +++ b/services/mgmt/support/src/package_preview_2021_06/models.rs @@ -12,7 +12,7 @@ pub struct ExceptionResponse { pub error: Option, } impl azure_core::Continuable for ExceptionResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -104,7 +104,7 @@ pub struct OperationsListResult { pub value: Vec, } impl azure_core::Continuable for OperationsListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/synapse/src/package_composite_v1/models.rs b/services/mgmt/synapse/src/package_composite_v1/models.rs index 74a080c0dc..d32399fded 100644 --- a/services/mgmt/synapse/src/package_composite_v1/models.rs +++ b/services/mgmt/synapse/src/package_composite_v1/models.rs @@ -128,8 +128,8 @@ pub struct AzureAdOnlyAuthenticationListResult { pub next_link: Option, } impl azure_core::Continuable for AzureAdOnlyAuthenticationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureAdOnlyAuthenticationListResult { @@ -255,8 +255,8 @@ pub struct BigDataPoolResourceInfoListResult { pub value: Vec, } impl azure_core::Continuable for BigDataPoolResourceInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BigDataPoolResourceInfoListResult { @@ -673,7 +673,7 @@ pub struct DataMaskingRuleListResult { pub value: Vec, } impl azure_core::Continuable for DataMaskingRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -820,8 +820,8 @@ pub struct DedicatedSqLminimalTlsSettingsListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedSqLminimalTlsSettingsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedSqLminimalTlsSettingsListResult { @@ -917,8 +917,8 @@ pub struct EncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionProtectorListResult { @@ -1133,7 +1133,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1167,8 +1167,8 @@ pub struct ExtendedServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedServerBlobAuditingPolicyListResult { @@ -1263,8 +1263,8 @@ pub struct ExtendedSqlPoolBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedSqlPoolBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedSqlPoolBlobAuditingPolicyListResult { @@ -1362,7 +1362,7 @@ pub struct GeoBackupPolicyListResult { pub value: Vec, } impl azure_core::Continuable for GeoBackupPolicyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1633,8 +1633,8 @@ pub struct IntegrationRuntimeListResponse { pub next_link: Option, } impl azure_core::Continuable for IntegrationRuntimeListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationRuntimeListResponse { @@ -2168,8 +2168,8 @@ pub struct IpFirewallRuleInfoListResult { pub value: Vec, } impl azure_core::Continuable for IpFirewallRuleInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IpFirewallRuleInfoListResult { @@ -2281,8 +2281,8 @@ pub struct KeyInfoListResult { pub value: Vec, } impl azure_core::Continuable for KeyInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyInfoListResult { @@ -2345,8 +2345,8 @@ pub struct LibraryListResponse { pub next_link: Option, } impl azure_core::Continuable for LibraryListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LibraryListResponse { @@ -2486,8 +2486,8 @@ pub struct ListSqlPoolSecurityAlertPolicies { pub next_link: Option, } impl azure_core::Continuable for ListSqlPoolSecurityAlertPolicies { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListSqlPoolSecurityAlertPolicies { @@ -3237,8 +3237,8 @@ pub struct PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse { @@ -3257,8 +3257,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -3312,8 +3312,8 @@ pub struct PrivateLinkHubInfoListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkHubInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkHubInfoListResult { @@ -3373,8 +3373,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -3584,8 +3584,8 @@ pub struct RecoverableSqlPoolListResult { pub next_link: Option, } impl azure_core::Continuable for RecoverableSqlPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoverableSqlPoolListResult { @@ -3669,8 +3669,8 @@ pub struct ReplicationLinkListResult { pub next_link: Option, } impl azure_core::Continuable for ReplicationLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationLinkListResult { @@ -3836,7 +3836,7 @@ pub struct RestorableDroppedSqlPoolListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDroppedSqlPoolListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3906,8 +3906,8 @@ pub struct RestorePointListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorePointListResult { @@ -4364,8 +4364,8 @@ pub struct SensitivityLabelListResult { pub next_link: Option, } impl azure_core::Continuable for SensitivityLabelListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SensitivityLabelListResult { @@ -4504,8 +4504,8 @@ pub struct ServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBlobAuditingPolicyListResult { @@ -4596,8 +4596,8 @@ pub struct ServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerSecurityAlertPolicyListResult { @@ -4696,8 +4696,8 @@ pub struct ServerUsageListResult { pub next_link: Option, } impl azure_core::Continuable for ServerUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerUsageListResult { @@ -4730,8 +4730,8 @@ pub struct ServerVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ServerVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerVulnerabilityAssessmentListResult { @@ -4887,8 +4887,8 @@ pub struct SparkConfigurationListResponse { pub next_link: Option, } impl azure_core::Continuable for SparkConfigurationListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SparkConfigurationListResponse { @@ -4961,8 +4961,8 @@ pub struct SqlPoolBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolBlobAuditingPolicyListResult { @@ -5031,8 +5031,8 @@ pub struct SqlPoolBlobAuditingPolicySqlPoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolBlobAuditingPolicySqlPoolOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolBlobAuditingPolicySqlPoolOperationListResult { @@ -5065,8 +5065,8 @@ pub struct SqlPoolColumnListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolColumnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolColumnListResult { @@ -5288,8 +5288,8 @@ pub struct SqlPoolInfoListResult { pub value: Vec, } impl azure_core::Continuable for SqlPoolInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolInfoListResult { @@ -5583,8 +5583,8 @@ pub struct SqlPoolSchemaListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolSchemaListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolSchemaListResult { @@ -5628,8 +5628,8 @@ pub struct SqlPoolTableListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolTableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolTableListResult { @@ -5677,8 +5677,8 @@ pub struct SqlPoolUsageListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolUsageListResult { @@ -5711,8 +5711,8 @@ pub struct SqlPoolVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolVulnerabilityAssessmentListResult { @@ -6239,8 +6239,8 @@ pub struct TransparentDataEncryptionListResult { pub next_link: Option, } impl azure_core::Continuable for TransparentDataEncryptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransparentDataEncryptionListResult { @@ -6389,8 +6389,8 @@ pub struct VulnerabilityAssessmentScanRecordListResult { pub next_link: Option, } impl azure_core::Continuable for VulnerabilityAssessmentScanRecordListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VulnerabilityAssessmentScanRecordListResult { @@ -6537,8 +6537,8 @@ pub struct WorkloadClassifierListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadClassifierListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadClassifierListResult { @@ -6605,8 +6605,8 @@ pub struct WorkloadGroupListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadGroupListResult { @@ -6694,8 +6694,8 @@ pub struct WorkspaceInfoListResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceInfoListResult { diff --git a/services/mgmt/synapse/src/package_composite_v1/operations.rs b/services/mgmt/synapse/src/package_composite_v1/operations.rs index 57b6bf6860..8aa143e875 100644 --- a/services/mgmt/synapse/src/package_composite_v1/operations.rs +++ b/services/mgmt/synapse/src/package_composite_v1/operations.rs @@ -472,9 +472,9 @@ pub mod azure_ad_only_authentications { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -493,6 +493,9 @@ pub mod azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -888,9 +891,9 @@ pub mod ip_firewall_rules { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -909,6 +912,9 @@ pub mod ip_firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1276,9 +1282,9 @@ pub mod keys { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1297,6 +1303,9 @@ pub mod keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1771,9 +1780,9 @@ pub mod private_endpoint_connections { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1792,6 +1801,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1885,9 +1897,9 @@ pub mod private_link_resources { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1906,6 +1918,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2053,9 +2068,9 @@ pub mod private_link_hub_private_link_resources { &this.private_link_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2074,6 +2089,9 @@ pub mod private_link_hub_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2262,9 +2280,9 @@ pub mod private_link_hubs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2283,6 +2301,9 @@ pub mod private_link_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2570,9 +2591,9 @@ pub mod private_link_hubs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2591,6 +2612,9 @@ pub mod private_link_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2676,9 +2700,9 @@ pub mod private_endpoint_connections_private_link_hub { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/privateLinkHubs/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_link_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2697,6 +2721,9 @@ pub mod private_endpoint_connections_private_link_hub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3183,9 +3210,9 @@ pub mod sql_pools { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3204,6 +3231,9 @@ pub mod sql_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4020,9 +4050,9 @@ pub mod sql_pool_restore_points { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4041,6 +4071,9 @@ pub mod sql_pool_restore_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4321,9 +4354,9 @@ pub mod sql_pool_replication_links { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4342,6 +4375,9 @@ pub mod sql_pool_replication_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4831,9 +4867,9 @@ pub mod sql_pool_transparent_data_encryptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/transparentDataEncryption" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4852,6 +4888,9 @@ pub mod sql_pool_transparent_data_encryptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5077,9 +5116,9 @@ pub mod sql_pool_blob_auditing_policies { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5098,6 +5137,9 @@ pub mod sql_pool_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5179,9 +5221,9 @@ pub mod sql_pool_operations { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5200,6 +5242,9 @@ pub mod sql_pool_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5282,9 +5327,9 @@ pub mod sql_pool_usages { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5303,6 +5348,9 @@ pub mod sql_pool_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5536,9 +5584,9 @@ pub mod sql_pool_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5557,6 +5605,9 @@ pub mod sql_pool_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5672,9 +5723,9 @@ pub mod sql_pool_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5693,6 +5744,9 @@ pub mod sql_pool_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6137,9 +6191,9 @@ pub mod sql_pool_schemas { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6158,6 +6212,9 @@ pub mod sql_pool_schemas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6327,9 +6384,9 @@ pub mod sql_pool_tables { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6348,6 +6405,9 @@ pub mod sql_pool_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6486,9 +6546,9 @@ pub mod sql_pool_table_columns { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/schemas/{}/tables/{}/columns" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name , & this . schema_name , & this . table_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6507,6 +6567,9 @@ pub mod sql_pool_table_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6712,9 +6775,9 @@ pub mod sql_pool_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6733,6 +6796,9 @@ pub mod sql_pool_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7023,9 +7089,9 @@ pub mod sql_pool_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7044,6 +7110,9 @@ pub mod sql_pool_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7316,9 +7385,9 @@ pub mod sql_pool_security_alert_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/securityAlertPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7337,6 +7406,9 @@ pub mod sql_pool_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7884,9 +7956,9 @@ pub mod extended_sql_pool_blob_auditing_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/extendedAuditingSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7905,6 +7977,9 @@ pub mod extended_sql_pool_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8666,9 +8741,9 @@ pub mod sql_pool_workload_group { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8687,6 +8762,9 @@ pub mod sql_pool_workload_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8991,9 +9069,9 @@ pub mod sql_pool_workload_classifier { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/workloadGroups/{}/workloadClassifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name , & this . workload_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9012,6 +9090,9 @@ pub mod sql_pool_workload_classifier { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9239,9 +9320,9 @@ pub mod workspace_managed_sql_server_blob_auditing_policies { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9260,6 +9341,9 @@ pub mod workspace_managed_sql_server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9487,9 +9571,9 @@ pub mod workspace_managed_sql_server_extended_blob_auditing_policies { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9508,6 +9592,9 @@ pub mod workspace_managed_sql_server_extended_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9735,9 +9822,9 @@ pub mod workspace_managed_sql_server_security_alert_policy { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9756,6 +9843,9 @@ pub mod workspace_managed_sql_server_security_alert_policy { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10057,9 +10147,9 @@ pub mod workspace_managed_sql_server_vulnerability_assessments { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10078,6 +10168,9 @@ pub mod workspace_managed_sql_server_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10321,9 +10414,9 @@ pub mod workspace_managed_sql_server_encryption_protector { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10342,6 +10435,9 @@ pub mod workspace_managed_sql_server_encryption_protector { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10469,9 +10565,9 @@ pub mod workspace_managed_sql_server_usages { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10490,6 +10586,9 @@ pub mod workspace_managed_sql_server_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10583,9 +10682,9 @@ pub mod workspace_managed_sql_server_recoverable_sql_pools { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10604,6 +10703,9 @@ pub mod workspace_managed_sql_server_recoverable_sql_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10865,9 +10967,9 @@ pub mod workspace_managed_sql_server_dedicated_sql_minimal_tls_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/dedicatedSQLminimalTlsSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10886,6 +10988,9 @@ pub mod workspace_managed_sql_server_dedicated_sql_minimal_tls_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11020,9 +11125,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11041,6 +11146,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11338,9 +11446,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11359,6 +11467,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12434,9 +12545,9 @@ pub mod big_data_pools { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12455,6 +12566,9 @@ pub mod big_data_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12608,9 +12722,9 @@ pub mod libraries { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12629,6 +12743,9 @@ pub mod libraries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13160,9 +13277,9 @@ pub mod integration_runtimes { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13181,6 +13298,9 @@ pub mod integration_runtimes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14445,9 +14565,9 @@ pub mod spark_configurations { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14466,6 +14586,9 @@ pub mod spark_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/synapse/src/package_composite_v2/models.rs b/services/mgmt/synapse/src/package_composite_v2/models.rs index 69b92fb165..51d6abfcc0 100644 --- a/services/mgmt/synapse/src/package_composite_v2/models.rs +++ b/services/mgmt/synapse/src/package_composite_v2/models.rs @@ -53,7 +53,7 @@ pub struct AttachedDatabaseConfigurationListResult { pub value: Vec, } impl azure_core::Continuable for AttachedDatabaseConfigurationListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -245,8 +245,8 @@ pub struct AzureAdOnlyAuthenticationListResult { pub next_link: Option, } impl azure_core::Continuable for AzureAdOnlyAuthenticationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureAdOnlyAuthenticationListResult { @@ -562,8 +562,8 @@ pub struct BigDataPoolResourceInfoListResult { pub value: Vec, } impl azure_core::Continuable for BigDataPoolResourceInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BigDataPoolResourceInfoListResult { @@ -917,7 +917,7 @@ pub struct ClusterPrincipalAssignmentListResult { pub value: Vec, } impl azure_core::Continuable for ClusterPrincipalAssignmentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1289,7 +1289,7 @@ pub struct DataConnectionListResult { pub value: Vec, } impl azure_core::Continuable for DataConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1443,7 +1443,7 @@ pub struct DataMaskingRuleListResult { pub value: Vec, } impl azure_core::Continuable for DataMaskingRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1659,7 +1659,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1716,7 +1716,7 @@ pub struct DatabasePrincipalAssignmentListResult { pub value: Vec, } impl azure_core::Continuable for DatabasePrincipalAssignmentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1893,8 +1893,8 @@ pub struct DedicatedSqLminimalTlsSettingsListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedSqLminimalTlsSettingsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedSqLminimalTlsSettingsListResult { @@ -1990,8 +1990,8 @@ pub struct EncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionProtectorListResult { @@ -2206,7 +2206,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2528,8 +2528,8 @@ pub struct ExtendedServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedServerBlobAuditingPolicyListResult { @@ -2624,8 +2624,8 @@ pub struct ExtendedSqlPoolBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedSqlPoolBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedSqlPoolBlobAuditingPolicyListResult { @@ -2721,7 +2721,7 @@ pub struct FollowerDatabaseListResult { pub value: Vec, } impl azure_core::Continuable for FollowerDatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2762,7 +2762,7 @@ pub struct GeoBackupPolicyListResult { pub value: Vec, } impl azure_core::Continuable for GeoBackupPolicyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3033,8 +3033,8 @@ pub struct IntegrationRuntimeListResponse { pub next_link: Option, } impl azure_core::Continuable for IntegrationRuntimeListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationRuntimeListResponse { @@ -3708,8 +3708,8 @@ pub struct IpFirewallRuleInfoListResult { pub value: Vec, } impl azure_core::Continuable for IpFirewallRuleInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IpFirewallRuleInfoListResult { @@ -3821,8 +3821,8 @@ pub struct KeyInfoListResult { pub value: Vec, } impl azure_core::Continuable for KeyInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyInfoListResult { @@ -4079,7 +4079,7 @@ pub struct LanguageExtensionsList { pub value: Vec, } impl azure_core::Continuable for LanguageExtensionsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4128,8 +4128,8 @@ pub struct LibraryListResponse { pub next_link: Option, } impl azure_core::Continuable for LibraryListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LibraryListResponse { @@ -4266,7 +4266,7 @@ pub struct ListResourceSkusResult { pub value: Vec, } impl azure_core::Continuable for ListResourceSkusResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4286,8 +4286,8 @@ pub struct ListSqlPoolSecurityAlertPolicies { pub next_link: Option, } impl azure_core::Continuable for ListSqlPoolSecurityAlertPolicies { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListSqlPoolSecurityAlertPolicies { @@ -4837,8 +4837,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -5114,8 +5114,8 @@ pub struct PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse { @@ -5134,8 +5134,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -5189,8 +5189,8 @@ pub struct PrivateLinkHubInfoListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkHubInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkHubInfoListResult { @@ -5250,8 +5250,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -5591,8 +5591,8 @@ pub struct RecoverableSqlPoolListResult { pub next_link: Option, } impl azure_core::Continuable for RecoverableSqlPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoverableSqlPoolListResult { @@ -5676,8 +5676,8 @@ pub struct ReplicationLinkListResult { pub next_link: Option, } impl azure_core::Continuable for ReplicationLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationLinkListResult { @@ -5890,7 +5890,7 @@ pub struct RestorableDroppedSqlPoolListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDroppedSqlPoolListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -5960,8 +5960,8 @@ pub struct RestorePointListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorePointListResult { @@ -6418,8 +6418,8 @@ pub struct SensitivityLabelListResult { pub next_link: Option, } impl azure_core::Continuable for SensitivityLabelListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SensitivityLabelListResult { @@ -6558,8 +6558,8 @@ pub struct ServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBlobAuditingPolicyListResult { @@ -6650,8 +6650,8 @@ pub struct ServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerSecurityAlertPolicyListResult { @@ -6750,8 +6750,8 @@ pub struct ServerUsageListResult { pub next_link: Option, } impl azure_core::Continuable for ServerUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerUsageListResult { @@ -6784,8 +6784,8 @@ pub struct ServerVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ServerVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerVulnerabilityAssessmentListResult { @@ -6872,7 +6872,7 @@ pub struct SkuDescriptionList { pub value: Vec, } impl azure_core::Continuable for SkuDescriptionList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -7002,8 +7002,8 @@ pub struct SparkConfigurationListResponse { pub next_link: Option, } impl azure_core::Continuable for SparkConfigurationListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SparkConfigurationListResponse { @@ -7076,8 +7076,8 @@ pub struct SqlPoolBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolBlobAuditingPolicyListResult { @@ -7146,8 +7146,8 @@ pub struct SqlPoolBlobAuditingPolicySqlPoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolBlobAuditingPolicySqlPoolOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolBlobAuditingPolicySqlPoolOperationListResult { @@ -7180,8 +7180,8 @@ pub struct SqlPoolColumnListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolColumnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolColumnListResult { @@ -7403,8 +7403,8 @@ pub struct SqlPoolInfoListResult { pub value: Vec, } impl azure_core::Continuable for SqlPoolInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolInfoListResult { @@ -7698,8 +7698,8 @@ pub struct SqlPoolSchemaListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolSchemaListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolSchemaListResult { @@ -7743,8 +7743,8 @@ pub struct SqlPoolTableListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolTableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolTableListResult { @@ -7792,8 +7792,8 @@ pub struct SqlPoolUsageListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolUsageListResult { @@ -7826,8 +7826,8 @@ pub struct SqlPoolVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolVulnerabilityAssessmentListResult { @@ -8381,8 +8381,8 @@ pub struct TransparentDataEncryptionListResult { pub next_link: Option, } impl azure_core::Continuable for TransparentDataEncryptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransparentDataEncryptionListResult { @@ -8531,8 +8531,8 @@ pub struct VulnerabilityAssessmentScanRecordListResult { pub next_link: Option, } impl azure_core::Continuable for VulnerabilityAssessmentScanRecordListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VulnerabilityAssessmentScanRecordListResult { @@ -8679,8 +8679,8 @@ pub struct WorkloadClassifierListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadClassifierListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadClassifierListResult { @@ -8747,8 +8747,8 @@ pub struct WorkloadGroupListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadGroupListResult { @@ -8836,8 +8836,8 @@ pub struct WorkspaceInfoListResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceInfoListResult { diff --git a/services/mgmt/synapse/src/package_composite_v2/operations.rs b/services/mgmt/synapse/src/package_composite_v2/operations.rs index a9218a68ae..7ea4e54a99 100644 --- a/services/mgmt/synapse/src/package_composite_v2/operations.rs +++ b/services/mgmt/synapse/src/package_composite_v2/operations.rs @@ -496,9 +496,9 @@ pub mod azure_ad_only_authentications { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -517,6 +517,9 @@ pub mod azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -912,9 +915,9 @@ pub mod ip_firewall_rules { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -933,6 +936,9 @@ pub mod ip_firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1300,9 +1306,9 @@ pub mod keys { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1321,6 +1327,9 @@ pub mod keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1795,9 +1804,9 @@ pub mod private_endpoint_connections { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1816,6 +1825,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1909,9 +1921,9 @@ pub mod private_link_resources { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1930,6 +1942,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2077,9 +2092,9 @@ pub mod private_link_hub_private_link_resources { &this.private_link_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2098,6 +2113,9 @@ pub mod private_link_hub_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2286,9 +2304,9 @@ pub mod private_link_hubs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2307,6 +2325,9 @@ pub mod private_link_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2594,9 +2615,9 @@ pub mod private_link_hubs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2615,6 +2636,9 @@ pub mod private_link_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2700,9 +2724,9 @@ pub mod private_endpoint_connections_private_link_hub { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/privateLinkHubs/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_link_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2721,6 +2745,9 @@ pub mod private_endpoint_connections_private_link_hub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3207,9 +3234,9 @@ pub mod sql_pools { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3228,6 +3255,9 @@ pub mod sql_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4044,9 +4074,9 @@ pub mod sql_pool_restore_points { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4065,6 +4095,9 @@ pub mod sql_pool_restore_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4345,9 +4378,9 @@ pub mod sql_pool_replication_links { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4366,6 +4399,9 @@ pub mod sql_pool_replication_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4855,9 +4891,9 @@ pub mod sql_pool_transparent_data_encryptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/transparentDataEncryption" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4876,6 +4912,9 @@ pub mod sql_pool_transparent_data_encryptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5101,9 +5140,9 @@ pub mod sql_pool_blob_auditing_policies { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5122,6 +5161,9 @@ pub mod sql_pool_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5203,9 +5245,9 @@ pub mod sql_pool_operations { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5224,6 +5266,9 @@ pub mod sql_pool_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5306,9 +5351,9 @@ pub mod sql_pool_usages { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5327,6 +5372,9 @@ pub mod sql_pool_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5560,9 +5608,9 @@ pub mod sql_pool_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5581,6 +5629,9 @@ pub mod sql_pool_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5696,9 +5747,9 @@ pub mod sql_pool_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5717,6 +5768,9 @@ pub mod sql_pool_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6161,9 +6215,9 @@ pub mod sql_pool_schemas { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6182,6 +6236,9 @@ pub mod sql_pool_schemas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6351,9 +6408,9 @@ pub mod sql_pool_tables { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6372,6 +6429,9 @@ pub mod sql_pool_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6510,9 +6570,9 @@ pub mod sql_pool_table_columns { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/schemas/{}/tables/{}/columns" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name , & this . schema_name , & this . table_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6531,6 +6591,9 @@ pub mod sql_pool_table_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6736,9 +6799,9 @@ pub mod sql_pool_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6757,6 +6820,9 @@ pub mod sql_pool_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7047,9 +7113,9 @@ pub mod sql_pool_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7068,6 +7134,9 @@ pub mod sql_pool_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7340,9 +7409,9 @@ pub mod sql_pool_security_alert_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/securityAlertPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7361,6 +7430,9 @@ pub mod sql_pool_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7908,9 +7980,9 @@ pub mod extended_sql_pool_blob_auditing_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/extendedAuditingSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7929,6 +8001,9 @@ pub mod extended_sql_pool_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8690,9 +8765,9 @@ pub mod sql_pool_workload_group { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8711,6 +8786,9 @@ pub mod sql_pool_workload_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9015,9 +9093,9 @@ pub mod sql_pool_workload_classifier { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/workloadGroups/{}/workloadClassifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name , & this . workload_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9036,6 +9114,9 @@ pub mod sql_pool_workload_classifier { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9263,9 +9344,9 @@ pub mod workspace_managed_sql_server_blob_auditing_policies { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9284,6 +9365,9 @@ pub mod workspace_managed_sql_server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9511,9 +9595,9 @@ pub mod workspace_managed_sql_server_extended_blob_auditing_policies { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9532,6 +9616,9 @@ pub mod workspace_managed_sql_server_extended_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9759,9 +9846,9 @@ pub mod workspace_managed_sql_server_security_alert_policy { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9780,6 +9867,9 @@ pub mod workspace_managed_sql_server_security_alert_policy { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10081,9 +10171,9 @@ pub mod workspace_managed_sql_server_vulnerability_assessments { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10102,6 +10192,9 @@ pub mod workspace_managed_sql_server_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10345,9 +10438,9 @@ pub mod workspace_managed_sql_server_encryption_protector { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10366,6 +10459,9 @@ pub mod workspace_managed_sql_server_encryption_protector { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10493,9 +10589,9 @@ pub mod workspace_managed_sql_server_usages { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10514,6 +10610,9 @@ pub mod workspace_managed_sql_server_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10607,9 +10706,9 @@ pub mod workspace_managed_sql_server_recoverable_sql_pools { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10628,6 +10727,9 @@ pub mod workspace_managed_sql_server_recoverable_sql_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10889,9 +10991,9 @@ pub mod workspace_managed_sql_server_dedicated_sql_minimal_tls_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/dedicatedSQLminimalTlsSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10910,6 +11012,9 @@ pub mod workspace_managed_sql_server_dedicated_sql_minimal_tls_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11044,9 +11149,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11065,6 +11170,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11362,9 +11470,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11383,6 +11491,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12458,9 +12569,9 @@ pub mod big_data_pools { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12479,6 +12590,9 @@ pub mod big_data_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12632,9 +12746,9 @@ pub mod libraries { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12653,6 +12767,9 @@ pub mod libraries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13184,9 +13301,9 @@ pub mod integration_runtimes { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13205,6 +13322,9 @@ pub mod integration_runtimes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14469,9 +14589,9 @@ pub mod spark_configurations { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14490,6 +14610,9 @@ pub mod spark_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14548,9 +14671,9 @@ pub mod kusto_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Synapse/kustooperations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14569,6 +14692,9 @@ pub mod kusto_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/synapse/src/package_kusto_pool_2021_04_preview/models.rs b/services/mgmt/synapse/src/package_kusto_pool_2021_04_preview/models.rs index 6c430ec8ef..79df3b4502 100644 --- a/services/mgmt/synapse/src/package_kusto_pool_2021_04_preview/models.rs +++ b/services/mgmt/synapse/src/package_kusto_pool_2021_04_preview/models.rs @@ -301,7 +301,7 @@ pub struct ClusterPrincipalAssignmentListResult { pub value: Vec, } impl azure_core::Continuable for ClusterPrincipalAssignmentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -541,7 +541,7 @@ pub struct DataConnectionListResult { pub value: Vec, } impl azure_core::Continuable for DataConnectionListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -622,7 +622,7 @@ pub struct DatabaseListResult { pub value: Vec, } impl azure_core::Continuable for DatabaseListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -656,7 +656,7 @@ pub struct DatabasePrincipalAssignmentListResult { pub value: Vec, } impl azure_core::Continuable for DatabasePrincipalAssignmentListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -852,7 +852,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1534,8 +1534,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/synapse/src/package_kusto_pool_2021_04_preview/operations.rs b/services/mgmt/synapse/src/package_kusto_pool_2021_04_preview/operations.rs index 429aaaccc6..7582742472 100644 --- a/services/mgmt/synapse/src/package_kusto_pool_2021_04_preview/operations.rs +++ b/services/mgmt/synapse/src/package_kusto_pool_2021_04_preview/operations.rs @@ -116,9 +116,9 @@ pub mod kusto_operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Synapse/kustooperations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod kusto_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/synapse/src/package_preview_2021_06/models.rs b/services/mgmt/synapse/src/package_preview_2021_06/models.rs index 7e96058760..367b17f237 100644 --- a/services/mgmt/synapse/src/package_preview_2021_06/models.rs +++ b/services/mgmt/synapse/src/package_preview_2021_06/models.rs @@ -128,8 +128,8 @@ pub struct AzureAdOnlyAuthenticationListResult { pub next_link: Option, } impl azure_core::Continuable for AzureAdOnlyAuthenticationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureAdOnlyAuthenticationListResult { @@ -255,8 +255,8 @@ pub struct BigDataPoolResourceInfoListResult { pub value: Vec, } impl azure_core::Continuable for BigDataPoolResourceInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BigDataPoolResourceInfoListResult { @@ -673,7 +673,7 @@ pub struct DataMaskingRuleListResult { pub value: Vec, } impl azure_core::Continuable for DataMaskingRuleListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -820,8 +820,8 @@ pub struct DedicatedSqLminimalTlsSettingsListResult { pub next_link: Option, } impl azure_core::Continuable for DedicatedSqLminimalTlsSettingsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedSqLminimalTlsSettingsListResult { @@ -905,8 +905,8 @@ pub struct EncryptionProtectorListResult { pub next_link: Option, } impl azure_core::Continuable for EncryptionProtectorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EncryptionProtectorListResult { @@ -1121,7 +1121,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1155,8 +1155,8 @@ pub struct ExtendedServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedServerBlobAuditingPolicyListResult { @@ -1247,8 +1247,8 @@ pub struct ExtendedSqlPoolBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ExtendedSqlPoolBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExtendedSqlPoolBlobAuditingPolicyListResult { @@ -1346,7 +1346,7 @@ pub struct GeoBackupPolicyListResult { pub value: Vec, } impl azure_core::Continuable for GeoBackupPolicyListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1617,8 +1617,8 @@ pub struct IntegrationRuntimeListResponse { pub next_link: Option, } impl azure_core::Continuable for IntegrationRuntimeListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IntegrationRuntimeListResponse { @@ -2152,8 +2152,8 @@ pub struct IpFirewallRuleInfoListResult { pub value: Vec, } impl azure_core::Continuable for IpFirewallRuleInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IpFirewallRuleInfoListResult { @@ -2265,8 +2265,8 @@ pub struct KeyInfoListResult { pub value: Vec, } impl azure_core::Continuable for KeyInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyInfoListResult { @@ -2329,8 +2329,8 @@ pub struct LibraryListResponse { pub next_link: Option, } impl azure_core::Continuable for LibraryListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LibraryListResponse { @@ -2470,8 +2470,8 @@ pub struct ListSqlPoolSecurityAlertPolicies { pub next_link: Option, } impl azure_core::Continuable for ListSqlPoolSecurityAlertPolicies { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ListSqlPoolSecurityAlertPolicies { @@ -3221,8 +3221,8 @@ pub struct PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse { @@ -3241,8 +3241,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -3296,8 +3296,8 @@ pub struct PrivateLinkHubInfoListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkHubInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkHubInfoListResult { @@ -3357,8 +3357,8 @@ pub struct PrivateLinkResourceListResult { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceListResult { @@ -3568,8 +3568,8 @@ pub struct RecoverableSqlPoolListResult { pub next_link: Option, } impl azure_core::Continuable for RecoverableSqlPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecoverableSqlPoolListResult { @@ -3653,8 +3653,8 @@ pub struct ReplicationLinkListResult { pub next_link: Option, } impl azure_core::Continuable for ReplicationLinkListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ReplicationLinkListResult { @@ -3820,7 +3820,7 @@ pub struct RestorableDroppedSqlPoolListResult { pub value: Vec, } impl azure_core::Continuable for RestorableDroppedSqlPoolListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3890,8 +3890,8 @@ pub struct RestorePointListResult { pub next_link: Option, } impl azure_core::Continuable for RestorePointListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RestorePointListResult { @@ -4348,8 +4348,8 @@ pub struct SensitivityLabelListResult { pub next_link: Option, } impl azure_core::Continuable for SensitivityLabelListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SensitivityLabelListResult { @@ -4488,8 +4488,8 @@ pub struct ServerBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerBlobAuditingPolicyListResult { @@ -4576,8 +4576,8 @@ pub struct ServerSecurityAlertPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for ServerSecurityAlertPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerSecurityAlertPolicyListResult { @@ -4676,8 +4676,8 @@ pub struct ServerUsageListResult { pub next_link: Option, } impl azure_core::Continuable for ServerUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerUsageListResult { @@ -4710,8 +4710,8 @@ pub struct ServerVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for ServerVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServerVulnerabilityAssessmentListResult { @@ -4867,8 +4867,8 @@ pub struct SparkConfigurationListResponse { pub next_link: Option, } impl azure_core::Continuable for SparkConfigurationListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SparkConfigurationListResponse { @@ -4941,8 +4941,8 @@ pub struct SqlPoolBlobAuditingPolicyListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolBlobAuditingPolicyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolBlobAuditingPolicyListResult { @@ -5011,8 +5011,8 @@ pub struct SqlPoolBlobAuditingPolicySqlPoolOperationListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolBlobAuditingPolicySqlPoolOperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolBlobAuditingPolicySqlPoolOperationListResult { @@ -5045,8 +5045,8 @@ pub struct SqlPoolColumnListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolColumnListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolColumnListResult { @@ -5268,8 +5268,8 @@ pub struct SqlPoolInfoListResult { pub value: Vec, } impl azure_core::Continuable for SqlPoolInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolInfoListResult { @@ -5558,8 +5558,8 @@ pub struct SqlPoolSchemaListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolSchemaListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolSchemaListResult { @@ -5603,8 +5603,8 @@ pub struct SqlPoolTableListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolTableListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolTableListResult { @@ -5652,8 +5652,8 @@ pub struct SqlPoolUsageListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolUsageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolUsageListResult { @@ -5686,8 +5686,8 @@ pub struct SqlPoolVulnerabilityAssessmentListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolVulnerabilityAssessmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolVulnerabilityAssessmentListResult { @@ -6214,8 +6214,8 @@ pub struct TransparentDataEncryptionListResult { pub next_link: Option, } impl azure_core::Continuable for TransparentDataEncryptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TransparentDataEncryptionListResult { @@ -6364,8 +6364,8 @@ pub struct VulnerabilityAssessmentScanRecordListResult { pub next_link: Option, } impl azure_core::Continuable for VulnerabilityAssessmentScanRecordListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VulnerabilityAssessmentScanRecordListResult { @@ -6512,8 +6512,8 @@ pub struct WorkloadClassifierListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadClassifierListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadClassifierListResult { @@ -6580,8 +6580,8 @@ pub struct WorkloadGroupListResult { pub next_link: Option, } impl azure_core::Continuable for WorkloadGroupListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadGroupListResult { @@ -6669,8 +6669,8 @@ pub struct WorkspaceInfoListResult { pub value: Vec, } impl azure_core::Continuable for WorkspaceInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkspaceInfoListResult { diff --git a/services/mgmt/synapse/src/package_preview_2021_06/operations.rs b/services/mgmt/synapse/src/package_preview_2021_06/operations.rs index 28414f9eb9..b9acf202bf 100644 --- a/services/mgmt/synapse/src/package_preview_2021_06/operations.rs +++ b/services/mgmt/synapse/src/package_preview_2021_06/operations.rs @@ -635,9 +635,9 @@ pub mod big_data_pools { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -656,6 +656,9 @@ pub mod big_data_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1051,9 +1054,9 @@ pub mod ip_firewall_rules { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1072,6 +1075,9 @@ pub mod ip_firewall_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1845,9 +1851,9 @@ pub mod integration_runtimes { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1866,6 +1872,9 @@ pub mod integration_runtimes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3100,9 +3109,9 @@ pub mod keys { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3121,6 +3130,9 @@ pub mod keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3443,9 +3455,9 @@ pub mod libraries { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3464,6 +3476,9 @@ pub mod libraries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3769,9 +3784,9 @@ pub mod private_endpoint_connections { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3790,6 +3805,9 @@ pub mod private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3883,9 +3901,9 @@ pub mod private_link_resources { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3904,6 +3922,9 @@ pub mod private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4051,9 +4072,9 @@ pub mod private_link_hub_private_link_resources { &this.private_link_hub_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4072,6 +4093,9 @@ pub mod private_link_hub_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4260,9 +4284,9 @@ pub mod private_link_hubs { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4281,6 +4305,9 @@ pub mod private_link_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4568,9 +4595,9 @@ pub mod private_link_hubs { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4589,6 +4616,9 @@ pub mod private_link_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4674,9 +4704,9 @@ pub mod private_endpoint_connections_private_link_hub { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/privateLinkHubs/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_link_hub_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4695,6 +4725,9 @@ pub mod private_endpoint_connections_private_link_hub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5181,9 +5214,9 @@ pub mod sql_pools { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5202,6 +5235,9 @@ pub mod sql_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6018,9 +6054,9 @@ pub mod sql_pool_restore_points { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6039,6 +6075,9 @@ pub mod sql_pool_restore_points { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6319,9 +6358,9 @@ pub mod sql_pool_replication_links { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6340,6 +6379,9 @@ pub mod sql_pool_replication_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6829,9 +6871,9 @@ pub mod sql_pool_transparent_data_encryptions { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/transparentDataEncryption" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6850,6 +6892,9 @@ pub mod sql_pool_transparent_data_encryptions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7075,9 +7120,9 @@ pub mod sql_pool_blob_auditing_policies { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7096,6 +7141,9 @@ pub mod sql_pool_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7177,9 +7225,9 @@ pub mod sql_pool_operations { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7198,6 +7246,9 @@ pub mod sql_pool_operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7280,9 +7331,9 @@ pub mod sql_pool_usages { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7301,6 +7352,9 @@ pub mod sql_pool_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7534,9 +7588,9 @@ pub mod sql_pool_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/currentSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7555,6 +7609,9 @@ pub mod sql_pool_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7670,9 +7727,9 @@ pub mod sql_pool_sensitivity_labels { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/recommendedSensitivityLabels" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7691,6 +7748,9 @@ pub mod sql_pool_sensitivity_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8135,9 +8195,9 @@ pub mod sql_pool_schemas { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8156,6 +8216,9 @@ pub mod sql_pool_schemas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8325,9 +8388,9 @@ pub mod sql_pool_tables { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8346,6 +8409,9 @@ pub mod sql_pool_tables { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8484,9 +8550,9 @@ pub mod sql_pool_table_columns { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/schemas/{}/tables/{}/columns" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name , & this . schema_name , & this . table_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8505,6 +8571,9 @@ pub mod sql_pool_table_columns { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8710,9 +8779,9 @@ pub mod sql_pool_vulnerability_assessments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/vulnerabilityAssessments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8731,6 +8800,9 @@ pub mod sql_pool_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9021,9 +9093,9 @@ pub mod sql_pool_vulnerability_assessment_scans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/vulnerabilityAssessments/{}/scans" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name , & this . vulnerability_assessment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9042,6 +9114,9 @@ pub mod sql_pool_vulnerability_assessment_scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9314,9 +9389,9 @@ pub mod sql_pool_security_alert_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/securityAlertPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9335,6 +9410,9 @@ pub mod sql_pool_security_alert_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9882,9 +9960,9 @@ pub mod extended_sql_pool_blob_auditing_policies { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/extendedAuditingSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9903,6 +9981,9 @@ pub mod extended_sql_pool_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10664,9 +10745,9 @@ pub mod sql_pool_workload_group { &this.sql_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10685,6 +10766,9 @@ pub mod sql_pool_workload_group { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10989,9 +11073,9 @@ pub mod sql_pool_workload_classifier { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/sqlPools/{}/workloadGroups/{}/workloadClassifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name , & this . sql_pool_name , & this . workload_group_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11010,6 +11094,9 @@ pub mod sql_pool_workload_classifier { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11237,9 +11324,9 @@ pub mod workspace_managed_sql_server_blob_auditing_policies { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11258,6 +11345,9 @@ pub mod workspace_managed_sql_server_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11485,9 +11575,9 @@ pub mod workspace_managed_sql_server_extended_blob_auditing_policies { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11506,6 +11596,9 @@ pub mod workspace_managed_sql_server_extended_blob_auditing_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11733,9 +11826,9 @@ pub mod workspace_managed_sql_server_security_alert_policy { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11754,6 +11847,9 @@ pub mod workspace_managed_sql_server_security_alert_policy { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12055,9 +12151,9 @@ pub mod workspace_managed_sql_server_vulnerability_assessments { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12076,6 +12172,9 @@ pub mod workspace_managed_sql_server_vulnerability_assessments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12319,9 +12418,9 @@ pub mod workspace_managed_sql_server_encryption_protector { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12340,6 +12439,9 @@ pub mod workspace_managed_sql_server_encryption_protector { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12467,9 +12569,9 @@ pub mod workspace_managed_sql_server_usages { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12488,6 +12590,9 @@ pub mod workspace_managed_sql_server_usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12581,9 +12686,9 @@ pub mod workspace_managed_sql_server_recoverable_sql_pools { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12602,6 +12707,9 @@ pub mod workspace_managed_sql_server_recoverable_sql_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12863,9 +12971,9 @@ pub mod workspace_managed_sql_server_dedicated_sql_minimal_tls_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Synapse/workspaces/{}/dedicatedSQLminimalTlsSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . workspace_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12884,6 +12992,9 @@ pub mod workspace_managed_sql_server_dedicated_sql_minimal_tls_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13018,9 +13129,9 @@ pub mod workspaces { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13039,6 +13150,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13336,9 +13450,9 @@ pub mod workspaces { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13357,6 +13471,9 @@ pub mod workspaces { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14189,9 +14306,9 @@ pub mod spark_configurations { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14210,6 +14327,9 @@ pub mod spark_configurations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14443,9 +14563,9 @@ pub mod azure_ad_only_authentications { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14464,6 +14584,9 @@ pub mod azure_ad_only_authentications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/synapse/src/package_sqlgen3_2020_04_01_preview/models.rs b/services/mgmt/synapse/src/package_sqlgen3_2020_04_01_preview/models.rs index eae06dfa17..f92d760d1b 100644 --- a/services/mgmt/synapse/src/package_sqlgen3_2020_04_01_preview/models.rs +++ b/services/mgmt/synapse/src/package_sqlgen3_2020_04_01_preview/models.rs @@ -96,7 +96,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -366,8 +366,8 @@ pub struct SqlDatabaseListResult { pub next_link: Option, } impl azure_core::Continuable for SqlDatabaseListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlDatabaseListResult { @@ -548,8 +548,8 @@ pub struct SqlPoolListResult { pub next_link: Option, } impl azure_core::Continuable for SqlPoolListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SqlPoolListResult { diff --git a/services/mgmt/synapse/src/package_sqlgen3_2020_04_01_preview/operations.rs b/services/mgmt/synapse/src/package_sqlgen3_2020_04_01_preview/operations.rs index 1f0fda3bda..b46cce6325 100644 --- a/services/mgmt/synapse/src/package_sqlgen3_2020_04_01_preview/operations.rs +++ b/services/mgmt/synapse/src/package_sqlgen3_2020_04_01_preview/operations.rs @@ -766,9 +766,9 @@ pub mod sql_pools_v3 { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -787,6 +787,9 @@ pub mod sql_pools_v3 { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1169,9 +1172,9 @@ pub mod sql_databases { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1190,6 +1193,9 @@ pub mod sql_databases { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/testbase/src/package_2020_12_16_preview/models.rs b/services/mgmt/testbase/src/package_2020_12_16_preview/models.rs index 89b52b3d1b..0a7939a7f3 100644 --- a/services/mgmt/testbase/src/package_2020_12_16_preview/models.rs +++ b/services/mgmt/testbase/src/package_2020_12_16_preview/models.rs @@ -15,7 +15,7 @@ pub struct AnalysisResultListResult { pub next_link: Option, } impl azure_core::Continuable for AnalysisResultListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -122,8 +122,8 @@ pub struct AvailableOsListResult { pub next_link: Option, } impl azure_core::Continuable for AvailableOsListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOsListResult { @@ -410,8 +410,8 @@ pub struct CustomerEventListResult { pub next_link: Option, } impl azure_core::Continuable for CustomerEventListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomerEventListResult { @@ -488,8 +488,8 @@ pub struct EmailEventListResult { pub next_link: Option, } impl azure_core::Continuable for EmailEventListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EmailEventListResult { @@ -561,7 +561,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -581,8 +581,8 @@ pub struct FavoriteProcessListResult { pub next_link: Option, } impl azure_core::Continuable for FavoriteProcessListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FavoriteProcessListResult { @@ -645,8 +645,8 @@ pub struct FlightingRingListResult { pub next_link: Option, } impl azure_core::Continuable for FlightingRingListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FlightingRingListResult { @@ -841,8 +841,8 @@ pub struct OsUpdateListResult { pub next_link: Option, } impl azure_core::Continuable for OsUpdateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OsUpdateListResult { @@ -1062,8 +1062,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1114,8 +1114,8 @@ pub struct PackageListResult { pub next_link: Option, } impl azure_core::Continuable for PackageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PackageListResult { @@ -1840,8 +1840,8 @@ pub struct TestBaseAccountListResult { pub next_link: Option, } impl azure_core::Continuable for TestBaseAccountListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TestBaseAccountListResult { @@ -1981,8 +1981,8 @@ pub struct TestBaseAccountSkuListResult { pub next_link: Option, } impl azure_core::Continuable for TestBaseAccountSkuListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TestBaseAccountSkuListResult { @@ -2052,8 +2052,8 @@ pub struct TestBaseAccountUsageDataList { pub next_link: Option, } impl azure_core::Continuable for TestBaseAccountUsageDataList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TestBaseAccountUsageDataList { @@ -2245,8 +2245,8 @@ pub struct TestResultListResult { pub next_link: Option, } impl azure_core::Continuable for TestResultListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TestResultListResult { @@ -2400,8 +2400,8 @@ pub struct TestSummaryListResult { pub next_link: Option, } impl azure_core::Continuable for TestSummaryListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TestSummaryListResult { @@ -2513,8 +2513,8 @@ pub struct TestTypeListResult { pub next_link: Option, } impl azure_core::Continuable for TestTypeListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TestTypeListResult { diff --git a/services/mgmt/testbase/src/package_2020_12_16_preview/operations.rs b/services/mgmt/testbase/src/package_2020_12_16_preview/operations.rs index 7b543dde00..71b7f1154a 100644 --- a/services/mgmt/testbase/src/package_2020_12_16_preview/operations.rs +++ b/services/mgmt/testbase/src/package_2020_12_16_preview/operations.rs @@ -150,9 +150,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -171,6 +171,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -353,9 +356,9 @@ pub mod test_base_accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -374,6 +377,9 @@ pub mod test_base_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -437,9 +443,9 @@ pub mod test_base_accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -458,6 +464,9 @@ pub mod test_base_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -952,9 +961,9 @@ pub mod usage { &this.test_base_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -973,6 +982,9 @@ pub mod usage { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1070,9 +1082,9 @@ pub mod available_os { &this.test_base_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1091,6 +1103,9 @@ pub mod available_os { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1238,9 +1253,9 @@ pub mod flighting_rings { &this.test_base_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1259,6 +1274,9 @@ pub mod flighting_rings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1404,9 +1422,9 @@ pub mod test_types { &this.test_base_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1425,6 +1443,9 @@ pub mod test_types { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1649,9 +1670,9 @@ pub mod packages { &this.test_base_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1670,6 +1691,9 @@ pub mod packages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2110,9 +2134,9 @@ pub mod test_summaries { &this.test_base_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2131,6 +2155,9 @@ pub mod test_summaries { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2318,9 +2345,9 @@ pub mod test_results { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.TestBase/testBaseAccounts/{}/packages/{}/testResults" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . test_base_account_name , & this . package_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2339,6 +2366,9 @@ pub mod test_results { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2590,9 +2620,9 @@ pub mod os_updates { &this.package_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2611,6 +2641,9 @@ pub mod os_updates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2787,9 +2820,9 @@ pub mod favorite_processes { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.TestBase/testBaseAccounts/{}/packages/{}/favoriteProcesses" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . test_base_account_name , & this . package_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2808,6 +2841,9 @@ pub mod favorite_processes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3193,9 +3229,9 @@ pub mod email_events { &this.test_base_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3214,6 +3250,9 @@ pub mod email_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3391,9 +3430,9 @@ pub mod customer_events { &this.test_base_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3412,6 +3451,9 @@ pub mod customer_events { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3648,9 +3690,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.TestBase/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3669,6 +3711,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/timeseriesinsights/src/package_2017_11_15/models.rs b/services/mgmt/timeseriesinsights/src/package_2017_11_15/models.rs index c4d465f10b..916f6afba1 100644 --- a/services/mgmt/timeseriesinsights/src/package_2017_11_15/models.rs +++ b/services/mgmt/timeseriesinsights/src/package_2017_11_15/models.rs @@ -804,8 +804,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/timeseriesinsights/src/package_2017_11_15/operations.rs b/services/mgmt/timeseriesinsights/src/package_2017_11_15/operations.rs index c868a7d886..ac1197c288 100644 --- a/services/mgmt/timeseriesinsights/src/package_2017_11_15/operations.rs +++ b/services/mgmt/timeseriesinsights/src/package_2017_11_15/operations.rs @@ -115,9 +115,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/timeseriesinsights/src/package_2018_08_preview/models.rs b/services/mgmt/timeseriesinsights/src/package_2018_08_preview/models.rs index 2061ffe268..51cf0c971c 100644 --- a/services/mgmt/timeseriesinsights/src/package_2018_08_preview/models.rs +++ b/services/mgmt/timeseriesinsights/src/package_2018_08_preview/models.rs @@ -1032,8 +1032,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/timeseriesinsights/src/package_2018_08_preview/operations.rs b/services/mgmt/timeseriesinsights/src/package_2018_08_preview/operations.rs index a528a53306..47dda677e8 100644 --- a/services/mgmt/timeseriesinsights/src/package_2018_08_preview/operations.rs +++ b/services/mgmt/timeseriesinsights/src/package_2018_08_preview/operations.rs @@ -115,9 +115,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/timeseriesinsights/src/package_2020_05_15/models.rs b/services/mgmt/timeseriesinsights/src/package_2020_05_15/models.rs index f4b5dc4402..f3ea7a74bf 100644 --- a/services/mgmt/timeseriesinsights/src/package_2020_05_15/models.rs +++ b/services/mgmt/timeseriesinsights/src/package_2020_05_15/models.rs @@ -106,7 +106,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1465,8 +1465,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/timeseriesinsights/src/package_2020_05_15/operations.rs b/services/mgmt/timeseriesinsights/src/package_2020_05_15/operations.rs index 4796dc4336..022d2871cb 100644 --- a/services/mgmt/timeseriesinsights/src/package_2020_05_15/operations.rs +++ b/services/mgmt/timeseriesinsights/src/package_2020_05_15/operations.rs @@ -115,9 +115,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/timeseriesinsights/src/package_preview_2021_03/models.rs b/services/mgmt/timeseriesinsights/src/package_preview_2021_03/models.rs index 74dddd8b1b..80a035ba4a 100644 --- a/services/mgmt/timeseriesinsights/src/package_preview_2021_03/models.rs +++ b/services/mgmt/timeseriesinsights/src/package_preview_2021_03/models.rs @@ -106,7 +106,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1575,8 +1575,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1766,7 +1766,7 @@ pub struct PrivateLinkResourceListResult { pub value: Vec, } impl azure_core::Continuable for PrivateLinkResourceListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/timeseriesinsights/src/package_preview_2021_03/operations.rs b/services/mgmt/timeseriesinsights/src/package_preview_2021_03/operations.rs index 3dfcba5750..b5b7a5a25a 100644 --- a/services/mgmt/timeseriesinsights/src/package_preview_2021_03/operations.rs +++ b/services/mgmt/timeseriesinsights/src/package_preview_2021_03/operations.rs @@ -121,9 +121,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -142,6 +142,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/timeseriesinsights/src/package_preview_2021_06/models.rs b/services/mgmt/timeseriesinsights/src/package_preview_2021_06/models.rs index 084bf88686..39c2fd440e 100644 --- a/services/mgmt/timeseriesinsights/src/package_preview_2021_06/models.rs +++ b/services/mgmt/timeseriesinsights/src/package_preview_2021_06/models.rs @@ -106,7 +106,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1468,8 +1468,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/timeseriesinsights/src/package_preview_2021_06/operations.rs b/services/mgmt/timeseriesinsights/src/package_preview_2021_06/operations.rs index b4068ac86c..4fe3ad8718 100644 --- a/services/mgmt/timeseriesinsights/src/package_preview_2021_06/operations.rs +++ b/services/mgmt/timeseriesinsights/src/package_preview_2021_06/operations.rs @@ -115,9 +115,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/trafficmanager/src/package_2017_09_preview/models.rs b/services/mgmt/trafficmanager/src/package_2017_09_preview/models.rs index e9e861a1cb..d0bd849032 100644 --- a/services/mgmt/trafficmanager/src/package_2017_09_preview/models.rs +++ b/services/mgmt/trafficmanager/src/package_2017_09_preview/models.rs @@ -27,7 +27,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -424,7 +424,7 @@ pub struct ProfileListResult { pub value: Vec, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/trafficmanager/src/package_2018_02/models.rs b/services/mgmt/trafficmanager/src/package_2018_02/models.rs index f447dc80e7..1e3de6467b 100644 --- a/services/mgmt/trafficmanager/src/package_2018_02/models.rs +++ b/services/mgmt/trafficmanager/src/package_2018_02/models.rs @@ -27,7 +27,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -424,7 +424,7 @@ pub struct ProfileListResult { pub value: Vec, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/trafficmanager/src/package_2018_03/models.rs b/services/mgmt/trafficmanager/src/package_2018_03/models.rs index cc5f49c4fb..1d1c88fadd 100644 --- a/services/mgmt/trafficmanager/src/package_2018_03/models.rs +++ b/services/mgmt/trafficmanager/src/package_2018_03/models.rs @@ -27,7 +27,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -433,7 +433,7 @@ pub struct ProfileListResult { pub value: Vec, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/trafficmanager/src/package_2018_04/models.rs b/services/mgmt/trafficmanager/src/package_2018_04/models.rs index dd8dace64f..163f0d640d 100644 --- a/services/mgmt/trafficmanager/src/package_2018_04/models.rs +++ b/services/mgmt/trafficmanager/src/package_2018_04/models.rs @@ -27,7 +27,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -436,7 +436,7 @@ pub struct ProfileListResult { pub value: Vec, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/trafficmanager/src/package_2018_08/models.rs b/services/mgmt/trafficmanager/src/package_2018_08/models.rs index 852cee3f3e..834a91309d 100644 --- a/services/mgmt/trafficmanager/src/package_2018_08/models.rs +++ b/services/mgmt/trafficmanager/src/package_2018_08/models.rs @@ -68,7 +68,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -483,7 +483,7 @@ pub struct ProfileListResult { pub value: Vec, } impl azure_core::Continuable for ProfileListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/mgmt/vi/src/package_2021_10_18_preview/models.rs b/services/mgmt/vi/src/package_2021_10_18_preview/models.rs index 4901a367f7..68ed324020 100644 --- a/services/mgmt/vi/src/package_2021_10_18_preview/models.rs +++ b/services/mgmt/vi/src/package_2021_10_18_preview/models.rs @@ -105,8 +105,8 @@ pub struct AccountList { pub next_link: Option, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -354,7 +354,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -620,8 +620,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/vi/src/package_2021_10_18_preview/operations.rs b/services/mgmt/vi/src/package_2021_10_18_preview/operations.rs index 948ac668f2..53918be002 100644 --- a/services/mgmt/vi/src/package_2021_10_18_preview/operations.rs +++ b/services/mgmt/vi/src/package_2021_10_18_preview/operations.rs @@ -107,9 +107,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.VideoIndexer/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -319,9 +322,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -340,6 +343,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -395,9 +401,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -416,6 +422,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/vi/src/package_2021_10_27_preview/models.rs b/services/mgmt/vi/src/package_2021_10_27_preview/models.rs index 1bf7910e7c..02e64f1e62 100644 --- a/services/mgmt/vi/src/package_2021_10_27_preview/models.rs +++ b/services/mgmt/vi/src/package_2021_10_27_preview/models.rs @@ -105,8 +105,8 @@ pub struct AccountList { pub next_link: Option, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -420,7 +420,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -686,8 +686,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -779,8 +779,8 @@ pub struct UserClassicAccountList { pub next_link: Option, } impl azure_core::Continuable for UserClassicAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserClassicAccountList { diff --git a/services/mgmt/vi/src/package_2021_10_27_preview/operations.rs b/services/mgmt/vi/src/package_2021_10_27_preview/operations.rs index e2ed8a9521..2fb8d4f086 100644 --- a/services/mgmt/vi/src/package_2021_10_27_preview/operations.rs +++ b/services/mgmt/vi/src/package_2021_10_27_preview/operations.rs @@ -113,9 +113,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.VideoIndexer/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -134,6 +134,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -325,9 +328,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -346,6 +349,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -401,9 +407,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -422,6 +428,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -718,9 +727,9 @@ pub mod user_classic_accounts { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -739,6 +748,9 @@ pub mod user_classic_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/vi/src/package_2021_11_10_preview/models.rs b/services/mgmt/vi/src/package_2021_11_10_preview/models.rs index ec810f8f3a..ca271abfa2 100644 --- a/services/mgmt/vi/src/package_2021_11_10_preview/models.rs +++ b/services/mgmt/vi/src/package_2021_11_10_preview/models.rs @@ -105,8 +105,8 @@ pub struct AccountList { pub next_link: Option, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -435,7 +435,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -701,8 +701,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -794,8 +794,8 @@ pub struct UserClassicAccountList { pub next_link: Option, } impl azure_core::Continuable for UserClassicAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserClassicAccountList { diff --git a/services/mgmt/vi/src/package_2021_11_10_preview/operations.rs b/services/mgmt/vi/src/package_2021_11_10_preview/operations.rs index 9c80cd03ba..c7e9735916 100644 --- a/services/mgmt/vi/src/package_2021_11_10_preview/operations.rs +++ b/services/mgmt/vi/src/package_2021_11_10_preview/operations.rs @@ -113,9 +113,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.VideoIndexer/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -134,6 +134,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -325,9 +328,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -346,6 +349,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -401,9 +407,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -422,6 +428,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -718,9 +727,9 @@ pub mod user_classic_accounts { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -739,6 +748,9 @@ pub mod user_classic_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/vi/src/package_2022_04_13_preview/models.rs b/services/mgmt/vi/src/package_2022_04_13_preview/models.rs index e5e4532130..c0346b2ca4 100644 --- a/services/mgmt/vi/src/package_2022_04_13_preview/models.rs +++ b/services/mgmt/vi/src/package_2022_04_13_preview/models.rs @@ -105,8 +105,8 @@ pub struct AccountList { pub next_link: Option, } impl azure_core::Continuable for AccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountList { @@ -441,7 +441,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -707,8 +707,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -800,8 +800,8 @@ pub struct UserClassicAccountList { pub next_link: Option, } impl azure_core::Continuable for UserClassicAccountList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserClassicAccountList { diff --git a/services/mgmt/vi/src/package_2022_04_13_preview/operations.rs b/services/mgmt/vi/src/package_2022_04_13_preview/operations.rs index 3c1d062ce5..eba588c538 100644 --- a/services/mgmt/vi/src/package_2022_04_13_preview/operations.rs +++ b/services/mgmt/vi/src/package_2022_04_13_preview/operations.rs @@ -113,9 +113,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.VideoIndexer/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -134,6 +134,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -325,9 +328,9 @@ pub mod accounts { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -346,6 +349,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -401,9 +407,9 @@ pub mod accounts { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -422,6 +428,9 @@ pub mod accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -718,9 +727,9 @@ pub mod user_classic_accounts { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -739,6 +748,9 @@ pub mod user_classic_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/videoanalyzer/src/package_2021_05_01_preview/models.rs b/services/mgmt/videoanalyzer/src/package_2021_05_01_preview/models.rs index d6181a5541..75adaba3c9 100644 --- a/services/mgmt/videoanalyzer/src/package_2021_05_01_preview/models.rs +++ b/services/mgmt/videoanalyzer/src/package_2021_05_01_preview/models.rs @@ -32,8 +32,8 @@ pub struct AccessPolicyEntityCollection { pub next_link: Option, } impl azure_core::Continuable for AccessPolicyEntityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessPolicyEntityCollection { @@ -335,8 +335,8 @@ pub struct EdgeModuleEntityCollection { pub next_link: Option, } impl azure_core::Continuable for EdgeModuleEntityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EdgeModuleEntityCollection { @@ -471,7 +471,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1204,8 +1204,8 @@ pub struct VideoEntityCollection { pub next_link: Option, } impl azure_core::Continuable for VideoEntityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VideoEntityCollection { diff --git a/services/mgmt/videoanalyzer/src/package_2021_05_01_preview/operations.rs b/services/mgmt/videoanalyzer/src/package_2021_05_01_preview/operations.rs index 054b4089a9..f7ac74345d 100644 --- a/services/mgmt/videoanalyzer/src/package_2021_05_01_preview/operations.rs +++ b/services/mgmt/videoanalyzer/src/package_2021_05_01_preview/operations.rs @@ -813,9 +813,9 @@ pub mod edge_modules { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -834,6 +834,9 @@ pub mod edge_modules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1233,9 +1236,9 @@ pub mod videos { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1254,6 +1257,9 @@ pub mod videos { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1686,9 +1692,9 @@ pub mod access_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1707,6 +1713,9 @@ pub mod access_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/videoanalyzer/src/package_preview_2021_11/models.rs b/services/mgmt/videoanalyzer/src/package_preview_2021_11/models.rs index a4fa62efc2..c0243ce9e8 100644 --- a/services/mgmt/videoanalyzer/src/package_preview_2021_11/models.rs +++ b/services/mgmt/videoanalyzer/src/package_preview_2021_11/models.rs @@ -29,8 +29,8 @@ pub struct AccessPolicyEntityCollection { pub next_link: Option, } impl azure_core::Continuable for AccessPolicyEntityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccessPolicyEntityCollection { @@ -379,8 +379,8 @@ pub struct EdgeModuleEntityCollection { pub next_link: Option, } impl azure_core::Continuable for EdgeModuleEntityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EdgeModuleEntityCollection { @@ -649,7 +649,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -814,8 +814,8 @@ pub struct LivePipelineCollection { pub next_link: Option, } impl azure_core::Continuable for LivePipelineCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LivePipelineCollection { @@ -1472,8 +1472,8 @@ pub struct PipelineJobCollection { pub next_link: Option, } impl azure_core::Continuable for PipelineJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineJobCollection { @@ -1751,8 +1751,8 @@ pub struct PipelineTopologyCollection { pub next_link: Option, } impl azure_core::Continuable for PipelineTopologyCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PipelineTopologyCollection { @@ -3105,8 +3105,8 @@ pub struct VideoEntityCollection { pub next_link: Option, } impl azure_core::Continuable for VideoEntityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VideoEntityCollection { diff --git a/services/mgmt/videoanalyzer/src/package_preview_2021_11/operations.rs b/services/mgmt/videoanalyzer/src/package_preview_2021_11/operations.rs index b2e757b0ce..f871f0e2d1 100644 --- a/services/mgmt/videoanalyzer/src/package_preview_2021_11/operations.rs +++ b/services/mgmt/videoanalyzer/src/package_preview_2021_11/operations.rs @@ -242,9 +242,9 @@ pub mod edge_modules { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -263,6 +263,9 @@ pub mod edge_modules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -646,9 +649,9 @@ pub mod pipeline_topologies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -667,6 +670,9 @@ pub mod pipeline_topologies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1092,9 +1098,9 @@ pub mod live_pipelines { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1113,6 +1119,9 @@ pub mod live_pipelines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1636,9 +1645,9 @@ pub mod pipeline_jobs { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1657,6 +1666,9 @@ pub mod pipeline_jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3496,9 +3508,9 @@ pub mod videos { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3517,6 +3529,9 @@ pub mod videos { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3956,9 +3971,9 @@ pub mod access_policies { &this.account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3977,6 +3992,9 @@ pub mod access_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/vmware/src/package_2020_03_20/models.rs b/services/mgmt/vmware/src/package_2020_03_20/models.rs index f9a02c5433..cc3945c854 100644 --- a/services/mgmt/vmware/src/package_2020_03_20/models.rs +++ b/services/mgmt/vmware/src/package_2020_03_20/models.rs @@ -54,7 +54,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -93,8 +93,8 @@ pub struct ClusterList { pub next_link: Option, } impl azure_core::Continuable for ClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterList { @@ -268,8 +268,8 @@ pub struct ExpressRouteAuthorizationList { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteAuthorizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteAuthorizationList { @@ -362,8 +362,8 @@ pub struct HcxEnterpriseSiteList { pub next_link: Option, } impl azure_core::Continuable for HcxEnterpriseSiteList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HcxEnterpriseSiteList { @@ -680,8 +680,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -731,8 +731,8 @@ pub struct PrivateCloudList { pub next_link: Option, } impl azure_core::Continuable for PrivateCloudList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateCloudList { diff --git a/services/mgmt/vmware/src/package_2020_03_20/operations.rs b/services/mgmt/vmware/src/package_2020_03_20/operations.rs index c8547df672..555ec58276 100644 --- a/services/mgmt/vmware/src/package_2020_03_20/operations.rs +++ b/services/mgmt/vmware/src/package_2020_03_20/operations.rs @@ -115,9 +115,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AVS/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -136,6 +136,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -416,9 +419,9 @@ pub mod private_clouds { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -437,6 +440,9 @@ pub mod private_clouds { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -490,9 +496,9 @@ pub mod private_clouds { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -511,6 +517,9 @@ pub mod private_clouds { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -945,9 +954,9 @@ pub mod clusters { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -966,6 +975,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1337,9 +1349,9 @@ pub mod hcx_enterprise_sites { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1358,6 +1370,9 @@ pub mod hcx_enterprise_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1659,9 +1674,9 @@ pub mod authorizations { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1680,6 +1695,9 @@ pub mod authorizations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/vmware/src/package_2021_06_01/models.rs b/services/mgmt/vmware/src/package_2021_06_01/models.rs index a568d0d46a..09f2442cf2 100644 --- a/services/mgmt/vmware/src/package_2021_06_01/models.rs +++ b/services/mgmt/vmware/src/package_2021_06_01/models.rs @@ -42,8 +42,8 @@ pub struct AddonList { pub next_link: Option, } impl azure_core::Continuable for AddonList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddonList { @@ -243,7 +243,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -277,8 +277,8 @@ pub struct CloudLinkList { pub next_link: Option, } impl azure_core::Continuable for CloudLinkList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudLinkList { @@ -378,8 +378,8 @@ pub struct ClusterList { pub next_link: Option, } impl azure_core::Continuable for ClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterList { @@ -511,8 +511,8 @@ pub struct DatastoreList { pub next_link: Option, } impl azure_core::Continuable for DatastoreList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatastoreList { @@ -743,8 +743,8 @@ pub struct ExpressRouteAuthorizationList { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteAuthorizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteAuthorizationList { @@ -837,8 +837,8 @@ pub struct GlobalReachConnectionList { pub next_link: Option, } impl azure_core::Continuable for GlobalReachConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GlobalReachConnectionList { @@ -976,8 +976,8 @@ pub struct HcxEnterpriseSiteList { pub next_link: Option, } impl azure_core::Continuable for HcxEnterpriseSiteList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HcxEnterpriseSiteList { @@ -1293,8 +1293,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -1366,8 +1366,8 @@ pub struct PrivateCloudList { pub next_link: Option, } impl azure_core::Continuable for PrivateCloudList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateCloudList { @@ -1699,8 +1699,8 @@ pub struct ScriptCmdletsList { pub next_link: Option, } impl azure_core::Continuable for ScriptCmdletsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptCmdletsList { @@ -1908,8 +1908,8 @@ pub struct ScriptExecutionsList { pub next_link: Option, } impl azure_core::Continuable for ScriptExecutionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptExecutionsList { @@ -1957,8 +1957,8 @@ pub struct ScriptPackagesList { pub next_link: Option, } impl azure_core::Continuable for ScriptPackagesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptPackagesList { @@ -2386,8 +2386,8 @@ pub struct WorkloadNetworkDhcpList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkDhcpList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkDhcpList { @@ -2624,8 +2624,8 @@ pub struct WorkloadNetworkDnsServicesList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkDnsServicesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkDnsServicesList { @@ -2734,8 +2734,8 @@ pub struct WorkloadNetworkDnsZonesList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkDnsZonesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkDnsZonesList { @@ -2768,8 +2768,8 @@ pub struct WorkloadNetworkGatewayList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkGatewayList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkGatewayList { @@ -2817,8 +2817,8 @@ pub struct WorkloadNetworkPortMirroringList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkPortMirroringList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkPortMirroringList { @@ -3066,8 +3066,8 @@ pub struct WorkloadNetworkPublicIPsList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkPublicIPsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkPublicIPsList { @@ -3239,8 +3239,8 @@ pub struct WorkloadNetworkSegmentsList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkSegmentsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkSegmentsList { @@ -3379,8 +3379,8 @@ pub struct WorkloadNetworkVmGroupsList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkVmGroupsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkVmGroupsList { @@ -3467,8 +3467,8 @@ pub struct WorkloadNetworkVirtualMachinesList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkVirtualMachinesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkVirtualMachinesList { diff --git a/services/mgmt/vmware/src/package_2021_06_01/operations.rs b/services/mgmt/vmware/src/package_2021_06_01/operations.rs index 686d850471..317384e188 100644 --- a/services/mgmt/vmware/src/package_2021_06_01/operations.rs +++ b/services/mgmt/vmware/src/package_2021_06_01/operations.rs @@ -139,9 +139,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AVS/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -160,6 +160,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -468,9 +471,9 @@ pub mod private_clouds { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -489,6 +492,9 @@ pub mod private_clouds { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -542,9 +548,9 @@ pub mod private_clouds { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -563,6 +569,9 @@ pub mod private_clouds { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1107,9 +1116,9 @@ pub mod clusters { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1128,6 +1137,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1509,9 +1521,9 @@ pub mod datastores { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1530,6 +1542,9 @@ pub mod datastores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1841,9 +1856,9 @@ pub mod hcx_enterprise_sites { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1862,6 +1877,9 @@ pub mod hcx_enterprise_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2163,9 +2181,9 @@ pub mod authorizations { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2184,6 +2202,9 @@ pub mod authorizations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2489,9 +2510,9 @@ pub mod global_reach_connections { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2510,6 +2531,9 @@ pub mod global_reach_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3361,9 +3385,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/segments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3382,6 +3406,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3645,9 +3672,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/dhcpConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3666,6 +3693,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3929,9 +3959,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/gateways" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3950,6 +3980,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4048,9 +4081,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/portMirroringProfiles" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4069,6 +4102,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4332,9 +4368,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/vmGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4353,6 +4389,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4616,9 +4655,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/virtualMachines" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4637,6 +4676,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4735,9 +4777,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/dnsServices" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4756,6 +4798,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5019,9 +5064,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/dnsZones" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5040,6 +5085,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5303,9 +5351,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/publicIPs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5324,6 +5372,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5608,9 +5659,9 @@ pub mod cloud_links { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5629,6 +5680,9 @@ pub mod cloud_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5934,9 +5988,9 @@ pub mod addons { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5955,6 +6009,9 @@ pub mod addons { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6224,9 +6281,9 @@ pub mod script_packages { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6245,6 +6302,9 @@ pub mod script_packages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6389,9 +6449,9 @@ pub mod script_cmdlets { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/scriptPackages/{}/scriptCmdlets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name , & this . script_package_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6410,6 +6470,9 @@ pub mod script_cmdlets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6601,9 +6664,9 @@ pub mod script_executions { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6622,6 +6685,9 @@ pub mod script_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/vmware/src/package_2021_12_01/models.rs b/services/mgmt/vmware/src/package_2021_12_01/models.rs index a35500736e..fa9d7ae82a 100644 --- a/services/mgmt/vmware/src/package_2021_12_01/models.rs +++ b/services/mgmt/vmware/src/package_2021_12_01/models.rs @@ -42,8 +42,8 @@ pub struct AddonList { pub next_link: Option, } impl azure_core::Continuable for AddonList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AddonList { @@ -338,7 +338,7 @@ pub struct CloudError { pub error: Option, } impl azure_core::Continuable for CloudError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -372,8 +372,8 @@ pub struct CloudLinkList { pub next_link: Option, } impl azure_core::Continuable for CloudLinkList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudLinkList { @@ -473,8 +473,8 @@ pub struct ClusterList { pub next_link: Option, } impl azure_core::Continuable for ClusterList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClusterList { @@ -609,8 +609,8 @@ pub struct DatastoreList { pub next_link: Option, } impl azure_core::Continuable for DatastoreList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DatastoreList { @@ -1047,8 +1047,8 @@ pub struct ExpressRouteAuthorizationList { pub next_link: Option, } impl azure_core::Continuable for ExpressRouteAuthorizationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExpressRouteAuthorizationList { @@ -1144,8 +1144,8 @@ pub struct GlobalReachConnectionList { pub next_link: Option, } impl azure_core::Continuable for GlobalReachConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GlobalReachConnectionList { @@ -1286,8 +1286,8 @@ pub struct HcxEnterpriseSiteList { pub next_link: Option, } impl azure_core::Continuable for HcxEnterpriseSiteList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HcxEnterpriseSiteList { @@ -1603,8 +1603,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -1656,8 +1656,8 @@ pub struct PlacementPoliciesList { pub next_link: Option, } impl azure_core::Continuable for PlacementPoliciesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PlacementPoliciesList { @@ -1988,8 +1988,8 @@ pub struct PrivateCloudList { pub next_link: Option, } impl azure_core::Continuable for PrivateCloudList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateCloudList { @@ -2334,8 +2334,8 @@ pub struct ScriptCmdletsList { pub next_link: Option, } impl azure_core::Continuable for ScriptCmdletsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptCmdletsList { @@ -2543,8 +2543,8 @@ pub struct ScriptExecutionsList { pub next_link: Option, } impl azure_core::Continuable for ScriptExecutionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptExecutionsList { @@ -2592,8 +2592,8 @@ pub struct ScriptPackagesList { pub next_link: Option, } impl azure_core::Continuable for ScriptPackagesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScriptPackagesList { @@ -2976,8 +2976,8 @@ pub struct VirtualMachinesList { pub next_link: Option, } impl azure_core::Continuable for VirtualMachinesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachinesList { @@ -3176,8 +3176,8 @@ pub struct WorkloadNetworkDhcpList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkDhcpList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkDhcpList { @@ -3414,8 +3414,8 @@ pub struct WorkloadNetworkDnsServicesList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkDnsServicesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkDnsServicesList { @@ -3524,8 +3524,8 @@ pub struct WorkloadNetworkDnsZonesList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkDnsZonesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkDnsZonesList { @@ -3558,8 +3558,8 @@ pub struct WorkloadNetworkGatewayList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkGatewayList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkGatewayList { @@ -3607,8 +3607,8 @@ pub struct WorkloadNetworkPortMirroringList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkPortMirroringList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkPortMirroringList { @@ -3865,8 +3865,8 @@ pub struct WorkloadNetworkPublicIPsList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkPublicIPsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkPublicIPsList { @@ -4041,8 +4041,8 @@ pub struct WorkloadNetworkSegmentsList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkSegmentsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkSegmentsList { @@ -4184,8 +4184,8 @@ pub struct WorkloadNetworkVmGroupsList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkVmGroupsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkVmGroupsList { @@ -4278,8 +4278,8 @@ pub struct WorkloadNetworkVirtualMachinesList { pub next_link: Option, } impl azure_core::Continuable for WorkloadNetworkVirtualMachinesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkloadNetworkVirtualMachinesList { diff --git a/services/mgmt/vmware/src/package_2021_12_01/operations.rs b/services/mgmt/vmware/src/package_2021_12_01/operations.rs index 733adcb010..6cf2da9ead 100644 --- a/services/mgmt/vmware/src/package_2021_12_01/operations.rs +++ b/services/mgmt/vmware/src/package_2021_12_01/operations.rs @@ -145,9 +145,9 @@ pub mod operations { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.AVS/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -166,6 +166,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -474,9 +477,9 @@ pub mod private_clouds { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -495,6 +498,9 @@ pub mod private_clouds { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -548,9 +554,9 @@ pub mod private_clouds { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -569,6 +575,9 @@ pub mod private_clouds { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1113,9 +1122,9 @@ pub mod clusters { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1134,6 +1143,9 @@ pub mod clusters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1515,9 +1527,9 @@ pub mod datastores { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1536,6 +1548,9 @@ pub mod datastores { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1847,9 +1862,9 @@ pub mod hcx_enterprise_sites { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1868,6 +1883,9 @@ pub mod hcx_enterprise_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2169,9 +2187,9 @@ pub mod authorizations { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2190,6 +2208,9 @@ pub mod authorizations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2495,9 +2516,9 @@ pub mod global_reach_connections { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2516,6 +2537,9 @@ pub mod global_reach_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3367,9 +3391,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/segments" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3388,6 +3412,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3651,9 +3678,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/dhcpConfigurations" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3672,6 +3699,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3935,9 +3965,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/gateways" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3956,6 +3986,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4054,9 +4087,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/portMirroringProfiles" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4075,6 +4108,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4338,9 +4374,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/vmGroups" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4359,6 +4395,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4622,9 +4661,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/virtualMachines" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4643,6 +4682,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4741,9 +4783,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/dnsServices" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4762,6 +4804,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5025,9 +5070,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/dnsZones" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5046,6 +5091,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5309,9 +5357,9 @@ pub mod workload_networks { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/workloadNetworks/default/publicIPs" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5330,6 +5378,9 @@ pub mod workload_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5614,9 +5665,9 @@ pub mod cloud_links { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5635,6 +5686,9 @@ pub mod cloud_links { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5940,9 +5994,9 @@ pub mod addons { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5961,6 +6015,9 @@ pub mod addons { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6258,9 +6315,9 @@ pub mod virtual_machines { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6279,6 +6336,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6539,9 +6599,9 @@ pub mod placement_policies { &this.cluster_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6560,6 +6620,9 @@ pub mod placement_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6871,9 +6934,9 @@ pub mod script_packages { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6892,6 +6955,9 @@ pub mod script_packages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7036,9 +7102,9 @@ pub mod script_cmdlets { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AVS/privateClouds/{}/scriptPackages/{}/scriptCmdlets" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . private_cloud_name , & this . script_package_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7057,6 +7123,9 @@ pub mod script_cmdlets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7248,9 +7317,9 @@ pub mod script_executions { &this.private_cloud_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7269,6 +7338,9 @@ pub mod script_executions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/vmwarecloudsimple/src/package_2019_04_01/models.rs b/services/mgmt/vmwarecloudsimple/src/package_2019_04_01/models.rs index 54dc611162..647f519a91 100644 --- a/services/mgmt/vmwarecloudsimple/src/package_2019_04_01/models.rs +++ b/services/mgmt/vmwarecloudsimple/src/package_2019_04_01/models.rs @@ -140,8 +140,8 @@ pub struct AvailableOperationsListResponse { pub value: Vec, } impl azure_core::Continuable for AvailableOperationsListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AvailableOperationsListResponse { @@ -157,7 +157,7 @@ pub struct CsrpError { pub error: Option, } impl azure_core::Continuable for CsrpError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -336,8 +336,8 @@ pub struct CustomizationPoliciesListResponse { pub value: Vec, } impl azure_core::Continuable for CustomizationPoliciesListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomizationPoliciesListResponse { @@ -465,8 +465,8 @@ pub struct DedicatedCloudNodeListResponse { pub value: Vec, } impl azure_core::Continuable for DedicatedCloudNodeListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedCloudNodeListResponse { @@ -595,8 +595,8 @@ pub struct DedicatedCloudServiceListResponse { pub value: Vec, } impl azure_core::Continuable for DedicatedCloudServiceListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DedicatedCloudServiceListResponse { @@ -805,8 +805,8 @@ pub struct PrivateCloudList { pub value: Vec, } impl azure_core::Continuable for PrivateCloudList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateCloudList { @@ -951,8 +951,8 @@ pub struct ResourcePoolsListResponse { pub value: Vec, } impl azure_core::Continuable for ResourcePoolsListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourcePoolsListResponse { @@ -1041,8 +1041,8 @@ pub struct SkuAvailabilityListResponse { pub value: Vec, } impl azure_core::Continuable for SkuAvailabilityListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuAvailabilityListResponse { @@ -1120,8 +1120,8 @@ pub struct UsageListResponse { pub value: Vec, } impl azure_core::Continuable for UsageListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageListResponse { @@ -1252,8 +1252,8 @@ pub struct VirtualMachineListResponse { pub value: Vec, } impl azure_core::Continuable for VirtualMachineListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineListResponse { @@ -1450,8 +1450,8 @@ pub struct VirtualMachineTemplateListResponse { pub value: Vec, } impl azure_core::Continuable for VirtualMachineTemplateListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualMachineTemplateListResponse { @@ -1569,8 +1569,8 @@ pub struct VirtualNetworkListResponse { pub value: Vec, } impl azure_core::Continuable for VirtualNetworkListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl VirtualNetworkListResponse { diff --git a/services/mgmt/vmwarecloudsimple/src/package_2019_04_01/operations.rs b/services/mgmt/vmwarecloudsimple/src/package_2019_04_01/operations.rs index cd32f72481..5d9633c107 100644 --- a/services/mgmt/vmwarecloudsimple/src/package_2019_04_01/operations.rs +++ b/services/mgmt/vmwarecloudsimple/src/package_2019_04_01/operations.rs @@ -150,9 +150,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -171,6 +171,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -393,9 +396,9 @@ pub mod dedicated_cloud_nodes { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -414,6 +417,9 @@ pub mod dedicated_cloud_nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -493,9 +499,9 @@ pub mod dedicated_cloud_nodes { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -514,6 +520,9 @@ pub mod dedicated_cloud_nodes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -893,9 +902,9 @@ pub mod dedicated_cloud_services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -914,6 +923,9 @@ pub mod dedicated_cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -993,9 +1005,9 @@ pub mod dedicated_cloud_services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1014,6 +1026,9 @@ pub mod dedicated_cloud_services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1307,9 +1322,9 @@ pub mod skus_availability { &this.region_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1328,6 +1343,9 @@ pub mod skus_availability { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1409,9 +1427,9 @@ pub mod private_clouds { &this.region_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1430,6 +1448,9 @@ pub mod private_clouds { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1576,9 +1597,9 @@ pub mod customization_policies { &this.pc_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1597,6 +1618,9 @@ pub mod customization_policies { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1735,9 +1759,9 @@ pub mod resource_pools { &this.pc_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1756,6 +1780,9 @@ pub mod resource_pools { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1900,9 +1927,9 @@ pub mod virtual_machine_templates { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/providers/Microsoft.VMwareCloudSimple/locations/{}/privateClouds/{}/virtualMachineTemplates" , this . client . endpoint () , & this . subscription_id , & this . region_id , & this . pc_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1921,6 +1948,9 @@ pub mod virtual_machine_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2066,9 +2096,9 @@ pub mod virtual_networks { &this.pc_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2087,6 +2117,9 @@ pub mod virtual_networks { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2218,9 +2251,9 @@ pub mod usages { &this.region_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2239,6 +2272,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2439,9 +2475,9 @@ pub mod virtual_machines { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2460,6 +2496,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2539,9 +2578,9 @@ pub mod virtual_machines { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2560,6 +2599,9 @@ pub mod virtual_machines { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/web/src/package_2020_12/models.rs b/services/mgmt/web/src/package_2020_12/models.rs index 956985a33d..49a38b5064 100644 --- a/services/mgmt/web/src/package_2020_12/models.rs +++ b/services/mgmt/web/src/package_2020_12/models.rs @@ -245,8 +245,8 @@ pub struct ApiKvReferenceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiKvReferenceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiKvReferenceCollection { @@ -342,8 +342,8 @@ pub struct AppServiceCertificateCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceCertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceCertificateCollection { @@ -506,8 +506,8 @@ pub struct AppServiceCertificateOrderCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceCertificateOrderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceCertificateOrderCollection { @@ -830,8 +830,8 @@ pub struct AppServiceEnvironmentCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceEnvironmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceEnvironmentCollection { @@ -992,8 +992,8 @@ pub struct AppServicePlanCollection { pub next_link: Option, } impl azure_core::Continuable for AppServicePlanCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServicePlanCollection { @@ -1194,8 +1194,8 @@ pub struct ApplicationStackCollection { pub next_link: Option, } impl azure_core::Continuable for ApplicationStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationStackCollection { @@ -1765,8 +1765,8 @@ pub struct BackupItemCollection { pub next_link: Option, } impl azure_core::Continuable for BackupItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupItemCollection { @@ -1931,8 +1931,8 @@ pub struct BillingMeterCollection { pub next_link: Option, } impl azure_core::Continuable for BillingMeterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingMeterCollection { @@ -2090,8 +2090,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -2736,8 +2736,8 @@ pub struct ContinuousWebJobCollection { pub next_link: Option, } impl azure_core::Continuable for ContinuousWebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContinuousWebJobCollection { @@ -2807,8 +2807,8 @@ pub struct CsmOperationCollection { pub next_link: Option, } impl azure_core::Continuable for CsmOperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CsmOperationCollection { @@ -3031,8 +3031,8 @@ pub struct CsmUsageQuotaCollection { pub next_link: Option, } impl azure_core::Continuable for CsmUsageQuotaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CsmUsageQuotaCollection { @@ -3269,7 +3269,7 @@ pub struct DefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for DefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3402,8 +3402,8 @@ pub struct DeletedWebAppCollection { pub next_link: Option, } impl azure_core::Continuable for DeletedWebAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedWebAppCollection { @@ -3474,8 +3474,8 @@ pub struct DeploymentCollection { pub next_link: Option, } impl azure_core::Continuable for DeploymentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentCollection { @@ -3684,8 +3684,8 @@ pub struct DetectorResponseCollection { pub next_link: Option, } impl azure_core::Continuable for DetectorResponseCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DetectorResponseCollection { @@ -3744,8 +3744,8 @@ pub struct DiagnosticAnalysisCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticAnalysisCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticAnalysisCollection { @@ -3792,8 +3792,8 @@ pub struct DiagnosticCategoryCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticCategoryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticCategoryCollection { @@ -3826,8 +3826,8 @@ pub struct DiagnosticDetectorCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticDetectorCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticDetectorCollection { @@ -4155,8 +4155,8 @@ pub struct DomainCollection { pub next_link: Option, } impl azure_core::Continuable for DomainCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainCollection { @@ -4221,8 +4221,8 @@ pub struct DomainOwnershipIdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for DomainOwnershipIdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainOwnershipIdentifierCollection { @@ -4780,8 +4780,8 @@ pub struct FunctionAppStackCollection { pub next_link: Option, } impl azure_core::Continuable for FunctionAppStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionAppStackCollection { @@ -4864,8 +4864,8 @@ pub struct FunctionEnvelopeCollection { pub next_link: Option, } impl azure_core::Continuable for FunctionEnvelopeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionEnvelopeCollection { @@ -4933,8 +4933,8 @@ pub struct GeoRegionCollection { pub next_link: Option, } impl azure_core::Continuable for GeoRegionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GeoRegionCollection { @@ -5290,8 +5290,8 @@ pub struct HostNameBindingCollection { pub next_link: Option, } impl azure_core::Continuable for HostNameBindingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostNameBindingCollection { @@ -5495,8 +5495,8 @@ pub struct HybridConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for HybridConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridConnectionCollection { @@ -5607,8 +5607,8 @@ pub struct IdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for IdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IdentifierCollection { @@ -5680,8 +5680,8 @@ pub struct InboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for InboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InboundEnvironmentEndpointCollection { @@ -6331,8 +6331,8 @@ pub struct NameIdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for NameIdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NameIdentifierCollection { @@ -6576,8 +6576,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -6595,8 +6595,8 @@ pub struct PerfMonCounterCollection { pub next_link: Option, } impl azure_core::Continuable for PerfMonCounterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PerfMonCounterCollection { @@ -6787,8 +6787,8 @@ pub struct PremierAddOnOfferCollection { pub next_link: Option, } impl azure_core::Continuable for PremierAddOnOfferCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PremierAddOnOfferCollection { @@ -6914,8 +6914,8 @@ pub struct PrivateEndpointConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionCollection { @@ -7160,8 +7160,8 @@ pub struct ProcessInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessInfoCollection { @@ -7238,8 +7238,8 @@ pub struct ProcessModuleInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessModuleInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessModuleInfoCollection { @@ -7319,8 +7319,8 @@ pub struct ProcessThreadInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessThreadInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessThreadInfoCollection { @@ -7404,8 +7404,8 @@ pub struct PublicCertificateCollection { pub next_link: Option, } impl azure_core::Continuable for PublicCertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicCertificateCollection { @@ -7683,8 +7683,8 @@ pub struct RecommendationCollection { pub next_link: Option, } impl azure_core::Continuable for RecommendationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecommendationCollection { @@ -8072,8 +8072,8 @@ pub struct ResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceCollection { @@ -8123,8 +8123,8 @@ pub struct ResourceHealthMetadataCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceHealthMetadataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceHealthMetadataCollection { @@ -8198,8 +8198,8 @@ pub struct ResourceMetricDefinitionCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceMetricDefinitionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceMetricDefinitionCollection { @@ -9421,8 +9421,8 @@ pub struct SiteConfigResourceCollection { pub next_link: Option, } impl azure_core::Continuable for SiteConfigResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteConfigResourceCollection { @@ -9472,8 +9472,8 @@ pub struct SiteConfigurationSnapshotInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SiteConfigurationSnapshotInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteConfigurationSnapshotInfoCollection { @@ -9585,8 +9585,8 @@ pub struct SiteExtensionInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SiteExtensionInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteExtensionInfoCollection { @@ -10051,8 +10051,8 @@ pub struct SkuInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SkuInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuInfoCollection { @@ -10164,8 +10164,8 @@ pub struct SlotDifferenceCollection { pub next_link: Option, } impl azure_core::Continuable for SlotDifferenceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SlotDifferenceCollection { @@ -10251,8 +10251,8 @@ pub struct SnapshotCollection { pub next_link: Option, } impl azure_core::Continuable for SnapshotCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotCollection { @@ -10413,8 +10413,8 @@ pub struct SourceControlCollection { pub next_link: Option, } impl azure_core::Continuable for SourceControlCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlCollection { @@ -10560,8 +10560,8 @@ pub struct StampCapacityCollection { pub next_link: Option, } impl azure_core::Continuable for StampCapacityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StampCapacityCollection { @@ -10764,8 +10764,8 @@ pub struct StaticSiteBuildCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteBuildCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteBuildCollection { @@ -10816,8 +10816,8 @@ pub struct StaticSiteCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteCollection { @@ -10923,8 +10923,8 @@ pub struct StaticSiteCustomDomainOverviewCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteCustomDomainOverviewCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteCustomDomainOverviewCollection { @@ -11043,8 +11043,8 @@ pub struct StaticSiteFunctionOverviewCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteFunctionOverviewCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteFunctionOverviewCollection { @@ -11170,8 +11170,8 @@ pub struct StaticSiteUserCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteUserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteUserCollection { @@ -11332,8 +11332,8 @@ pub struct StaticSiteUserProvidedFunctionAppsCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteUserProvidedFunctionAppsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteUserProvidedFunctionAppsCollection { @@ -11701,8 +11701,8 @@ pub struct TldLegalAgreementCollection { pub next_link: Option, } impl azure_core::Continuable for TldLegalAgreementCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TldLegalAgreementCollection { @@ -11785,8 +11785,8 @@ pub struct TopLevelDomainCollection { pub next_link: Option, } impl azure_core::Continuable for TopLevelDomainCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopLevelDomainCollection { @@ -11833,8 +11833,8 @@ pub struct TriggeredJobHistoryCollection { pub next_link: Option, } impl azure_core::Continuable for TriggeredJobHistoryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggeredJobHistoryCollection { @@ -11986,8 +11986,8 @@ pub struct TriggeredWebJobCollection { pub next_link: Option, } impl azure_core::Continuable for TriggeredWebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggeredWebJobCollection { @@ -12095,8 +12095,8 @@ pub struct UsageCollection { pub next_link: Option, } impl azure_core::Continuable for UsageCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageCollection { @@ -12665,8 +12665,8 @@ pub struct WebAppCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppCollection { @@ -12684,8 +12684,8 @@ pub struct WebAppInstanceStatusCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppInstanceStatusCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppInstanceStatusCollection { @@ -12849,8 +12849,8 @@ pub struct WebAppStackCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppStackCollection { @@ -12924,8 +12924,8 @@ pub struct WebJobCollection { pub next_link: Option, } impl azure_core::Continuable for WebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebJobCollection { @@ -13063,8 +13063,8 @@ pub struct WorkerPoolCollection { pub next_link: Option, } impl azure_core::Continuable for WorkerPoolCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkerPoolCollection { diff --git a/services/mgmt/web/src/package_2020_12/operations.rs b/services/mgmt/web/src/package_2020_12/operations.rs index 0b6e244057..1bf791a010 100644 --- a/services/mgmt/web/src/package_2020_12/operations.rs +++ b/services/mgmt/web/src/package_2020_12/operations.rs @@ -443,9 +443,9 @@ pub mod app_service_certificate_orders { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -464,6 +464,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -565,9 +568,9 @@ pub mod app_service_certificate_orders { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -586,6 +589,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -869,9 +875,9 @@ pub mod app_service_certificate_orders { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.CertificateRegistration/certificateOrders/{}/certificates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . certificate_order_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -890,6 +896,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1558,9 +1567,9 @@ pub mod certificate_orders_diagnostics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.CertificateRegistration/certificateOrders/{}/detectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . certificate_order_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1579,6 +1588,9 @@ pub mod certificate_orders_diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1711,9 +1723,9 @@ pub mod certificate_registration_provider { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1732,6 +1744,9 @@ pub mod certificate_registration_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2048,9 +2063,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2069,6 +2084,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2172,9 +2190,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2193,6 +2211,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2249,9 +2270,9 @@ pub mod domains { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2270,6 +2291,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2563,9 +2587,9 @@ pub mod domains { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DomainRegistration/domains/{}/domainOwnershipIdentifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . domain_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2584,6 +2608,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2921,9 +2948,9 @@ pub mod top_level_domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2942,6 +2969,9 @@ pub mod top_level_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3048,9 +3078,9 @@ pub mod top_level_domains { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3069,6 +3099,9 @@ pub mod top_level_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3131,9 +3164,9 @@ pub mod domain_registration_provider { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3152,6 +3185,9 @@ pub mod domain_registration_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3296,9 +3332,9 @@ pub mod certificates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3317,6 +3353,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3375,9 +3414,9 @@ pub mod certificates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3396,6 +3435,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3697,9 +3739,9 @@ pub mod deleted_web_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3718,6 +3760,9 @@ pub mod deleted_web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3773,9 +3818,9 @@ pub mod deleted_web_apps { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3794,6 +3839,9 @@ pub mod deleted_web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4308,9 +4356,9 @@ pub mod diagnostics { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4329,6 +4377,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4464,9 +4515,9 @@ pub mod diagnostics { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4485,6 +4536,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4620,9 +4674,9 @@ pub mod diagnostics { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4641,6 +4695,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4754,9 +4811,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4775,6 +4832,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4971,9 +5031,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4992,6 +5052,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5188,9 +5251,9 @@ pub mod diagnostics { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5209,6 +5272,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5348,9 +5414,9 @@ pub mod diagnostics { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5369,6 +5435,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5486,9 +5555,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5507,6 +5576,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5700,9 +5772,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5721,6 +5793,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6154,9 +6229,9 @@ pub mod provider { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/availableStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6175,6 +6250,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6232,9 +6310,9 @@ pub mod provider { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/functionAppStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6253,6 +6331,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6314,9 +6395,9 @@ pub mod provider { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6335,6 +6416,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6396,9 +6480,9 @@ pub mod provider { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6417,6 +6501,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6468,9 +6555,9 @@ pub mod provider { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6489,6 +6576,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6542,9 +6632,9 @@ pub mod provider { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/webAppStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6563,6 +6653,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6624,9 +6717,9 @@ pub mod provider { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6645,6 +6738,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6939,9 +7035,9 @@ pub mod recommendations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6960,6 +7056,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7125,9 +7224,9 @@ pub mod recommendations { &this.hosting_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7146,6 +7245,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7221,9 +7323,9 @@ pub mod recommendations { &this.hosting_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7242,6 +7344,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7536,9 +7641,9 @@ pub mod recommendations { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7557,6 +7662,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7632,9 +7740,9 @@ pub mod recommendations { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7653,6 +7761,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8173,9 +8284,9 @@ pub mod list_source_controls { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/sourcecontrols", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8194,6 +8305,9 @@ pub mod list_source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8355,9 +8469,9 @@ pub mod list_billing_meters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8376,6 +8490,9 @@ pub mod list_billing_meters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8553,9 +8670,9 @@ pub mod list_geo_regions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8574,6 +8691,9 @@ pub mod list_geo_regions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8646,9 +8766,9 @@ pub mod list_site_identifiers_assigned_to_host_name { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8667,6 +8787,9 @@ pub mod list_site_identifiers_assigned_to_host_name { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -8721,9 +8844,9 @@ pub mod list_premier_add_on_offers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8742,6 +8865,9 @@ pub mod list_premier_add_on_offers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15526,9 +15652,9 @@ pub mod web_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15547,6 +15673,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15607,9 +15736,9 @@ pub mod web_apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15628,6 +15757,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16106,9 +16238,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16127,6 +16259,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16666,9 +16801,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16687,6 +16822,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17326,9 +17464,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17347,6 +17485,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17452,9 +17593,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/config/configreferences/connectionstrings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17473,6 +17614,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18324,9 +18468,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18345,6 +18489,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18623,9 +18770,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18644,6 +18791,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18912,9 +19062,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18933,6 +19083,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19263,9 +19416,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19284,6 +19437,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19721,9 +19877,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19742,6 +19898,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -20511,9 +20670,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -20532,6 +20691,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21266,9 +21428,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21287,6 +21449,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21565,9 +21730,9 @@ pub mod web_apps { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21586,6 +21751,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21811,9 +21979,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21832,6 +22000,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -21951,9 +22122,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -21972,6 +22143,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -22082,9 +22256,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -22103,6 +22277,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -23099,9 +23276,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23120,6 +23297,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23606,9 +23786,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23627,6 +23807,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -23926,9 +24109,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -23947,6 +24130,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24164,9 +24350,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24185,6 +24371,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24300,9 +24489,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24321,6 +24510,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24378,9 +24570,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24399,6 +24591,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -24959,9 +25154,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -24980,6 +25175,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25205,9 +25403,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25226,6 +25424,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25715,9 +25916,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25736,6 +25937,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26260,9 +26464,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26281,6 +26485,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26930,9 +27137,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/config/configreferences/appsettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26951,6 +27158,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27051,9 +27261,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/config/configreferences/connectionstrings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27072,6 +27282,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27837,9 +28050,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27858,6 +28071,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28138,9 +28354,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28159,6 +28375,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28437,9 +28656,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28458,6 +28677,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28800,9 +29022,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28821,6 +29043,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29274,9 +29499,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29295,6 +29520,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30092,9 +30320,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30113,6 +30341,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30871,9 +31102,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30892,6 +31123,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31156,9 +31390,9 @@ pub mod web_apps { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31177,6 +31411,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31392,9 +31629,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/instances/{}/processes/{}/modules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot , & this . instance_id , & this . process_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31413,6 +31650,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31517,9 +31757,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/instances/{}/processes/{}/threads" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot , & this . instance_id , & this . process_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31538,6 +31778,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31652,9 +31895,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31673,6 +31916,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -32521,9 +32767,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32542,6 +32788,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33046,9 +33295,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33067,6 +33316,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33376,9 +33628,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33397,6 +33649,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33622,9 +33877,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33643,6 +33898,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33762,9 +34020,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33783,6 +34041,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33842,9 +34103,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33863,6 +34124,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34443,9 +34707,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34464,6 +34728,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34698,9 +34965,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34719,6 +34986,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -34837,9 +35107,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34858,6 +35128,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34917,9 +35190,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34938,6 +35211,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35625,9 +35901,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35646,6 +35922,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35820,9 +36099,9 @@ pub mod web_apps { &this.web_job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35841,6 +36120,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36007,9 +36289,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36028,6 +36310,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36519,9 +36804,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36540,6 +36825,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36654,9 +36942,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36675,6 +36963,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -36789,9 +37080,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36810,6 +37101,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36867,9 +37161,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36888,6 +37182,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37553,9 +37850,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37574,6 +37871,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37742,9 +38042,9 @@ pub mod web_apps { &this.web_job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37763,6 +38063,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37932,9 +38235,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37953,6 +38256,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38429,9 +38735,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38450,6 +38756,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39372,9 +39681,9 @@ pub mod static_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39393,6 +39702,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39448,9 +39760,9 @@ pub mod static_sites { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39469,6 +39781,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39761,9 +40076,9 @@ pub mod static_sites { &this.authprovider ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39782,6 +40097,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -39950,9 +40268,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39971,6 +40289,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40247,9 +40568,9 @@ pub mod static_sites { &this.environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40268,6 +40589,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40423,9 +40747,9 @@ pub mod static_sites { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/staticSites/{}/builds/{}/userProvidedFunctionApps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . environment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40444,6 +40768,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40886,9 +41213,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40907,6 +41234,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41253,9 +41583,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41274,6 +41604,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41543,9 +41876,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41564,6 +41897,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41913,9 +42249,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41934,6 +42270,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -42872,9 +43211,9 @@ pub mod app_service_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42893,6 +43232,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -42948,9 +43290,9 @@ pub mod app_service_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42969,6 +43311,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43281,9 +43626,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43302,6 +43647,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43396,7 +43744,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -43424,9 +43772,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43445,6 +43793,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -43702,9 +44053,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/inboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43723,6 +44074,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43780,9 +44134,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43801,6 +44155,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44032,9 +44389,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/instances/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . instance)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44053,6 +44410,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44104,9 +44464,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44125,6 +44485,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44176,9 +44539,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/skus" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44197,6 +44560,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44248,9 +44614,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/usages" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44269,6 +44635,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44372,9 +44741,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44393,6 +44762,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44444,9 +44816,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44465,6 +44837,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44777,7 +45152,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -44804,9 +45179,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44825,6 +45200,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -44888,9 +45266,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44909,6 +45287,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44971,9 +45352,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44992,6 +45373,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45039,7 +45423,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -45066,9 +45450,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45087,6 +45471,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -45155,9 +45542,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45176,6 +45563,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45236,9 +45626,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45257,6 +45647,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45495,9 +45888,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/workerPools/{}/instances/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . worker_pool_name , & this . instance)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45516,6 +45909,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45568,9 +45964,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/workerPools/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . worker_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45589,6 +45985,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45648,9 +46047,9 @@ pub mod app_service_environments { &this.worker_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45669,6 +46068,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45728,9 +46130,9 @@ pub mod app_service_environments { &this.worker_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45749,6 +46151,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46244,9 +46649,9 @@ pub mod app_service_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46265,6 +46670,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46323,9 +46731,9 @@ pub mod app_service_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46344,6 +46752,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46827,9 +47238,9 @@ pub mod app_service_plans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/serverfarms/{}/hybridConnectionNamespaces/{}/relays/{}/sites" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . namespace_name , & this . relay_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46848,6 +47259,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46957,9 +47371,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46978,6 +47392,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47109,9 +47526,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47130,6 +47547,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47253,9 +47673,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47274,6 +47694,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47909,9 +48332,9 @@ pub mod resource_health_metadata { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47930,6 +48353,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47985,9 +48411,9 @@ pub mod resource_health_metadata { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48006,6 +48432,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48063,9 +48492,9 @@ pub mod resource_health_metadata { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48084,6 +48513,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48195,9 +48627,9 @@ pub mod resource_health_metadata { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48216,6 +48648,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/web/src/package_2021_01/models.rs b/services/mgmt/web/src/package_2021_01/models.rs index 9ce0ff8f66..f4df9613f2 100644 --- a/services/mgmt/web/src/package_2021_01/models.rs +++ b/services/mgmt/web/src/package_2021_01/models.rs @@ -245,8 +245,8 @@ pub struct ApiKvReferenceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiKvReferenceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiKvReferenceCollection { @@ -354,8 +354,8 @@ pub struct AppServiceCertificateCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceCertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceCertificateCollection { @@ -518,8 +518,8 @@ pub struct AppServiceCertificateOrderCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceCertificateOrderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceCertificateOrderCollection { @@ -842,8 +842,8 @@ pub struct AppServiceEnvironmentCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceEnvironmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceEnvironmentCollection { @@ -1008,8 +1008,8 @@ pub struct AppServicePlanCollection { pub next_link: Option, } impl azure_core::Continuable for AppServicePlanCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServicePlanCollection { @@ -1213,8 +1213,8 @@ pub struct ApplicationStackCollection { pub next_link: Option, } impl azure_core::Continuable for ApplicationStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationStackCollection { @@ -1814,8 +1814,8 @@ pub struct BackupItemCollection { pub next_link: Option, } impl azure_core::Continuable for BackupItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupItemCollection { @@ -1980,8 +1980,8 @@ pub struct BillingMeterCollection { pub next_link: Option, } impl azure_core::Continuable for BillingMeterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingMeterCollection { @@ -2139,8 +2139,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -2785,8 +2785,8 @@ pub struct ContinuousWebJobCollection { pub next_link: Option, } impl azure_core::Continuable for ContinuousWebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContinuousWebJobCollection { @@ -2856,8 +2856,8 @@ pub struct CsmOperationCollection { pub next_link: Option, } impl azure_core::Continuable for CsmOperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CsmOperationCollection { @@ -3082,8 +3082,8 @@ pub struct CsmUsageQuotaCollection { pub next_link: Option, } impl azure_core::Continuable for CsmUsageQuotaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CsmUsageQuotaCollection { @@ -3320,7 +3320,7 @@ pub struct DefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for DefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3453,8 +3453,8 @@ pub struct DeletedWebAppCollection { pub next_link: Option, } impl azure_core::Continuable for DeletedWebAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedWebAppCollection { @@ -3525,8 +3525,8 @@ pub struct DeploymentCollection { pub next_link: Option, } impl azure_core::Continuable for DeploymentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentCollection { @@ -3735,8 +3735,8 @@ pub struct DetectorResponseCollection { pub next_link: Option, } impl azure_core::Continuable for DetectorResponseCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DetectorResponseCollection { @@ -3795,8 +3795,8 @@ pub struct DiagnosticAnalysisCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticAnalysisCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticAnalysisCollection { @@ -3843,8 +3843,8 @@ pub struct DiagnosticCategoryCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticCategoryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticCategoryCollection { @@ -3877,8 +3877,8 @@ pub struct DiagnosticDetectorCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticDetectorCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticDetectorCollection { @@ -4206,8 +4206,8 @@ pub struct DomainCollection { pub next_link: Option, } impl azure_core::Continuable for DomainCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainCollection { @@ -4272,8 +4272,8 @@ pub struct DomainOwnershipIdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for DomainOwnershipIdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainOwnershipIdentifierCollection { @@ -4864,8 +4864,8 @@ pub struct FunctionAppStackCollection { pub next_link: Option, } impl azure_core::Continuable for FunctionAppStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionAppStackCollection { @@ -4948,8 +4948,8 @@ pub struct FunctionEnvelopeCollection { pub next_link: Option, } impl azure_core::Continuable for FunctionEnvelopeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionEnvelopeCollection { @@ -5017,8 +5017,8 @@ pub struct GeoRegionCollection { pub next_link: Option, } impl azure_core::Continuable for GeoRegionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GeoRegionCollection { @@ -5374,8 +5374,8 @@ pub struct HostNameBindingCollection { pub next_link: Option, } impl azure_core::Continuable for HostNameBindingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostNameBindingCollection { @@ -5579,8 +5579,8 @@ pub struct HybridConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for HybridConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridConnectionCollection { @@ -5691,8 +5691,8 @@ pub struct IdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for IdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IdentifierCollection { @@ -5764,8 +5764,8 @@ pub struct InboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for InboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InboundEnvironmentEndpointCollection { @@ -5980,8 +5980,8 @@ pub struct KubeEnvironmentCollection { pub next_link: Option, } impl azure_core::Continuable for KubeEnvironmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KubeEnvironmentCollection { @@ -6581,8 +6581,8 @@ pub struct NameIdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for NameIdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NameIdentifierCollection { @@ -6826,8 +6826,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -6845,8 +6845,8 @@ pub struct PerfMonCounterCollection { pub next_link: Option, } impl azure_core::Continuable for PerfMonCounterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PerfMonCounterCollection { @@ -7037,8 +7037,8 @@ pub struct PremierAddOnOfferCollection { pub next_link: Option, } impl azure_core::Continuable for PremierAddOnOfferCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PremierAddOnOfferCollection { @@ -7164,8 +7164,8 @@ pub struct PrivateEndpointConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionCollection { @@ -7410,8 +7410,8 @@ pub struct ProcessInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessInfoCollection { @@ -7488,8 +7488,8 @@ pub struct ProcessModuleInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessModuleInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessModuleInfoCollection { @@ -7569,8 +7569,8 @@ pub struct ProcessThreadInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessThreadInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessThreadInfoCollection { @@ -7654,8 +7654,8 @@ pub struct PublicCertificateCollection { pub next_link: Option, } impl azure_core::Continuable for PublicCertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicCertificateCollection { @@ -7933,8 +7933,8 @@ pub struct RecommendationCollection { pub next_link: Option, } impl azure_core::Continuable for RecommendationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecommendationCollection { @@ -8322,8 +8322,8 @@ pub struct ResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceCollection { @@ -8373,8 +8373,8 @@ pub struct ResourceHealthMetadataCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceHealthMetadataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceHealthMetadataCollection { @@ -8448,8 +8448,8 @@ pub struct ResourceMetricDefinitionCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceMetricDefinitionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceMetricDefinitionCollection { @@ -9675,8 +9675,8 @@ pub struct SiteConfigResourceCollection { pub next_link: Option, } impl azure_core::Continuable for SiteConfigResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteConfigResourceCollection { @@ -9726,8 +9726,8 @@ pub struct SiteConfigurationSnapshotInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SiteConfigurationSnapshotInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteConfigurationSnapshotInfoCollection { @@ -9839,8 +9839,8 @@ pub struct SiteExtensionInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SiteExtensionInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteExtensionInfoCollection { @@ -10305,8 +10305,8 @@ pub struct SkuInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SkuInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuInfoCollection { @@ -10418,8 +10418,8 @@ pub struct SlotDifferenceCollection { pub next_link: Option, } impl azure_core::Continuable for SlotDifferenceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SlotDifferenceCollection { @@ -10505,8 +10505,8 @@ pub struct SnapshotCollection { pub next_link: Option, } impl azure_core::Continuable for SnapshotCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotCollection { @@ -10667,8 +10667,8 @@ pub struct SourceControlCollection { pub next_link: Option, } impl azure_core::Continuable for SourceControlCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlCollection { @@ -10814,8 +10814,8 @@ pub struct StampCapacityCollection { pub next_link: Option, } impl azure_core::Continuable for StampCapacityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StampCapacityCollection { @@ -11018,8 +11018,8 @@ pub struct StaticSiteBuildCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteBuildCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteBuildCollection { @@ -11070,8 +11070,8 @@ pub struct StaticSiteCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteCollection { @@ -11177,8 +11177,8 @@ pub struct StaticSiteCustomDomainOverviewCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteCustomDomainOverviewCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteCustomDomainOverviewCollection { @@ -11297,8 +11297,8 @@ pub struct StaticSiteFunctionOverviewCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteFunctionOverviewCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteFunctionOverviewCollection { @@ -11424,8 +11424,8 @@ pub struct StaticSiteUserCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteUserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteUserCollection { @@ -11586,8 +11586,8 @@ pub struct StaticSiteUserProvidedFunctionAppsCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteUserProvidedFunctionAppsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteUserProvidedFunctionAppsCollection { @@ -11955,8 +11955,8 @@ pub struct TldLegalAgreementCollection { pub next_link: Option, } impl azure_core::Continuable for TldLegalAgreementCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TldLegalAgreementCollection { @@ -12039,8 +12039,8 @@ pub struct TopLevelDomainCollection { pub next_link: Option, } impl azure_core::Continuable for TopLevelDomainCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopLevelDomainCollection { @@ -12087,8 +12087,8 @@ pub struct TriggeredJobHistoryCollection { pub next_link: Option, } impl azure_core::Continuable for TriggeredJobHistoryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggeredJobHistoryCollection { @@ -12240,8 +12240,8 @@ pub struct TriggeredWebJobCollection { pub next_link: Option, } impl azure_core::Continuable for TriggeredWebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggeredWebJobCollection { @@ -12349,8 +12349,8 @@ pub struct UsageCollection { pub next_link: Option, } impl azure_core::Continuable for UsageCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageCollection { @@ -12919,8 +12919,8 @@ pub struct WebAppCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppCollection { @@ -12938,8 +12938,8 @@ pub struct WebAppInstanceStatusCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppInstanceStatusCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppInstanceStatusCollection { @@ -13103,8 +13103,8 @@ pub struct WebAppStackCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppStackCollection { @@ -13178,8 +13178,8 @@ pub struct WebJobCollection { pub next_link: Option, } impl azure_core::Continuable for WebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebJobCollection { @@ -13317,8 +13317,8 @@ pub struct WorkerPoolCollection { pub next_link: Option, } impl azure_core::Continuable for WorkerPoolCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkerPoolCollection { diff --git a/services/mgmt/web/src/package_2021_01/operations.rs b/services/mgmt/web/src/package_2021_01/operations.rs index 8f8c14ce88..1cc30abb8e 100644 --- a/services/mgmt/web/src/package_2021_01/operations.rs +++ b/services/mgmt/web/src/package_2021_01/operations.rs @@ -446,9 +446,9 @@ pub mod app_service_certificate_orders { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -467,6 +467,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -568,9 +571,9 @@ pub mod app_service_certificate_orders { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -589,6 +592,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -872,9 +878,9 @@ pub mod app_service_certificate_orders { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.CertificateRegistration/certificateOrders/{}/certificates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . certificate_order_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -893,6 +899,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1561,9 +1570,9 @@ pub mod certificate_orders_diagnostics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.CertificateRegistration/certificateOrders/{}/detectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . certificate_order_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1582,6 +1591,9 @@ pub mod certificate_orders_diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1714,9 +1726,9 @@ pub mod certificate_registration_provider { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1735,6 +1747,9 @@ pub mod certificate_registration_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2051,9 +2066,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2072,6 +2087,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2175,9 +2193,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2196,6 +2214,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2252,9 +2273,9 @@ pub mod domains { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2273,6 +2294,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2566,9 +2590,9 @@ pub mod domains { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DomainRegistration/domains/{}/domainOwnershipIdentifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . domain_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2587,6 +2611,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2924,9 +2951,9 @@ pub mod top_level_domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2945,6 +2972,9 @@ pub mod top_level_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3051,9 +3081,9 @@ pub mod top_level_domains { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3072,6 +3102,9 @@ pub mod top_level_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3134,9 +3167,9 @@ pub mod domain_registration_provider { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3155,6 +3188,9 @@ pub mod domain_registration_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3854,9 +3890,9 @@ pub mod app_service_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3875,6 +3911,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3930,9 +3969,9 @@ pub mod app_service_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3951,6 +3990,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4263,9 +4305,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4284,6 +4326,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4378,7 +4423,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -4406,9 +4451,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4427,6 +4472,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4684,9 +4732,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/inboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4705,6 +4753,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4762,9 +4813,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4783,6 +4834,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5014,9 +5068,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/instances/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . instance)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5035,6 +5089,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5086,9 +5143,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5107,6 +5164,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5158,9 +5218,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/skus" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5179,6 +5239,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5230,9 +5293,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/usages" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5251,6 +5314,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5354,9 +5420,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5375,6 +5441,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5426,9 +5495,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5447,6 +5516,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5759,7 +5831,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -5786,9 +5858,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5807,6 +5879,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5870,9 +5945,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5891,6 +5966,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5953,9 +6031,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5974,6 +6052,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6021,7 +6102,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -6048,9 +6129,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6069,6 +6150,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6137,9 +6221,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6158,6 +6242,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6218,9 +6305,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6239,6 +6326,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6477,9 +6567,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/workerPools/{}/instances/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . worker_pool_name , & this . instance)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6498,6 +6588,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6550,9 +6643,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/workerPools/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . worker_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6571,6 +6664,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6630,9 +6726,9 @@ pub mod app_service_environments { &this.worker_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6651,6 +6747,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6710,9 +6809,9 @@ pub mod app_service_environments { &this.worker_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6731,6 +6830,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7226,9 +7328,9 @@ pub mod app_service_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7247,6 +7349,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7305,9 +7410,9 @@ pub mod app_service_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7326,6 +7431,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7809,9 +7917,9 @@ pub mod app_service_plans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/serverfarms/{}/hybridConnectionNamespaces/{}/relays/{}/sites" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . namespace_name , & this . relay_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7830,6 +7938,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7939,9 +8050,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7960,6 +8071,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8091,9 +8205,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8112,6 +8226,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8235,9 +8352,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8256,6 +8373,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8897,9 +9017,9 @@ pub mod certificates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8918,6 +9038,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8976,9 +9099,9 @@ pub mod certificates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8997,6 +9120,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9298,9 +9424,9 @@ pub mod deleted_web_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9319,6 +9445,9 @@ pub mod deleted_web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9374,9 +9503,9 @@ pub mod deleted_web_apps { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9395,6 +9524,9 @@ pub mod deleted_web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9909,9 +10041,9 @@ pub mod diagnostics { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9930,6 +10062,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10065,9 +10200,9 @@ pub mod diagnostics { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10086,6 +10221,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10221,9 +10359,9 @@ pub mod diagnostics { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10242,6 +10380,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10355,9 +10496,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10376,6 +10517,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10572,9 +10716,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10593,6 +10737,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10789,9 +10936,9 @@ pub mod diagnostics { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10810,6 +10957,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10949,9 +11099,9 @@ pub mod diagnostics { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10970,6 +11120,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11087,9 +11240,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11108,6 +11261,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11301,9 +11457,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11322,6 +11478,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11755,9 +11914,9 @@ pub mod provider { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/availableStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11776,6 +11935,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11833,9 +11995,9 @@ pub mod provider { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/functionAppStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11854,6 +12016,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11915,9 +12080,9 @@ pub mod provider { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11936,6 +12101,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11997,9 +12165,9 @@ pub mod provider { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12018,6 +12186,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12069,9 +12240,9 @@ pub mod provider { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12090,6 +12261,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12143,9 +12317,9 @@ pub mod provider { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/webAppStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12164,6 +12338,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12225,9 +12402,9 @@ pub mod provider { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12246,6 +12423,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12540,9 +12720,9 @@ pub mod recommendations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12561,6 +12741,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12726,9 +12909,9 @@ pub mod recommendations { &this.hosting_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12747,6 +12930,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12822,9 +13008,9 @@ pub mod recommendations { &this.hosting_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12843,6 +13029,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13137,9 +13326,9 @@ pub mod recommendations { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13158,6 +13347,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13233,9 +13425,9 @@ pub mod recommendations { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13254,6 +13446,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13617,9 +13812,9 @@ pub mod resource_health_metadata { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13638,6 +13833,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13693,9 +13891,9 @@ pub mod resource_health_metadata { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13714,6 +13912,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13771,9 +13972,9 @@ pub mod resource_health_metadata { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13792,6 +13993,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13903,9 +14107,9 @@ pub mod resource_health_metadata { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13924,6 +14128,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14266,9 +14473,9 @@ pub mod list_source_controls { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/sourcecontrols", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14287,6 +14494,9 @@ pub mod list_source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14448,9 +14658,9 @@ pub mod list_billing_meters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14469,6 +14679,9 @@ pub mod list_billing_meters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14646,9 +14859,9 @@ pub mod list_geo_regions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14667,6 +14880,9 @@ pub mod list_geo_regions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14739,9 +14955,9 @@ pub mod list_site_identifiers_assigned_to_host_name { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14760,6 +14976,9 @@ pub mod list_site_identifiers_assigned_to_host_name { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -14814,9 +15033,9 @@ pub mod list_premier_add_on_offers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14835,6 +15054,9 @@ pub mod list_premier_add_on_offers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15948,9 +16170,9 @@ pub mod static_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15969,6 +16191,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16024,9 +16249,9 @@ pub mod static_sites { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16045,6 +16270,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16337,9 +16565,9 @@ pub mod static_sites { &this.authprovider ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16358,6 +16586,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -16526,9 +16757,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16547,6 +16778,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16823,9 +17057,9 @@ pub mod static_sites { &this.environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16844,6 +17078,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16999,9 +17236,9 @@ pub mod static_sites { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/staticSites/{}/builds/{}/userProvidedFunctionApps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . environment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17020,6 +17257,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17462,9 +17702,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17483,6 +17723,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17829,9 +18072,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17850,6 +18093,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18119,9 +18365,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18140,6 +18386,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18489,9 +18738,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18510,6 +18759,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25288,9 +25540,9 @@ pub mod web_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25309,6 +25561,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25369,9 +25624,9 @@ pub mod web_apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25390,6 +25645,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25868,9 +26126,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25889,6 +26147,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26428,9 +26689,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26449,6 +26710,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27088,9 +27352,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27109,6 +27373,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27214,9 +27481,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/config/configreferences/connectionstrings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27235,6 +27502,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28086,9 +28356,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28107,6 +28377,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28385,9 +28658,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28406,6 +28679,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28674,9 +28950,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28695,6 +28971,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29025,9 +29304,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29046,6 +29325,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29483,9 +29765,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29504,6 +29786,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30273,9 +30558,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30294,6 +30579,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31028,9 +31316,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31049,6 +31337,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31327,9 +31618,9 @@ pub mod web_apps { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31348,6 +31639,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31573,9 +31867,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31594,6 +31888,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31713,9 +32010,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31734,6 +32031,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31844,9 +32144,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31865,6 +32165,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -32861,9 +33164,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32882,6 +33185,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33368,9 +33674,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33389,6 +33695,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33688,9 +33997,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33709,6 +34018,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33926,9 +34238,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33947,6 +34259,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34062,9 +34377,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34083,6 +34398,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34140,9 +34458,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34161,6 +34479,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34721,9 +35042,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34742,6 +35063,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34967,9 +35291,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34988,6 +35312,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35477,9 +35804,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35498,6 +35825,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36022,9 +36352,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36043,6 +36373,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36692,9 +37025,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/config/configreferences/appsettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36713,6 +37046,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36813,9 +37149,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/config/configreferences/connectionstrings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36834,6 +37170,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37599,9 +37938,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37620,6 +37959,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37900,9 +38242,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37921,6 +38263,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38199,9 +38544,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38220,6 +38565,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38562,9 +38910,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38583,6 +38931,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39036,9 +39387,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39057,6 +39408,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39854,9 +40208,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39875,6 +40229,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40633,9 +40990,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40654,6 +41011,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40918,9 +41278,9 @@ pub mod web_apps { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40939,6 +41299,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41154,9 +41517,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/instances/{}/processes/{}/modules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot , & this . instance_id , & this . process_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41175,6 +41538,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41279,9 +41645,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/instances/{}/processes/{}/threads" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot , & this . instance_id , & this . process_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41300,6 +41666,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41414,9 +41783,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41435,6 +41804,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -42283,9 +42655,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42304,6 +42676,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -42808,9 +43183,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42829,6 +43204,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43138,9 +43516,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43159,6 +43537,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43384,9 +43765,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43405,6 +43786,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43524,9 +43908,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43545,6 +43929,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43604,9 +43991,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43625,6 +44012,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44205,9 +44595,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44226,6 +44616,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44460,9 +44853,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44481,6 +44874,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -44599,9 +44995,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44620,6 +45016,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44679,9 +45078,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44700,6 +45099,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45387,9 +45789,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45408,6 +45810,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45582,9 +45987,9 @@ pub mod web_apps { &this.web_job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45603,6 +46008,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45769,9 +46177,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45790,6 +46198,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46281,9 +46692,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46302,6 +46713,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46416,9 +46830,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46437,6 +46851,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -46551,9 +46968,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46572,6 +46989,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46629,9 +47049,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46650,6 +47070,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47315,9 +47738,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47336,6 +47759,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47504,9 +47930,9 @@ pub mod web_apps { &this.web_job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47525,6 +47951,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47694,9 +48123,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47715,6 +48144,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48191,9 +48623,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48212,6 +48644,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48404,9 +48839,9 @@ pub mod kube_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48425,6 +48860,9 @@ pub mod kube_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48480,9 +48918,9 @@ pub mod kube_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48501,6 +48939,9 @@ pub mod kube_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/web/src/package_2021_01_15/models.rs b/services/mgmt/web/src/package_2021_01_15/models.rs index 7e6eb5e7eb..911d115c27 100644 --- a/services/mgmt/web/src/package_2021_01_15/models.rs +++ b/services/mgmt/web/src/package_2021_01_15/models.rs @@ -245,8 +245,8 @@ pub struct ApiKvReferenceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiKvReferenceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiKvReferenceCollection { @@ -354,8 +354,8 @@ pub struct AppServiceCertificateCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceCertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceCertificateCollection { @@ -518,8 +518,8 @@ pub struct AppServiceCertificateOrderCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceCertificateOrderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceCertificateOrderCollection { @@ -842,8 +842,8 @@ pub struct AppServiceEnvironmentCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceEnvironmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceEnvironmentCollection { @@ -1011,8 +1011,8 @@ pub struct AppServicePlanCollection { pub next_link: Option, } impl azure_core::Continuable for AppServicePlanCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServicePlanCollection { @@ -1216,8 +1216,8 @@ pub struct ApplicationStackCollection { pub next_link: Option, } impl azure_core::Continuable for ApplicationStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationStackCollection { @@ -1817,8 +1817,8 @@ pub struct BackupItemCollection { pub next_link: Option, } impl azure_core::Continuable for BackupItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupItemCollection { @@ -1983,8 +1983,8 @@ pub struct BillingMeterCollection { pub next_link: Option, } impl azure_core::Continuable for BillingMeterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingMeterCollection { @@ -2142,8 +2142,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -2788,8 +2788,8 @@ pub struct ContinuousWebJobCollection { pub next_link: Option, } impl azure_core::Continuable for ContinuousWebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContinuousWebJobCollection { @@ -2859,8 +2859,8 @@ pub struct CsmOperationCollection { pub next_link: Option, } impl azure_core::Continuable for CsmOperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CsmOperationCollection { @@ -3055,8 +3055,8 @@ pub struct CsmUsageQuotaCollection { pub next_link: Option, } impl azure_core::Continuable for CsmUsageQuotaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CsmUsageQuotaCollection { @@ -3293,7 +3293,7 @@ pub struct DefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for DefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3426,8 +3426,8 @@ pub struct DeletedWebAppCollection { pub next_link: Option, } impl azure_core::Continuable for DeletedWebAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedWebAppCollection { @@ -3498,8 +3498,8 @@ pub struct DeploymentCollection { pub next_link: Option, } impl azure_core::Continuable for DeploymentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentCollection { @@ -3708,8 +3708,8 @@ pub struct DetectorResponseCollection { pub next_link: Option, } impl azure_core::Continuable for DetectorResponseCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DetectorResponseCollection { @@ -3768,8 +3768,8 @@ pub struct DiagnosticAnalysisCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticAnalysisCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticAnalysisCollection { @@ -3816,8 +3816,8 @@ pub struct DiagnosticCategoryCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticCategoryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticCategoryCollection { @@ -3850,8 +3850,8 @@ pub struct DiagnosticDetectorCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticDetectorCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticDetectorCollection { @@ -4179,8 +4179,8 @@ pub struct DomainCollection { pub next_link: Option, } impl azure_core::Continuable for DomainCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainCollection { @@ -4245,8 +4245,8 @@ pub struct DomainOwnershipIdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for DomainOwnershipIdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainOwnershipIdentifierCollection { @@ -4837,8 +4837,8 @@ pub struct FunctionAppStackCollection { pub next_link: Option, } impl azure_core::Continuable for FunctionAppStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionAppStackCollection { @@ -4921,8 +4921,8 @@ pub struct FunctionEnvelopeCollection { pub next_link: Option, } impl azure_core::Continuable for FunctionEnvelopeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionEnvelopeCollection { @@ -4990,8 +4990,8 @@ pub struct GeoRegionCollection { pub next_link: Option, } impl azure_core::Continuable for GeoRegionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GeoRegionCollection { @@ -5347,8 +5347,8 @@ pub struct HostNameBindingCollection { pub next_link: Option, } impl azure_core::Continuable for HostNameBindingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostNameBindingCollection { @@ -5552,8 +5552,8 @@ pub struct HybridConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for HybridConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridConnectionCollection { @@ -5664,8 +5664,8 @@ pub struct IdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for IdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IdentifierCollection { @@ -5737,8 +5737,8 @@ pub struct InboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for InboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InboundEnvironmentEndpointCollection { @@ -5953,8 +5953,8 @@ pub struct KubeEnvironmentCollection { pub next_link: Option, } impl azure_core::Continuable for KubeEnvironmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KubeEnvironmentCollection { @@ -6554,8 +6554,8 @@ pub struct NameIdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for NameIdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NameIdentifierCollection { @@ -6799,8 +6799,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -6818,8 +6818,8 @@ pub struct PerfMonCounterCollection { pub next_link: Option, } impl azure_core::Continuable for PerfMonCounterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PerfMonCounterCollection { @@ -7010,8 +7010,8 @@ pub struct PremierAddOnOfferCollection { pub next_link: Option, } impl azure_core::Continuable for PremierAddOnOfferCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PremierAddOnOfferCollection { @@ -7137,8 +7137,8 @@ pub struct PrivateEndpointConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionCollection { @@ -7383,8 +7383,8 @@ pub struct ProcessInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessInfoCollection { @@ -7461,8 +7461,8 @@ pub struct ProcessModuleInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessModuleInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessModuleInfoCollection { @@ -7542,8 +7542,8 @@ pub struct ProcessThreadInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessThreadInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessThreadInfoCollection { @@ -7627,8 +7627,8 @@ pub struct PublicCertificateCollection { pub next_link: Option, } impl azure_core::Continuable for PublicCertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicCertificateCollection { @@ -7646,8 +7646,8 @@ pub struct PublishingCredentialsPoliciesCollection { pub next_link: Option, } impl azure_core::Continuable for PublishingCredentialsPoliciesCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublishingCredentialsPoliciesCollection { @@ -7925,8 +7925,8 @@ pub struct RecommendationCollection { pub next_link: Option, } impl azure_core::Continuable for RecommendationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecommendationCollection { @@ -8314,8 +8314,8 @@ pub struct ResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceCollection { @@ -8365,8 +8365,8 @@ pub struct ResourceHealthMetadataCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceHealthMetadataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceHealthMetadataCollection { @@ -8440,8 +8440,8 @@ pub struct ResourceMetricDefinitionCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceMetricDefinitionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceMetricDefinitionCollection { @@ -9667,8 +9667,8 @@ pub struct SiteConfigResourceCollection { pub next_link: Option, } impl azure_core::Continuable for SiteConfigResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteConfigResourceCollection { @@ -9718,8 +9718,8 @@ pub struct SiteConfigurationSnapshotInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SiteConfigurationSnapshotInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteConfigurationSnapshotInfoCollection { @@ -9831,8 +9831,8 @@ pub struct SiteExtensionInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SiteExtensionInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteExtensionInfoCollection { @@ -10297,8 +10297,8 @@ pub struct SkuInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SkuInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuInfoCollection { @@ -10410,8 +10410,8 @@ pub struct SlotDifferenceCollection { pub next_link: Option, } impl azure_core::Continuable for SlotDifferenceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SlotDifferenceCollection { @@ -10497,8 +10497,8 @@ pub struct SnapshotCollection { pub next_link: Option, } impl azure_core::Continuable for SnapshotCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotCollection { @@ -10659,8 +10659,8 @@ pub struct SourceControlCollection { pub next_link: Option, } impl azure_core::Continuable for SourceControlCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlCollection { @@ -10806,8 +10806,8 @@ pub struct StampCapacityCollection { pub next_link: Option, } impl azure_core::Continuable for StampCapacityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StampCapacityCollection { @@ -11010,8 +11010,8 @@ pub struct StaticSiteBuildCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteBuildCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteBuildCollection { @@ -11062,8 +11062,8 @@ pub struct StaticSiteCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteCollection { @@ -11169,8 +11169,8 @@ pub struct StaticSiteCustomDomainOverviewCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteCustomDomainOverviewCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteCustomDomainOverviewCollection { @@ -11289,8 +11289,8 @@ pub struct StaticSiteFunctionOverviewCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteFunctionOverviewCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteFunctionOverviewCollection { @@ -11416,8 +11416,8 @@ pub struct StaticSiteUserCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteUserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteUserCollection { @@ -11578,8 +11578,8 @@ pub struct StaticSiteUserProvidedFunctionAppsCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteUserProvidedFunctionAppsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteUserProvidedFunctionAppsCollection { @@ -11947,8 +11947,8 @@ pub struct TldLegalAgreementCollection { pub next_link: Option, } impl azure_core::Continuable for TldLegalAgreementCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TldLegalAgreementCollection { @@ -12031,8 +12031,8 @@ pub struct TopLevelDomainCollection { pub next_link: Option, } impl azure_core::Continuable for TopLevelDomainCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopLevelDomainCollection { @@ -12079,8 +12079,8 @@ pub struct TriggeredJobHistoryCollection { pub next_link: Option, } impl azure_core::Continuable for TriggeredJobHistoryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggeredJobHistoryCollection { @@ -12232,8 +12232,8 @@ pub struct TriggeredWebJobCollection { pub next_link: Option, } impl azure_core::Continuable for TriggeredWebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggeredWebJobCollection { @@ -12341,8 +12341,8 @@ pub struct UsageCollection { pub next_link: Option, } impl azure_core::Continuable for UsageCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageCollection { @@ -12911,8 +12911,8 @@ pub struct WebAppCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppCollection { @@ -12930,8 +12930,8 @@ pub struct WebAppInstanceStatusCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppInstanceStatusCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppInstanceStatusCollection { @@ -13095,8 +13095,8 @@ pub struct WebAppStackCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppStackCollection { @@ -13170,8 +13170,8 @@ pub struct WebJobCollection { pub next_link: Option, } impl azure_core::Continuable for WebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebJobCollection { @@ -13309,8 +13309,8 @@ pub struct WorkerPoolCollection { pub next_link: Option, } impl azure_core::Continuable for WorkerPoolCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkerPoolCollection { diff --git a/services/mgmt/web/src/package_2021_01_15/operations.rs b/services/mgmt/web/src/package_2021_01_15/operations.rs index 714e8e1b8c..fc24ce99d8 100644 --- a/services/mgmt/web/src/package_2021_01_15/operations.rs +++ b/services/mgmt/web/src/package_2021_01_15/operations.rs @@ -446,9 +446,9 @@ pub mod app_service_certificate_orders { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -467,6 +467,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -568,9 +571,9 @@ pub mod app_service_certificate_orders { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -589,6 +592,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -872,9 +878,9 @@ pub mod app_service_certificate_orders { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.CertificateRegistration/certificateOrders/{}/certificates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . certificate_order_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -893,6 +899,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1561,9 +1570,9 @@ pub mod certificate_orders_diagnostics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.CertificateRegistration/certificateOrders/{}/detectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . certificate_order_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1582,6 +1591,9 @@ pub mod certificate_orders_diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1714,9 +1726,9 @@ pub mod certificate_registration_provider { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1735,6 +1747,9 @@ pub mod certificate_registration_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2051,9 +2066,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2072,6 +2087,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2175,9 +2193,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2196,6 +2214,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2252,9 +2273,9 @@ pub mod domains { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2273,6 +2294,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2566,9 +2590,9 @@ pub mod domains { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DomainRegistration/domains/{}/domainOwnershipIdentifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . domain_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2587,6 +2611,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2924,9 +2951,9 @@ pub mod top_level_domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2945,6 +2972,9 @@ pub mod top_level_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3051,9 +3081,9 @@ pub mod top_level_domains { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3072,6 +3102,9 @@ pub mod top_level_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3134,9 +3167,9 @@ pub mod domain_registration_provider { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3155,6 +3188,9 @@ pub mod domain_registration_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3854,9 +3890,9 @@ pub mod app_service_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3875,6 +3911,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3930,9 +3969,9 @@ pub mod app_service_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3951,6 +3990,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4263,9 +4305,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4284,6 +4326,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4378,7 +4423,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -4406,9 +4451,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4427,6 +4472,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4684,9 +4732,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/inboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4705,6 +4753,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4762,9 +4813,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4783,6 +4834,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5014,9 +5068,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/instances/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . instance)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5035,6 +5089,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5086,9 +5143,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5107,6 +5164,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5158,9 +5218,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/skus" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5179,6 +5239,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5230,9 +5293,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/usages" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5251,6 +5314,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5354,9 +5420,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5375,6 +5441,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5426,9 +5495,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5447,6 +5516,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5759,7 +5831,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -5786,9 +5858,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5807,6 +5879,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5870,9 +5945,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5891,6 +5966,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5953,9 +6031,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5974,6 +6052,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6021,7 +6102,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -6048,9 +6129,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6069,6 +6150,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6137,9 +6221,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6158,6 +6242,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6218,9 +6305,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6239,6 +6326,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6477,9 +6567,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/workerPools/{}/instances/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . worker_pool_name , & this . instance)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6498,6 +6588,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6550,9 +6643,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/workerPools/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . worker_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6571,6 +6664,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6630,9 +6726,9 @@ pub mod app_service_environments { &this.worker_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6651,6 +6747,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6710,9 +6809,9 @@ pub mod app_service_environments { &this.worker_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6731,6 +6830,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7226,9 +7328,9 @@ pub mod app_service_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7247,6 +7349,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7305,9 +7410,9 @@ pub mod app_service_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7326,6 +7431,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7809,9 +7917,9 @@ pub mod app_service_plans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/serverfarms/{}/hybridConnectionNamespaces/{}/relays/{}/sites" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . namespace_name , & this . relay_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7830,6 +7938,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7939,9 +8050,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7960,6 +8071,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8091,9 +8205,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8112,6 +8226,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8235,9 +8352,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8256,6 +8373,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8897,9 +9017,9 @@ pub mod certificates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8918,6 +9038,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8976,9 +9099,9 @@ pub mod certificates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8997,6 +9120,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9298,9 +9424,9 @@ pub mod deleted_web_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9319,6 +9445,9 @@ pub mod deleted_web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9374,9 +9503,9 @@ pub mod deleted_web_apps { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9395,6 +9524,9 @@ pub mod deleted_web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9909,9 +10041,9 @@ pub mod diagnostics { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9930,6 +10062,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10065,9 +10200,9 @@ pub mod diagnostics { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10086,6 +10221,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10221,9 +10359,9 @@ pub mod diagnostics { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10242,6 +10380,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10355,9 +10496,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10376,6 +10517,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10572,9 +10716,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10593,6 +10737,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10789,9 +10936,9 @@ pub mod diagnostics { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10810,6 +10957,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10949,9 +11099,9 @@ pub mod diagnostics { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10970,6 +11120,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11087,9 +11240,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11108,6 +11261,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11301,9 +11457,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11322,6 +11478,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11784,9 +11943,9 @@ pub mod kube_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11805,6 +11964,9 @@ pub mod kube_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11860,9 +12022,9 @@ pub mod kube_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11881,6 +12043,9 @@ pub mod kube_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12225,9 +12390,9 @@ pub mod provider { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/availableStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12246,6 +12411,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12303,9 +12471,9 @@ pub mod provider { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/functionAppStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12324,6 +12492,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12385,9 +12556,9 @@ pub mod provider { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12406,6 +12577,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12467,9 +12641,9 @@ pub mod provider { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12488,6 +12662,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12539,9 +12716,9 @@ pub mod provider { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12560,6 +12737,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12613,9 +12793,9 @@ pub mod provider { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/webAppStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12634,6 +12814,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12695,9 +12878,9 @@ pub mod provider { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12716,6 +12899,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13010,9 +13196,9 @@ pub mod recommendations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13031,6 +13217,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13196,9 +13385,9 @@ pub mod recommendations { &this.hosting_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13217,6 +13406,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13292,9 +13484,9 @@ pub mod recommendations { &this.hosting_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13313,6 +13505,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13607,9 +13802,9 @@ pub mod recommendations { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13628,6 +13823,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13703,9 +13901,9 @@ pub mod recommendations { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13724,6 +13922,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14087,9 +14288,9 @@ pub mod resource_health_metadata { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14108,6 +14309,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14163,9 +14367,9 @@ pub mod resource_health_metadata { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14184,6 +14388,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14241,9 +14448,9 @@ pub mod resource_health_metadata { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14262,6 +14469,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14373,9 +14583,9 @@ pub mod resource_health_metadata { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14394,6 +14604,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14736,9 +14949,9 @@ pub mod list_source_controls { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/sourcecontrols", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14757,6 +14970,9 @@ pub mod list_source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14918,9 +15134,9 @@ pub mod list_billing_meters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14939,6 +15155,9 @@ pub mod list_billing_meters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15116,9 +15335,9 @@ pub mod list_geo_regions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15137,6 +15356,9 @@ pub mod list_geo_regions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15209,9 +15431,9 @@ pub mod list_site_identifiers_assigned_to_host_name { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15230,6 +15452,9 @@ pub mod list_site_identifiers_assigned_to_host_name { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -15284,9 +15509,9 @@ pub mod list_premier_add_on_offers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15305,6 +15530,9 @@ pub mod list_premier_add_on_offers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16418,9 +16646,9 @@ pub mod static_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16439,6 +16667,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16494,9 +16725,9 @@ pub mod static_sites { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16515,6 +16746,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16807,9 +17041,9 @@ pub mod static_sites { &this.authprovider ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16828,6 +17062,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -16996,9 +17233,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17017,6 +17254,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17293,9 +17533,9 @@ pub mod static_sites { &this.environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17314,6 +17554,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17469,9 +17712,9 @@ pub mod static_sites { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/staticSites/{}/builds/{}/userProvidedFunctionApps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . environment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17490,6 +17733,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17932,9 +18178,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17953,6 +18199,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18299,9 +18548,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18320,6 +18569,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18589,9 +18841,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18610,6 +18862,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18959,9 +19214,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18980,6 +19235,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25810,9 +26068,9 @@ pub mod web_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25831,6 +26089,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25891,9 +26152,9 @@ pub mod web_apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25912,6 +26173,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26390,9 +26654,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26411,6 +26675,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26686,9 +26953,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26707,6 +26974,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26976,9 +27246,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26997,6 +27267,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27636,9 +27909,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27657,6 +27930,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27762,9 +28038,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/config/configreferences/connectionstrings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27783,6 +28059,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28634,9 +28913,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28655,6 +28934,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28933,9 +29215,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28954,6 +29236,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29222,9 +29507,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29243,6 +29528,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29573,9 +29861,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29594,6 +29882,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30031,9 +30322,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30052,6 +30343,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30821,9 +31115,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30842,6 +31136,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31576,9 +31873,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31597,6 +31894,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31875,9 +32175,9 @@ pub mod web_apps { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31896,6 +32196,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32121,9 +32424,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32142,6 +32445,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32261,9 +32567,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32282,6 +32588,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32392,9 +32701,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32413,6 +32722,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -33463,9 +33775,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33484,6 +33796,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33970,9 +34285,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33991,6 +34306,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34290,9 +34608,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34311,6 +34629,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34528,9 +34849,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34549,6 +34870,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34664,9 +34988,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34685,6 +35009,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34742,9 +35069,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34763,6 +35090,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35323,9 +35653,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35344,6 +35674,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35569,9 +35902,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35590,6 +35923,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36079,9 +36415,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36100,6 +36436,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36378,9 +36717,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/basicPublishingCredentialsPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36399,6 +36738,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36650,9 +36992,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36671,6 +37013,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37320,9 +37665,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/config/configreferences/appsettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37341,6 +37686,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37441,9 +37789,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/config/configreferences/connectionstrings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37462,6 +37810,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38227,9 +38578,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38248,6 +38599,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38528,9 +38882,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38549,6 +38903,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38827,9 +39184,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38848,6 +39205,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39190,9 +39550,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39211,6 +39571,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39664,9 +40027,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39685,6 +40048,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40482,9 +40848,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40503,6 +40869,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41261,9 +41630,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41282,6 +41651,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41546,9 +41918,9 @@ pub mod web_apps { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41567,6 +41939,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41782,9 +42157,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/instances/{}/processes/{}/modules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot , & this . instance_id , & this . process_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41803,6 +42178,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41907,9 +42285,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/instances/{}/processes/{}/threads" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot , & this . instance_id , & this . process_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41928,6 +42306,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -42042,9 +42423,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42063,6 +42444,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -43023,9 +43407,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43044,6 +43428,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43548,9 +43935,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43569,6 +43956,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43878,9 +44268,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43899,6 +44289,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44124,9 +44517,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44145,6 +44538,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44264,9 +44660,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44285,6 +44681,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44344,9 +44743,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44365,6 +44764,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44945,9 +45347,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44966,6 +45368,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45200,9 +45605,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45221,6 +45626,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -45339,9 +45747,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45360,6 +45768,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45419,9 +45830,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45440,6 +45851,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46127,9 +46541,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46148,6 +46562,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46322,9 +46739,9 @@ pub mod web_apps { &this.web_job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46343,6 +46760,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46509,9 +46929,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46530,6 +46950,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47021,9 +47444,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47042,6 +47465,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47156,9 +47582,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47177,6 +47603,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -47291,9 +47720,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47312,6 +47741,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47369,9 +47801,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47390,6 +47822,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48055,9 +48490,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48076,6 +48511,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48244,9 +48682,9 @@ pub mod web_apps { &this.web_job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48265,6 +48703,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48434,9 +48875,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48455,6 +48896,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48931,9 +49375,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48952,6 +49396,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/web/src/package_2021_02/models.rs b/services/mgmt/web/src/package_2021_02/models.rs index 0c61704839..3c9bea6690 100644 --- a/services/mgmt/web/src/package_2021_02/models.rs +++ b/services/mgmt/web/src/package_2021_02/models.rs @@ -260,8 +260,8 @@ pub struct ApiKvReferenceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiKvReferenceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiKvReferenceCollection { @@ -369,8 +369,8 @@ pub struct AppServiceCertificateCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceCertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceCertificateCollection { @@ -533,8 +533,8 @@ pub struct AppServiceCertificateOrderCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceCertificateOrderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceCertificateOrderCollection { @@ -861,8 +861,8 @@ pub struct AppServiceEnvironmentCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceEnvironmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceEnvironmentCollection { @@ -1033,8 +1033,8 @@ pub struct AppServicePlanCollection { pub next_link: Option, } impl azure_core::Continuable for AppServicePlanCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServicePlanCollection { @@ -1241,8 +1241,8 @@ pub struct ApplicationStackCollection { pub next_link: Option, } impl azure_core::Continuable for ApplicationStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationStackCollection { @@ -1849,8 +1849,8 @@ pub struct BackupItemCollection { pub next_link: Option, } impl azure_core::Continuable for BackupItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupItemCollection { @@ -2015,8 +2015,8 @@ pub struct BillingMeterCollection { pub next_link: Option, } impl azure_core::Continuable for BillingMeterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingMeterCollection { @@ -2174,8 +2174,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -2820,8 +2820,8 @@ pub struct ContinuousWebJobCollection { pub next_link: Option, } impl azure_core::Continuable for ContinuousWebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContinuousWebJobCollection { @@ -2891,8 +2891,8 @@ pub struct CsmOperationCollection { pub next_link: Option, } impl azure_core::Continuable for CsmOperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CsmOperationCollection { @@ -3087,8 +3087,8 @@ pub struct CsmUsageQuotaCollection { pub next_link: Option, } impl azure_core::Continuable for CsmUsageQuotaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CsmUsageQuotaCollection { @@ -3340,7 +3340,7 @@ pub struct DefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for DefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3473,8 +3473,8 @@ pub struct DeletedWebAppCollection { pub next_link: Option, } impl azure_core::Continuable for DeletedWebAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedWebAppCollection { @@ -3545,8 +3545,8 @@ pub struct DeploymentCollection { pub next_link: Option, } impl azure_core::Continuable for DeploymentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentCollection { @@ -3752,8 +3752,8 @@ pub struct DetectorResponseCollection { pub next_link: Option, } impl azure_core::Continuable for DetectorResponseCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DetectorResponseCollection { @@ -3812,8 +3812,8 @@ pub struct DiagnosticAnalysisCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticAnalysisCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticAnalysisCollection { @@ -3860,8 +3860,8 @@ pub struct DiagnosticCategoryCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticCategoryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticCategoryCollection { @@ -3894,8 +3894,8 @@ pub struct DiagnosticDetectorCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticDetectorCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticDetectorCollection { @@ -4223,8 +4223,8 @@ pub struct DomainCollection { pub next_link: Option, } impl azure_core::Continuable for DomainCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainCollection { @@ -4289,8 +4289,8 @@ pub struct DomainOwnershipIdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for DomainOwnershipIdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainOwnershipIdentifierCollection { @@ -4887,8 +4887,8 @@ pub struct FunctionAppStackCollection { pub next_link: Option, } impl azure_core::Continuable for FunctionAppStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionAppStackCollection { @@ -4971,8 +4971,8 @@ pub struct FunctionEnvelopeCollection { pub next_link: Option, } impl azure_core::Continuable for FunctionEnvelopeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionEnvelopeCollection { @@ -5040,8 +5040,8 @@ pub struct GeoRegionCollection { pub next_link: Option, } impl azure_core::Continuable for GeoRegionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GeoRegionCollection { @@ -5397,8 +5397,8 @@ pub struct HostNameBindingCollection { pub next_link: Option, } impl azure_core::Continuable for HostNameBindingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostNameBindingCollection { @@ -5602,8 +5602,8 @@ pub struct HybridConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for HybridConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridConnectionCollection { @@ -5714,8 +5714,8 @@ pub struct IdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for IdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IdentifierCollection { @@ -5787,8 +5787,8 @@ pub struct InboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for InboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InboundEnvironmentEndpointCollection { @@ -6003,8 +6003,8 @@ pub struct KubeEnvironmentCollection { pub next_link: Option, } impl azure_core::Continuable for KubeEnvironmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KubeEnvironmentCollection { @@ -6604,8 +6604,8 @@ pub struct NameIdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for NameIdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NameIdentifierCollection { @@ -6849,8 +6849,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -6868,8 +6868,8 @@ pub struct PerfMonCounterCollection { pub next_link: Option, } impl azure_core::Continuable for PerfMonCounterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PerfMonCounterCollection { @@ -7060,8 +7060,8 @@ pub struct PremierAddOnOfferCollection { pub next_link: Option, } impl azure_core::Continuable for PremierAddOnOfferCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PremierAddOnOfferCollection { @@ -7187,8 +7187,8 @@ pub struct PrivateEndpointConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionCollection { @@ -7433,8 +7433,8 @@ pub struct ProcessInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessInfoCollection { @@ -7511,8 +7511,8 @@ pub struct ProcessModuleInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessModuleInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessModuleInfoCollection { @@ -7592,8 +7592,8 @@ pub struct ProcessThreadInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessThreadInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessThreadInfoCollection { @@ -7677,8 +7677,8 @@ pub struct PublicCertificateCollection { pub next_link: Option, } impl azure_core::Continuable for PublicCertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicCertificateCollection { @@ -7696,8 +7696,8 @@ pub struct PublishingCredentialsPoliciesCollection { pub next_link: Option, } impl azure_core::Continuable for PublishingCredentialsPoliciesCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublishingCredentialsPoliciesCollection { @@ -7975,8 +7975,8 @@ pub struct RecommendationCollection { pub next_link: Option, } impl azure_core::Continuable for RecommendationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecommendationCollection { @@ -8364,8 +8364,8 @@ pub struct ResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceCollection { @@ -8415,8 +8415,8 @@ pub struct ResourceHealthMetadataCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceHealthMetadataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceHealthMetadataCollection { @@ -8490,8 +8490,8 @@ pub struct ResourceMetricDefinitionCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceMetricDefinitionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceMetricDefinitionCollection { @@ -9717,8 +9717,8 @@ pub struct SiteConfigResourceCollection { pub next_link: Option, } impl azure_core::Continuable for SiteConfigResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteConfigResourceCollection { @@ -9768,8 +9768,8 @@ pub struct SiteConfigurationSnapshotInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SiteConfigurationSnapshotInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteConfigurationSnapshotInfoCollection { @@ -9881,8 +9881,8 @@ pub struct SiteExtensionInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SiteExtensionInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteExtensionInfoCollection { @@ -10347,8 +10347,8 @@ pub struct SkuInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SkuInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuInfoCollection { @@ -10460,8 +10460,8 @@ pub struct SlotDifferenceCollection { pub next_link: Option, } impl azure_core::Continuable for SlotDifferenceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SlotDifferenceCollection { @@ -10547,8 +10547,8 @@ pub struct SnapshotCollection { pub next_link: Option, } impl azure_core::Continuable for SnapshotCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotCollection { @@ -10709,8 +10709,8 @@ pub struct SourceControlCollection { pub next_link: Option, } impl azure_core::Continuable for SourceControlCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlCollection { @@ -10856,8 +10856,8 @@ pub struct StampCapacityCollection { pub next_link: Option, } impl azure_core::Continuable for StampCapacityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StampCapacityCollection { @@ -11060,8 +11060,8 @@ pub struct StaticSiteBuildCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteBuildCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteBuildCollection { @@ -11112,8 +11112,8 @@ pub struct StaticSiteCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteCollection { @@ -11219,8 +11219,8 @@ pub struct StaticSiteCustomDomainOverviewCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteCustomDomainOverviewCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteCustomDomainOverviewCollection { @@ -11339,8 +11339,8 @@ pub struct StaticSiteFunctionOverviewCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteFunctionOverviewCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteFunctionOverviewCollection { @@ -11466,8 +11466,8 @@ pub struct StaticSiteUserCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteUserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteUserCollection { @@ -11628,8 +11628,8 @@ pub struct StaticSiteUserProvidedFunctionAppsCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteUserProvidedFunctionAppsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteUserProvidedFunctionAppsCollection { @@ -11997,8 +11997,8 @@ pub struct TldLegalAgreementCollection { pub next_link: Option, } impl azure_core::Continuable for TldLegalAgreementCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TldLegalAgreementCollection { @@ -12081,8 +12081,8 @@ pub struct TopLevelDomainCollection { pub next_link: Option, } impl azure_core::Continuable for TopLevelDomainCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopLevelDomainCollection { @@ -12129,8 +12129,8 @@ pub struct TriggeredJobHistoryCollection { pub next_link: Option, } impl azure_core::Continuable for TriggeredJobHistoryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggeredJobHistoryCollection { @@ -12265,8 +12265,8 @@ pub struct TriggeredWebJobCollection { pub next_link: Option, } impl azure_core::Continuable for TriggeredWebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggeredWebJobCollection { @@ -12374,8 +12374,8 @@ pub struct UsageCollection { pub next_link: Option, } impl azure_core::Continuable for UsageCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageCollection { @@ -12941,8 +12941,8 @@ pub struct WebAppCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppCollection { @@ -12960,8 +12960,8 @@ pub struct WebAppInstanceStatusCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppInstanceStatusCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppInstanceStatusCollection { @@ -13125,8 +13125,8 @@ pub struct WebAppStackCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppStackCollection { @@ -13200,8 +13200,8 @@ pub struct WebJobCollection { pub next_link: Option, } impl azure_core::Continuable for WebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebJobCollection { @@ -13339,8 +13339,8 @@ pub struct WorkerPoolCollection { pub next_link: Option, } impl azure_core::Continuable for WorkerPoolCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkerPoolCollection { diff --git a/services/mgmt/web/src/package_2021_02/operations.rs b/services/mgmt/web/src/package_2021_02/operations.rs index 7cac0f97c2..3410800ab1 100644 --- a/services/mgmt/web/src/package_2021_02/operations.rs +++ b/services/mgmt/web/src/package_2021_02/operations.rs @@ -446,9 +446,9 @@ pub mod app_service_certificate_orders { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -467,6 +467,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -568,9 +571,9 @@ pub mod app_service_certificate_orders { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -589,6 +592,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -863,9 +869,9 @@ pub mod app_service_certificate_orders { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.CertificateRegistration/certificateOrders/{}/certificates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . certificate_order_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -884,6 +890,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1543,9 +1552,9 @@ pub mod certificate_orders_diagnostics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.CertificateRegistration/certificateOrders/{}/detectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . certificate_order_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1564,6 +1573,9 @@ pub mod certificate_orders_diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1696,9 +1708,9 @@ pub mod certificate_registration_provider { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1717,6 +1729,9 @@ pub mod certificate_registration_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2033,9 +2048,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2054,6 +2069,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2157,9 +2175,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2178,6 +2196,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2234,9 +2255,9 @@ pub mod domains { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2255,6 +2276,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2548,9 +2572,9 @@ pub mod domains { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DomainRegistration/domains/{}/domainOwnershipIdentifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . domain_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2569,6 +2593,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2906,9 +2933,9 @@ pub mod top_level_domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2927,6 +2954,9 @@ pub mod top_level_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3033,9 +3063,9 @@ pub mod top_level_domains { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3054,6 +3084,9 @@ pub mod top_level_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3116,9 +3149,9 @@ pub mod domain_registration_provider { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3137,6 +3170,9 @@ pub mod domain_registration_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3836,9 +3872,9 @@ pub mod app_service_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3857,6 +3893,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3912,9 +3951,9 @@ pub mod app_service_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3933,6 +3972,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4245,9 +4287,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4266,6 +4308,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4360,7 +4405,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -4388,9 +4433,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4409,6 +4454,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4666,9 +4714,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/inboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4687,6 +4735,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4744,9 +4795,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4765,6 +4816,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4996,9 +5050,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/instances/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . instance)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5017,6 +5071,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5068,9 +5125,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5089,6 +5146,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5140,9 +5200,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/skus" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5161,6 +5221,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5212,9 +5275,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/usages" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5233,6 +5296,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5336,9 +5402,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5357,6 +5423,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5408,9 +5477,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5429,6 +5498,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5741,7 +5813,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -5768,9 +5840,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5789,6 +5861,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5852,9 +5927,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5873,6 +5948,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5935,9 +6013,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5956,6 +6034,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6003,7 +6084,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -6030,9 +6111,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6051,6 +6132,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6119,9 +6203,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6140,6 +6224,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6200,9 +6287,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6221,6 +6308,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6459,9 +6549,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/workerPools/{}/instances/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . worker_pool_name , & this . instance)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6480,6 +6570,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6532,9 +6625,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/workerPools/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . worker_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6553,6 +6646,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6612,9 +6708,9 @@ pub mod app_service_environments { &this.worker_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6633,6 +6729,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6692,9 +6791,9 @@ pub mod app_service_environments { &this.worker_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6713,6 +6812,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7208,9 +7310,9 @@ pub mod app_service_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7229,6 +7331,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7287,9 +7392,9 @@ pub mod app_service_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7308,6 +7413,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7791,9 +7899,9 @@ pub mod app_service_plans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/serverfarms/{}/hybridConnectionNamespaces/{}/relays/{}/sites" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . namespace_name , & this . relay_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7812,6 +7920,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7921,9 +8032,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7942,6 +8053,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8073,9 +8187,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8094,6 +8208,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8217,9 +8334,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8238,6 +8355,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8879,9 +8999,9 @@ pub mod certificates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8900,6 +9020,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8958,9 +9081,9 @@ pub mod certificates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8979,6 +9102,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9280,9 +9406,9 @@ pub mod deleted_web_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9301,6 +9427,9 @@ pub mod deleted_web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9356,9 +9485,9 @@ pub mod deleted_web_apps { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9377,6 +9506,9 @@ pub mod deleted_web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9891,9 +10023,9 @@ pub mod diagnostics { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9912,6 +10044,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10047,9 +10182,9 @@ pub mod diagnostics { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10068,6 +10203,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10203,9 +10341,9 @@ pub mod diagnostics { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10224,6 +10362,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10337,9 +10478,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10358,6 +10499,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10554,9 +10698,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10575,6 +10719,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10771,9 +10918,9 @@ pub mod diagnostics { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10792,6 +10939,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10931,9 +11081,9 @@ pub mod diagnostics { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10952,6 +11102,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11069,9 +11222,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11090,6 +11243,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11283,9 +11439,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11304,6 +11460,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11766,9 +11925,9 @@ pub mod kube_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11787,6 +11946,9 @@ pub mod kube_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11842,9 +12004,9 @@ pub mod kube_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11863,6 +12025,9 @@ pub mod kube_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12207,9 +12372,9 @@ pub mod provider { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/availableStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12228,6 +12393,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12285,9 +12453,9 @@ pub mod provider { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/functionAppStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12306,6 +12474,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12367,9 +12538,9 @@ pub mod provider { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12388,6 +12559,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12449,9 +12623,9 @@ pub mod provider { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12470,6 +12644,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12521,9 +12698,9 @@ pub mod provider { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12542,6 +12719,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12595,9 +12775,9 @@ pub mod provider { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/webAppStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12616,6 +12796,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12677,9 +12860,9 @@ pub mod provider { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12698,6 +12881,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12992,9 +13178,9 @@ pub mod recommendations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13013,6 +13199,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13178,9 +13367,9 @@ pub mod recommendations { &this.hosting_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13199,6 +13388,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13274,9 +13466,9 @@ pub mod recommendations { &this.hosting_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13295,6 +13487,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13589,9 +13784,9 @@ pub mod recommendations { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13610,6 +13805,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13685,9 +13883,9 @@ pub mod recommendations { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13706,6 +13904,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14069,9 +14270,9 @@ pub mod resource_health_metadata { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14090,6 +14291,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14145,9 +14349,9 @@ pub mod resource_health_metadata { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14166,6 +14370,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14223,9 +14430,9 @@ pub mod resource_health_metadata { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14244,6 +14451,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14355,9 +14565,9 @@ pub mod resource_health_metadata { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14376,6 +14586,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14718,9 +14931,9 @@ pub mod list_source_controls { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/sourcecontrols", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14739,6 +14952,9 @@ pub mod list_source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14900,9 +15116,9 @@ pub mod list_billing_meters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14921,6 +15137,9 @@ pub mod list_billing_meters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15098,9 +15317,9 @@ pub mod list_geo_regions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15119,6 +15338,9 @@ pub mod list_geo_regions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15191,9 +15413,9 @@ pub mod list_site_identifiers_assigned_to_host_name { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15212,6 +15434,9 @@ pub mod list_site_identifiers_assigned_to_host_name { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -15266,9 +15491,9 @@ pub mod list_premier_add_on_offers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15287,6 +15512,9 @@ pub mod list_premier_add_on_offers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16400,9 +16628,9 @@ pub mod static_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16421,6 +16649,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16476,9 +16707,9 @@ pub mod static_sites { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16497,6 +16728,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16789,9 +17023,9 @@ pub mod static_sites { &this.authprovider ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16810,6 +17044,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -16978,9 +17215,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16999,6 +17236,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17275,9 +17515,9 @@ pub mod static_sites { &this.environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17296,6 +17536,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17451,9 +17694,9 @@ pub mod static_sites { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/staticSites/{}/builds/{}/userProvidedFunctionApps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . environment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17472,6 +17715,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17914,9 +18160,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17935,6 +18181,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18281,9 +18530,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18302,6 +18551,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18571,9 +18823,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18592,6 +18844,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18941,9 +19196,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18962,6 +19217,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25792,9 +26050,9 @@ pub mod web_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25813,6 +26071,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -25873,9 +26134,9 @@ pub mod web_apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -25894,6 +26155,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26372,9 +26636,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26393,6 +26657,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26668,9 +26935,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26689,6 +26956,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26958,9 +27228,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26979,6 +27249,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27618,9 +27891,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27639,6 +27912,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27744,9 +28020,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/config/configreferences/connectionstrings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27765,6 +28041,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28616,9 +28895,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28637,6 +28916,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28915,9 +29197,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28936,6 +29218,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29204,9 +29489,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29225,6 +29510,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29555,9 +29843,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29576,6 +29864,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30013,9 +30304,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30034,6 +30325,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30803,9 +31097,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30824,6 +31118,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31558,9 +31855,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31579,6 +31876,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31857,9 +32157,9 @@ pub mod web_apps { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31878,6 +32178,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32103,9 +32406,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32124,6 +32427,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32243,9 +32549,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32264,6 +32570,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32374,9 +32683,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32395,6 +32704,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -33445,9 +33757,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33466,6 +33778,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33952,9 +34267,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33973,6 +34288,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34272,9 +34590,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34293,6 +34611,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34510,9 +34831,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34531,6 +34852,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34646,9 +34970,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34667,6 +34991,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -34724,9 +35051,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34745,6 +35072,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35305,9 +35635,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35326,6 +35656,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35551,9 +35884,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35572,6 +35905,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36061,9 +36397,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36082,6 +36418,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36360,9 +36699,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/basicPublishingCredentialsPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36381,6 +36720,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36632,9 +36974,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36653,6 +36995,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37302,9 +37647,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/config/configreferences/appsettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37323,6 +37668,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37423,9 +37771,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/config/configreferences/connectionstrings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37444,6 +37792,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38209,9 +38560,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38230,6 +38581,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38510,9 +38864,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38531,6 +38885,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38809,9 +39166,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38830,6 +39187,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39172,9 +39532,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39193,6 +39553,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39646,9 +40009,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39667,6 +40030,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40464,9 +40830,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40485,6 +40851,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41243,9 +41612,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41264,6 +41633,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41528,9 +41900,9 @@ pub mod web_apps { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41549,6 +41921,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41764,9 +42139,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/instances/{}/processes/{}/modules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot , & this . instance_id , & this . process_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41785,6 +42160,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41889,9 +42267,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/instances/{}/processes/{}/threads" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot , & this . instance_id , & this . process_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41910,6 +42288,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -42024,9 +42405,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42045,6 +42426,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -43005,9 +43389,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43026,6 +43410,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43530,9 +43917,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43551,6 +43938,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43860,9 +44250,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43881,6 +44271,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44106,9 +44499,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44127,6 +44520,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44246,9 +44642,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44267,6 +44663,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44326,9 +44725,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44347,6 +44746,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44927,9 +45329,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44948,6 +45350,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45182,9 +45587,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45203,6 +45608,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -45321,9 +45729,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45342,6 +45750,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45401,9 +45812,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45422,6 +45833,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46109,9 +46523,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46130,6 +46544,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46304,9 +46721,9 @@ pub mod web_apps { &this.web_job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46325,6 +46742,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46491,9 +46911,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46512,6 +46932,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47003,9 +47426,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47024,6 +47447,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47138,9 +47564,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47159,6 +47585,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -47273,9 +47702,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47294,6 +47723,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47351,9 +47783,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47372,6 +47804,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48037,9 +48472,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48058,6 +48493,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48226,9 +48664,9 @@ pub mod web_apps { &this.web_job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48247,6 +48685,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48416,9 +48857,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48437,6 +48878,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48913,9 +49357,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48934,6 +49378,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/web/src/package_2021_03/models.rs b/services/mgmt/web/src/package_2021_03/models.rs index 41ba279a66..dee857df42 100644 --- a/services/mgmt/web/src/package_2021_03/models.rs +++ b/services/mgmt/web/src/package_2021_03/models.rs @@ -260,8 +260,8 @@ pub struct ApiKvReferenceCollection { pub next_link: Option, } impl azure_core::Continuable for ApiKvReferenceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiKvReferenceCollection { @@ -369,8 +369,8 @@ pub struct AppServiceCertificateCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceCertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceCertificateCollection { @@ -533,8 +533,8 @@ pub struct AppServiceCertificateOrderCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceCertificateOrderCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceCertificateOrderCollection { @@ -861,8 +861,8 @@ pub struct AppServiceEnvironmentCollection { pub next_link: Option, } impl azure_core::Continuable for AppServiceEnvironmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServiceEnvironmentCollection { @@ -1033,8 +1033,8 @@ pub struct AppServicePlanCollection { pub next_link: Option, } impl azure_core::Continuable for AppServicePlanCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppServicePlanCollection { @@ -1241,8 +1241,8 @@ pub struct ApplicationStackCollection { pub next_link: Option, } impl azure_core::Continuable for ApplicationStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationStackCollection { @@ -1849,8 +1849,8 @@ pub struct BackupItemCollection { pub next_link: Option, } impl azure_core::Continuable for BackupItemCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BackupItemCollection { @@ -2015,8 +2015,8 @@ pub struct BillingMeterCollection { pub next_link: Option, } impl azure_core::Continuable for BillingMeterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl BillingMeterCollection { @@ -2174,8 +2174,8 @@ pub struct CertificateCollection { pub next_link: Option, } impl azure_core::Continuable for CertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateCollection { @@ -2819,8 +2819,8 @@ pub struct ContainerAppCollection { pub next_link: Option, } impl azure_core::Continuable for ContainerAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContainerAppCollection { @@ -3076,8 +3076,8 @@ pub struct ContinuousWebJobCollection { pub next_link: Option, } impl azure_core::Continuable for ContinuousWebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContinuousWebJobCollection { @@ -3147,8 +3147,8 @@ pub struct CsmOperationCollection { pub next_link: Option, } impl azure_core::Continuable for CsmOperationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CsmOperationCollection { @@ -3343,8 +3343,8 @@ pub struct CsmUsageQuotaCollection { pub next_link: Option, } impl azure_core::Continuable for CsmUsageQuotaCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CsmUsageQuotaCollection { @@ -3463,8 +3463,8 @@ pub struct CustomHostnameSitesCollection { pub next_link: Option, } impl azure_core::Continuable for CustomHostnameSitesCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CustomHostnameSitesCollection { @@ -3725,7 +3725,7 @@ pub struct DefaultErrorResponse { pub error: Option, } impl azure_core::Continuable for DefaultErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3858,8 +3858,8 @@ pub struct DeletedWebAppCollection { pub next_link: Option, } impl azure_core::Continuable for DeletedWebAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedWebAppCollection { @@ -3930,8 +3930,8 @@ pub struct DeploymentCollection { pub next_link: Option, } impl azure_core::Continuable for DeploymentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentCollection { @@ -4137,8 +4137,8 @@ pub struct DetectorResponseCollection { pub next_link: Option, } impl azure_core::Continuable for DetectorResponseCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DetectorResponseCollection { @@ -4197,8 +4197,8 @@ pub struct DiagnosticAnalysisCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticAnalysisCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticAnalysisCollection { @@ -4245,8 +4245,8 @@ pub struct DiagnosticCategoryCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticCategoryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticCategoryCollection { @@ -4279,8 +4279,8 @@ pub struct DiagnosticDetectorCollection { pub next_link: Option, } impl azure_core::Continuable for DiagnosticDetectorCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DiagnosticDetectorCollection { @@ -4608,8 +4608,8 @@ pub struct DomainCollection { pub next_link: Option, } impl azure_core::Continuable for DomainCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainCollection { @@ -4674,8 +4674,8 @@ pub struct DomainOwnershipIdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for DomainOwnershipIdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DomainOwnershipIdentifierCollection { @@ -5290,8 +5290,8 @@ pub struct FunctionAppStackCollection { pub next_link: Option, } impl azure_core::Continuable for FunctionAppStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionAppStackCollection { @@ -5374,8 +5374,8 @@ pub struct FunctionEnvelopeCollection { pub next_link: Option, } impl azure_core::Continuable for FunctionEnvelopeCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl FunctionEnvelopeCollection { @@ -5443,8 +5443,8 @@ pub struct GeoRegionCollection { pub next_link: Option, } impl azure_core::Continuable for GeoRegionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GeoRegionCollection { @@ -5800,8 +5800,8 @@ pub struct HostNameBindingCollection { pub next_link: Option, } impl azure_core::Continuable for HostNameBindingCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HostNameBindingCollection { @@ -6020,8 +6020,8 @@ pub struct HybridConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for HybridConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HybridConnectionCollection { @@ -6132,8 +6132,8 @@ pub struct IdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for IdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IdentifierCollection { @@ -6205,8 +6205,8 @@ pub struct InboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for InboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl InboundEnvironmentEndpointCollection { @@ -6497,8 +6497,8 @@ pub struct KubeEnvironmentCollection { pub next_link: Option, } impl azure_core::Continuable for KubeEnvironmentCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KubeEnvironmentCollection { @@ -7100,8 +7100,8 @@ pub struct NameIdentifierCollection { pub next_link: Option, } impl azure_core::Continuable for NameIdentifierCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NameIdentifierCollection { @@ -7345,8 +7345,8 @@ pub struct OutboundEnvironmentEndpointCollection { pub next_link: Option, } impl azure_core::Continuable for OutboundEnvironmentEndpointCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OutboundEnvironmentEndpointCollection { @@ -7364,8 +7364,8 @@ pub struct PerfMonCounterCollection { pub next_link: Option, } impl azure_core::Continuable for PerfMonCounterCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PerfMonCounterCollection { @@ -7556,8 +7556,8 @@ pub struct PremierAddOnOfferCollection { pub next_link: Option, } impl azure_core::Continuable for PremierAddOnOfferCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PremierAddOnOfferCollection { @@ -7683,8 +7683,8 @@ pub struct PrivateEndpointConnectionCollection { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionCollection { @@ -7929,8 +7929,8 @@ pub struct ProcessInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessInfoCollection { @@ -8007,8 +8007,8 @@ pub struct ProcessModuleInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessModuleInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessModuleInfoCollection { @@ -8088,8 +8088,8 @@ pub struct ProcessThreadInfoCollection { pub next_link: Option, } impl azure_core::Continuable for ProcessThreadInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProcessThreadInfoCollection { @@ -8173,8 +8173,8 @@ pub struct PublicCertificateCollection { pub next_link: Option, } impl azure_core::Continuable for PublicCertificateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublicCertificateCollection { @@ -8192,8 +8192,8 @@ pub struct PublishingCredentialsPoliciesCollection { pub next_link: Option, } impl azure_core::Continuable for PublishingCredentialsPoliciesCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PublishingCredentialsPoliciesCollection { @@ -8489,8 +8489,8 @@ pub struct RecommendationCollection { pub next_link: Option, } impl azure_core::Continuable for RecommendationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RecommendationCollection { @@ -8896,8 +8896,8 @@ pub struct ResourceCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceCollection { @@ -8947,8 +8947,8 @@ pub struct ResourceHealthMetadataCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceHealthMetadataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceHealthMetadataCollection { @@ -9022,8 +9022,8 @@ pub struct ResourceMetricDefinitionCollection { pub next_link: Option, } impl azure_core::Continuable for ResourceMetricDefinitionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ResourceMetricDefinitionCollection { @@ -9463,8 +9463,8 @@ pub struct RevisionCollection { pub next_link: Option, } impl azure_core::Continuable for RevisionCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RevisionCollection { @@ -10489,8 +10489,8 @@ pub struct SiteConfigResourceCollection { pub next_link: Option, } impl azure_core::Continuable for SiteConfigResourceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteConfigResourceCollection { @@ -10540,8 +10540,8 @@ pub struct SiteConfigurationSnapshotInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SiteConfigurationSnapshotInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteConfigurationSnapshotInfoCollection { @@ -10653,8 +10653,8 @@ pub struct SiteExtensionInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SiteExtensionInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SiteExtensionInfoCollection { @@ -11119,8 +11119,8 @@ pub struct SkuInfoCollection { pub next_link: Option, } impl azure_core::Continuable for SkuInfoCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkuInfoCollection { @@ -11232,8 +11232,8 @@ pub struct SlotDifferenceCollection { pub next_link: Option, } impl azure_core::Continuable for SlotDifferenceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SlotDifferenceCollection { @@ -11319,8 +11319,8 @@ pub struct SnapshotCollection { pub next_link: Option, } impl azure_core::Continuable for SnapshotCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SnapshotCollection { @@ -11481,8 +11481,8 @@ pub struct SourceControlCollection { pub next_link: Option, } impl azure_core::Continuable for SourceControlCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SourceControlCollection { @@ -11628,8 +11628,8 @@ pub struct StampCapacityCollection { pub next_link: Option, } impl azure_core::Continuable for StampCapacityCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StampCapacityCollection { @@ -11876,8 +11876,8 @@ pub struct StaticSiteBuildCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteBuildCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteBuildCollection { @@ -11928,8 +11928,8 @@ pub struct StaticSiteCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteCollection { @@ -12035,8 +12035,8 @@ pub struct StaticSiteCustomDomainOverviewCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteCustomDomainOverviewCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteCustomDomainOverviewCollection { @@ -12155,8 +12155,8 @@ pub struct StaticSiteFunctionOverviewCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteFunctionOverviewCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteFunctionOverviewCollection { @@ -12282,8 +12282,8 @@ pub struct StaticSiteUserCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteUserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteUserCollection { @@ -12444,8 +12444,8 @@ pub struct StaticSiteUserProvidedFunctionAppsCollection { pub next_link: Option, } impl azure_core::Continuable for StaticSiteUserProvidedFunctionAppsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StaticSiteUserProvidedFunctionAppsCollection { @@ -12834,8 +12834,8 @@ pub struct TldLegalAgreementCollection { pub next_link: Option, } impl azure_core::Continuable for TldLegalAgreementCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TldLegalAgreementCollection { @@ -12918,8 +12918,8 @@ pub struct TopLevelDomainCollection { pub next_link: Option, } impl azure_core::Continuable for TopLevelDomainCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TopLevelDomainCollection { @@ -12984,8 +12984,8 @@ pub struct TriggeredJobHistoryCollection { pub next_link: Option, } impl azure_core::Continuable for TriggeredJobHistoryCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggeredJobHistoryCollection { @@ -13120,8 +13120,8 @@ pub struct TriggeredWebJobCollection { pub next_link: Option, } impl azure_core::Continuable for TriggeredWebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl TriggeredWebJobCollection { @@ -13229,8 +13229,8 @@ pub struct UsageCollection { pub next_link: Option, } impl azure_core::Continuable for UsageCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UsageCollection { @@ -13796,8 +13796,8 @@ pub struct WebAppCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppCollection { @@ -13815,8 +13815,8 @@ pub struct WebAppInstanceStatusCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppInstanceStatusCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppInstanceStatusCollection { @@ -13980,8 +13980,8 @@ pub struct WebAppStackCollection { pub next_link: Option, } impl azure_core::Continuable for WebAppStackCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebAppStackCollection { @@ -14055,8 +14055,8 @@ pub struct WebJobCollection { pub next_link: Option, } impl azure_core::Continuable for WebJobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebJobCollection { @@ -14194,8 +14194,8 @@ pub struct WorkerPoolCollection { pub next_link: Option, } impl azure_core::Continuable for WorkerPoolCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WorkerPoolCollection { diff --git a/services/mgmt/web/src/package_2021_03/operations.rs b/services/mgmt/web/src/package_2021_03/operations.rs index 16c43ecd04..3884ef8bc0 100644 --- a/services/mgmt/web/src/package_2021_03/operations.rs +++ b/services/mgmt/web/src/package_2021_03/operations.rs @@ -452,9 +452,9 @@ pub mod app_service_certificate_orders { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -473,6 +473,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -574,9 +577,9 @@ pub mod app_service_certificate_orders { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -595,6 +598,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -869,9 +875,9 @@ pub mod app_service_certificate_orders { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.CertificateRegistration/certificateOrders/{}/certificates" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . certificate_order_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -890,6 +896,9 @@ pub mod app_service_certificate_orders { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1549,9 +1558,9 @@ pub mod certificate_orders_diagnostics { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.CertificateRegistration/certificateOrders/{}/detectors" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . certificate_order_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1570,6 +1579,9 @@ pub mod certificate_orders_diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1702,9 +1714,9 @@ pub mod certificate_registration_provider { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1723,6 +1735,9 @@ pub mod certificate_registration_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2053,9 +2068,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2074,6 +2089,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2177,9 +2195,9 @@ pub mod domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2198,6 +2216,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -2254,9 +2275,9 @@ pub mod domains { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2275,6 +2296,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2568,9 +2592,9 @@ pub mod domains { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.DomainRegistration/domains/{}/domainOwnershipIdentifiers" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . domain_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2589,6 +2613,9 @@ pub mod domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2978,9 +3005,9 @@ pub mod top_level_domains { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2999,6 +3026,9 @@ pub mod top_level_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3105,9 +3135,9 @@ pub mod top_level_domains { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3126,6 +3156,9 @@ pub mod top_level_domains { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -3188,9 +3221,9 @@ pub mod domain_registration_provider { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3209,6 +3242,9 @@ pub mod domain_registration_provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3908,9 +3944,9 @@ pub mod app_service_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3929,6 +3965,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3984,9 +4023,9 @@ pub mod app_service_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4005,6 +4044,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4317,9 +4359,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4338,6 +4380,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4432,7 +4477,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -4460,9 +4505,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4481,6 +4526,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4738,9 +4786,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/inboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4759,6 +4807,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4816,9 +4867,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4837,6 +4888,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5068,9 +5122,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/instances/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . instance)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5089,6 +5143,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5140,9 +5197,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5161,6 +5218,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5212,9 +5272,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/skus" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5233,6 +5293,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5284,9 +5347,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/multiRolePools/default/usages" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5305,6 +5368,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5408,9 +5474,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/outboundNetworkDependenciesEndpoints" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5429,6 +5495,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5480,9 +5549,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5501,6 +5570,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5813,7 +5885,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -5840,9 +5912,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5861,6 +5933,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -5924,9 +5999,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5945,6 +6020,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6007,9 +6085,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6028,6 +6106,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6075,7 +6156,7 @@ pub mod app_service_environments { Accepted202(models::WebAppCollection), } impl azure_core::Continuable for Response { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { match self { Self::Ok200(x) => x.continuation(), Self::Accepted202(x) => x.continuation(), @@ -6102,9 +6183,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6123,6 +6204,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -6191,9 +6275,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6212,6 +6296,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6272,9 +6359,9 @@ pub mod app_service_environments { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6293,6 +6380,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6531,9 +6621,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/workerPools/{}/instances/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . worker_pool_name , & this . instance)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6552,6 +6642,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6604,9 +6697,9 @@ pub mod app_service_environments { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/hostingEnvironments/{}/workerPools/{}/metricdefinitions" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . worker_pool_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6625,6 +6718,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6684,9 +6780,9 @@ pub mod app_service_environments { &this.worker_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6705,6 +6801,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6764,9 +6863,9 @@ pub mod app_service_environments { &this.worker_pool_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6785,6 +6884,9 @@ pub mod app_service_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7280,9 +7382,9 @@ pub mod app_service_plans { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7301,6 +7403,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7359,9 +7464,9 @@ pub mod app_service_plans { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7380,6 +7485,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7863,9 +7971,9 @@ pub mod app_service_plans { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/serverfarms/{}/hybridConnectionNamespaces/{}/relays/{}/sites" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . namespace_name , & this . relay_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7884,6 +7992,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7993,9 +8104,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8014,6 +8125,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8145,9 +8259,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8166,6 +8280,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8289,9 +8406,9 @@ pub mod app_service_plans { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8310,6 +8427,9 @@ pub mod app_service_plans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8951,9 +9071,9 @@ pub mod certificates { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8972,6 +9092,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9030,9 +9153,9 @@ pub mod certificates { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9051,6 +9174,9 @@ pub mod certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9394,9 +9520,9 @@ pub mod container_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9415,6 +9541,9 @@ pub mod container_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9470,9 +9599,9 @@ pub mod container_apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9491,6 +9620,9 @@ pub mod container_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9855,9 +9987,9 @@ pub mod container_apps_revisions { &this.container_app_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9876,6 +10008,9 @@ pub mod container_apps_revisions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10171,9 +10306,9 @@ pub mod deleted_web_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10192,6 +10327,9 @@ pub mod deleted_web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10247,9 +10385,9 @@ pub mod deleted_web_apps { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10268,6 +10406,9 @@ pub mod deleted_web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10782,9 +10923,9 @@ pub mod diagnostics { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10803,6 +10944,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -10938,9 +11082,9 @@ pub mod diagnostics { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -10959,6 +11103,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11094,9 +11241,9 @@ pub mod diagnostics { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11115,6 +11262,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11228,9 +11378,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11249,6 +11399,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11445,9 +11598,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11466,6 +11619,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11662,9 +11818,9 @@ pub mod diagnostics { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11683,6 +11839,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11822,9 +11981,9 @@ pub mod diagnostics { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11843,6 +12002,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -11960,9 +12122,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -11981,6 +12143,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12174,9 +12339,9 @@ pub mod diagnostics { &this.diagnostic_category ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12195,6 +12360,9 @@ pub mod diagnostics { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12657,9 +12825,9 @@ pub mod kube_environments { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12678,6 +12846,9 @@ pub mod kube_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -12733,9 +12904,9 @@ pub mod kube_environments { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -12754,6 +12925,9 @@ pub mod kube_environments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13098,9 +13272,9 @@ pub mod provider { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/availableStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13119,6 +13293,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13176,9 +13353,9 @@ pub mod provider { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/functionAppStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13197,6 +13374,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13258,9 +13438,9 @@ pub mod provider { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13279,6 +13459,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13340,9 +13523,9 @@ pub mod provider { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13361,6 +13544,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13412,9 +13598,9 @@ pub mod provider { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13433,6 +13619,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13486,9 +13675,9 @@ pub mod provider { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/webAppStacks", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13507,6 +13696,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13568,9 +13760,9 @@ pub mod provider { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13589,6 +13781,9 @@ pub mod provider { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -13883,9 +14078,9 @@ pub mod recommendations { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -13904,6 +14099,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14069,9 +14267,9 @@ pub mod recommendations { &this.hosting_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14090,6 +14288,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14165,9 +14366,9 @@ pub mod recommendations { &this.hosting_environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14186,6 +14387,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14480,9 +14684,9 @@ pub mod recommendations { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14501,6 +14705,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14576,9 +14783,9 @@ pub mod recommendations { &this.site_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14597,6 +14804,9 @@ pub mod recommendations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -14960,9 +15170,9 @@ pub mod resource_health_metadata { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -14981,6 +15191,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15036,9 +15249,9 @@ pub mod resource_health_metadata { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15057,6 +15270,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15114,9 +15330,9 @@ pub mod resource_health_metadata { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15135,6 +15351,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15246,9 +15465,9 @@ pub mod resource_health_metadata { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15267,6 +15486,9 @@ pub mod resource_health_metadata { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15616,9 +15838,9 @@ pub mod list_source_controls { async move { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Web/sourcecontrols", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15637,6 +15859,9 @@ pub mod list_source_controls { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15798,9 +16023,9 @@ pub mod list_billing_meters { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15819,6 +16044,9 @@ pub mod list_billing_meters { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -15928,9 +16156,9 @@ pub mod list_custom_host_name_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -15949,6 +16177,9 @@ pub mod list_custom_host_name_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16070,9 +16301,9 @@ pub mod list_geo_regions { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16091,6 +16322,9 @@ pub mod list_geo_regions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -16163,9 +16397,9 @@ pub mod list_site_identifiers_assigned_to_host_name { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16184,6 +16418,9 @@ pub mod list_site_identifiers_assigned_to_host_name { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -16238,9 +16475,9 @@ pub mod list_premier_add_on_offers { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -16259,6 +16496,9 @@ pub mod list_premier_add_on_offers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17372,9 +17612,9 @@ pub mod static_sites { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17393,6 +17633,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17448,9 +17691,9 @@ pub mod static_sites { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17469,6 +17712,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -17761,9 +18007,9 @@ pub mod static_sites { &this.authprovider ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17782,6 +18028,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -17950,9 +18199,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -17971,6 +18220,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18247,9 +18499,9 @@ pub mod static_sites { &this.environment_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18268,6 +18520,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18423,9 +18678,9 @@ pub mod static_sites { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/staticSites/{}/builds/{}/userProvidedFunctionApps" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . environment_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18444,6 +18699,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -18886,9 +19144,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -18907,6 +19165,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19253,9 +19514,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19274,6 +19535,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19543,9 +19807,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19564,6 +19828,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -19913,9 +20180,9 @@ pub mod static_sites { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -19934,6 +20201,9 @@ pub mod static_sites { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26822,9 +27092,9 @@ pub mod web_apps { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26843,6 +27113,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -26903,9 +27176,9 @@ pub mod web_apps { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -26924,6 +27197,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27402,9 +27678,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27423,6 +27699,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27698,9 +27977,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -27719,6 +27998,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -27988,9 +28270,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28009,6 +28291,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28700,9 +28985,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28721,6 +29006,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -28826,9 +29114,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/config/configreferences/connectionstrings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -28847,6 +29135,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29698,9 +29989,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -29719,6 +30010,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -29997,9 +30291,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30018,6 +30312,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30286,9 +30583,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30307,6 +30604,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -30637,9 +30937,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -30658,6 +30958,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31199,9 +31502,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -31220,6 +31523,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -31989,9 +32295,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32010,6 +32316,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -32744,9 +33053,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -32765,6 +33074,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33043,9 +33355,9 @@ pub mod web_apps { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33064,6 +33376,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33289,9 +33604,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33310,6 +33625,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33429,9 +33747,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33450,6 +33768,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -33560,9 +33881,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -33581,6 +33902,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -34631,9 +34955,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -34652,6 +34976,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35138,9 +35465,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35159,6 +35486,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35458,9 +35788,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35479,6 +35809,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35696,9 +36029,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35717,6 +36050,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35832,9 +36168,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35853,6 +36189,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -35910,9 +36249,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -35931,6 +36270,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36491,9 +36833,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36512,6 +36854,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -36737,9 +37082,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -36758,6 +37103,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37247,9 +37595,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37268,6 +37616,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37546,9 +37897,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/basicPublishingCredentialsPolicies" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37567,6 +37918,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -37818,9 +38172,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -37839,6 +38193,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38542,9 +38899,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/config/configreferences/appsettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38563,6 +38920,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -38663,9 +39023,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/config/configreferences/connectionstrings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -38684,6 +39044,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39449,9 +39812,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39470,6 +39833,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -39750,9 +40116,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -39771,6 +40137,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40049,9 +40418,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40070,6 +40439,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40412,9 +40784,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40433,6 +40805,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -40886,9 +41261,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -40907,6 +41282,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -41704,9 +42082,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -41725,6 +42103,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -42483,9 +42864,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42504,6 +42885,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -42768,9 +43152,9 @@ pub mod web_apps { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -42789,6 +43173,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43004,9 +43391,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/instances/{}/processes/{}/modules" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot , & this . instance_id , & this . process_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43025,6 +43412,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43129,9 +43519,9 @@ pub mod web_apps { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/sites/{}/slots/{}/instances/{}/processes/{}/threads" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . name , & this . slot , & this . instance_id , & this . process_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43150,6 +43540,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -43264,9 +43657,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -43285,6 +43678,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -44245,9 +44641,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44266,6 +44662,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -44770,9 +45169,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -44791,6 +45190,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45100,9 +45502,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45121,6 +45523,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45346,9 +45751,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45367,6 +45772,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45486,9 +45894,9 @@ pub mod web_apps { &this.process_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45507,6 +45915,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -45566,9 +45977,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -45587,6 +45998,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46167,9 +46581,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46188,6 +46602,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46422,9 +46839,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46443,6 +46860,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -46561,9 +46981,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46582,6 +47002,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -46641,9 +47064,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -46662,6 +47085,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47349,9 +47775,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47370,6 +47796,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47544,9 +47973,9 @@ pub mod web_apps { &this.web_job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47565,6 +47994,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -47731,9 +48163,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -47752,6 +48184,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48243,9 +48678,9 @@ pub mod web_apps { &this.slot ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48264,6 +48699,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48378,9 +48816,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48399,6 +48837,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -48513,9 +48954,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48534,6 +48975,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -48591,9 +49035,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -48612,6 +49056,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -49277,9 +49724,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -49298,6 +49745,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -49466,9 +49916,9 @@ pub mod web_apps { &this.web_job_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -49487,6 +49937,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -49656,9 +50109,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -49677,6 +50130,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -50153,9 +50609,9 @@ pub mod web_apps { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -50174,6 +50630,9 @@ pub mod web_apps { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/webpubsub/src/package_2021_04_01_preview/models.rs b/services/mgmt/webpubsub/src/package_2021_04_01_preview/models.rs index 7e56a6565a..6fcb921965 100644 --- a/services/mgmt/webpubsub/src/package_2021_04_01_preview/models.rs +++ b/services/mgmt/webpubsub/src/package_2021_04_01_preview/models.rs @@ -109,7 +109,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -455,8 +455,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -532,8 +532,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -584,8 +584,8 @@ pub struct PrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { @@ -870,8 +870,8 @@ pub struct SharedPrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceList { @@ -987,8 +987,8 @@ pub struct SignalRServiceUsageList { pub next_link: Option, } impl azure_core::Continuable for SignalRServiceUsageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRServiceUsageList { @@ -1278,8 +1278,8 @@ pub struct WebPubSubResourceList { pub next_link: Option, } impl azure_core::Continuable for WebPubSubResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebPubSubResourceList { diff --git a/services/mgmt/webpubsub/src/package_2021_04_01_preview/operations.rs b/services/mgmt/webpubsub/src/package_2021_04_01_preview/operations.rs index 6700cdf3c1..8e79cd1e13 100644 --- a/services/mgmt/webpubsub/src/package_2021_04_01_preview/operations.rs +++ b/services/mgmt/webpubsub/src/package_2021_04_01_preview/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SignalRService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -375,9 +378,9 @@ pub mod web_pub_sub { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -396,6 +399,9 @@ pub mod web_pub_sub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -451,9 +457,9 @@ pub mod web_pub_sub { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -472,6 +478,9 @@ pub mod web_pub_sub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -937,9 +946,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -958,6 +967,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1075,9 +1087,9 @@ pub mod web_pub_sub_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/webPubSub/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1096,6 +1108,9 @@ pub mod web_pub_sub_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1319,9 +1334,9 @@ pub mod web_pub_sub_private_link_resources { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1340,6 +1355,9 @@ pub mod web_pub_sub_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1457,9 +1475,9 @@ pub mod web_pub_sub_shared_private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/webPubSub/{}/sharedPrivateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1478,6 +1496,9 @@ pub mod web_pub_sub_shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/webpubsub/src/package_2021_06_01_preview/models.rs b/services/mgmt/webpubsub/src/package_2021_06_01_preview/models.rs index 009c83faf9..0f0aad1ab3 100644 --- a/services/mgmt/webpubsub/src/package_2021_06_01_preview/models.rs +++ b/services/mgmt/webpubsub/src/package_2021_06_01_preview/models.rs @@ -127,7 +127,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -434,8 +434,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -511,8 +511,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -563,8 +563,8 @@ pub struct PrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { @@ -849,8 +849,8 @@ pub struct SharedPrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceList { @@ -966,8 +966,8 @@ pub struct SignalRServiceUsageList { pub next_link: Option, } impl azure_core::Continuable for SignalRServiceUsageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRServiceUsageList { @@ -1243,8 +1243,8 @@ pub struct WebPubSubResourceList { pub next_link: Option, } impl azure_core::Continuable for WebPubSubResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebPubSubResourceList { diff --git a/services/mgmt/webpubsub/src/package_2021_06_01_preview/operations.rs b/services/mgmt/webpubsub/src/package_2021_06_01_preview/operations.rs index 117d3c0e94..865c24a31a 100644 --- a/services/mgmt/webpubsub/src/package_2021_06_01_preview/operations.rs +++ b/services/mgmt/webpubsub/src/package_2021_06_01_preview/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SignalRService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -375,9 +378,9 @@ pub mod web_pub_sub { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -396,6 +399,9 @@ pub mod web_pub_sub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -451,9 +457,9 @@ pub mod web_pub_sub { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -472,6 +478,9 @@ pub mod web_pub_sub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -937,9 +946,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -958,6 +967,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1075,9 +1087,9 @@ pub mod web_pub_sub_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/webPubSub/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1096,6 +1108,9 @@ pub mod web_pub_sub_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1319,9 +1334,9 @@ pub mod web_pub_sub_private_link_resources { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1340,6 +1355,9 @@ pub mod web_pub_sub_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1457,9 +1475,9 @@ pub mod web_pub_sub_shared_private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/webPubSub/{}/sharedPrivateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1478,6 +1496,9 @@ pub mod web_pub_sub_shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/webpubsub/src/package_2021_09_01_preview/models.rs b/services/mgmt/webpubsub/src/package_2021_09_01_preview/models.rs index 20e2e783f1..8c41dc1c9b 100644 --- a/services/mgmt/webpubsub/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/webpubsub/src/package_2021_09_01_preview/models.rs @@ -109,7 +109,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -446,8 +446,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -523,8 +523,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -575,8 +575,8 @@ pub struct PrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { @@ -900,8 +900,8 @@ pub struct SharedPrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceList { @@ -1017,8 +1017,8 @@ pub struct SignalRServiceUsageList { pub next_link: Option, } impl azure_core::Continuable for SignalRServiceUsageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRServiceUsageList { @@ -1351,8 +1351,8 @@ pub struct WebPubSubResourceList { pub next_link: Option, } impl azure_core::Continuable for WebPubSubResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebPubSubResourceList { diff --git a/services/mgmt/webpubsub/src/package_2021_09_01_preview/operations.rs b/services/mgmt/webpubsub/src/package_2021_09_01_preview/operations.rs index baca1a5ef6..8447d60d2e 100644 --- a/services/mgmt/webpubsub/src/package_2021_09_01_preview/operations.rs +++ b/services/mgmt/webpubsub/src/package_2021_09_01_preview/operations.rs @@ -116,9 +116,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SignalRService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -137,6 +137,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -388,9 +391,9 @@ pub mod web_pub_sub { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -409,6 +412,9 @@ pub mod web_pub_sub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -464,9 +470,9 @@ pub mod web_pub_sub { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -485,6 +491,9 @@ pub mod web_pub_sub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1002,9 +1011,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1023,6 +1032,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1140,9 +1152,9 @@ pub mod web_pub_sub_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/webPubSub/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1161,6 +1173,9 @@ pub mod web_pub_sub_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1384,9 +1399,9 @@ pub mod web_pub_sub_private_link_resources { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1405,6 +1420,9 @@ pub mod web_pub_sub_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1522,9 +1540,9 @@ pub mod web_pub_sub_shared_private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/webPubSub/{}/sharedPrivateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1543,6 +1561,9 @@ pub mod web_pub_sub_shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/webpubsub/src/package_2021_10_01/models.rs b/services/mgmt/webpubsub/src/package_2021_10_01/models.rs index f157eba950..f708fb9f28 100644 --- a/services/mgmt/webpubsub/src/package_2021_10_01/models.rs +++ b/services/mgmt/webpubsub/src/package_2021_10_01/models.rs @@ -109,7 +109,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -436,8 +436,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { @@ -513,8 +513,8 @@ pub struct PrivateEndpointConnectionList { pub next_link: Option, } impl azure_core::Continuable for PrivateEndpointConnectionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateEndpointConnectionList { @@ -568,8 +568,8 @@ pub struct PrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for PrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PrivateLinkResourceList { @@ -920,8 +920,8 @@ pub struct SharedPrivateLinkResourceList { pub next_link: Option, } impl azure_core::Continuable for SharedPrivateLinkResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SharedPrivateLinkResourceList { @@ -1037,8 +1037,8 @@ pub struct SignalRServiceUsageList { pub next_link: Option, } impl azure_core::Continuable for SignalRServiceUsageList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SignalRServiceUsageList { @@ -1233,8 +1233,8 @@ pub struct WebPubSubHubList { pub next_link: Option, } impl azure_core::Continuable for WebPubSubHubList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebPubSubHubList { @@ -1429,8 +1429,8 @@ pub struct WebPubSubResourceList { pub next_link: Option, } impl azure_core::Continuable for WebPubSubResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WebPubSubResourceList { diff --git a/services/mgmt/webpubsub/src/package_2021_10_01/operations.rs b/services/mgmt/webpubsub/src/package_2021_10_01/operations.rs index cbf9aa510e..9c91917026 100644 --- a/services/mgmt/webpubsub/src/package_2021_10_01/operations.rs +++ b/services/mgmt/webpubsub/src/package_2021_10_01/operations.rs @@ -119,9 +119,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.SignalRService/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -140,6 +140,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -391,9 +394,9 @@ pub mod web_pub_sub { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -412,6 +415,9 @@ pub mod web_pub_sub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -467,9 +473,9 @@ pub mod web_pub_sub { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -488,6 +494,9 @@ pub mod web_pub_sub { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1005,9 +1014,9 @@ pub mod usages { &this.location ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1026,6 +1035,9 @@ pub mod usages { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1149,9 +1161,9 @@ pub mod web_pub_sub_hubs { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1170,6 +1182,9 @@ pub mod web_pub_sub_hubs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1465,9 +1480,9 @@ pub mod web_pub_sub_private_endpoint_connections { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/webPubSub/{}/privateEndpointConnections" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1486,6 +1501,9 @@ pub mod web_pub_sub_private_endpoint_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1709,9 +1727,9 @@ pub mod web_pub_sub_private_link_resources { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1730,6 +1748,9 @@ pub mod web_pub_sub_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1847,9 +1868,9 @@ pub mod web_pub_sub_shared_private_link_resources { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.SignalRService/webPubSub/{}/sharedPrivateLinkResources" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1868,6 +1889,9 @@ pub mod web_pub_sub_shared_private_link_resources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/windowsesu/src/package_2019_09_16_preview/models.rs b/services/mgmt/windowsesu/src/package_2019_09_16_preview/models.rs index 53c4944725..b027b7b04a 100644 --- a/services/mgmt/windowsesu/src/package_2019_09_16_preview/models.rs +++ b/services/mgmt/windowsesu/src/package_2019_09_16_preview/models.rs @@ -30,7 +30,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -228,8 +228,8 @@ pub struct MultipleActivationKeyList { pub next_link: Option, } impl azure_core::Continuable for MultipleActivationKeyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MultipleActivationKeyList { @@ -292,8 +292,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/windowsesu/src/package_2019_09_16_preview/operations.rs b/services/mgmt/windowsesu/src/package_2019_09_16_preview/operations.rs index a2ea09388f..8cf03d3664 100644 --- a/services/mgmt/windowsesu/src/package_2019_09_16_preview/operations.rs +++ b/services/mgmt/windowsesu/src/package_2019_09_16_preview/operations.rs @@ -104,9 +104,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.WindowsESU/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -125,6 +125,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -257,9 +260,9 @@ pub mod multiple_activation_keys { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -278,6 +281,9 @@ pub mod multiple_activation_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -333,9 +339,9 @@ pub mod multiple_activation_keys { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -354,6 +360,9 @@ pub mod multiple_activation_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/windowsiot/src/package_2018_02_preview/models.rs b/services/mgmt/windowsiot/src/package_2018_02_preview/models.rs index 2bd17bc4b6..4e061a5971 100644 --- a/services/mgmt/windowsiot/src/package_2018_02_preview/models.rs +++ b/services/mgmt/windowsiot/src/package_2018_02_preview/models.rs @@ -43,8 +43,8 @@ pub struct DeviceServiceDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for DeviceServiceDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceServiceDescriptionListResult { @@ -120,7 +120,7 @@ pub struct ErrorDetails { pub details: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -176,8 +176,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/windowsiot/src/package_2018_02_preview/operations.rs b/services/mgmt/windowsiot/src/package_2018_02_preview/operations.rs index f0bc66a80f..917579b827 100644 --- a/services/mgmt/windowsiot/src/package_2018_02_preview/operations.rs +++ b/services/mgmt/windowsiot/src/package_2018_02_preview/operations.rs @@ -104,9 +104,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.WindowsIoT/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -125,6 +125,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -502,9 +505,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -523,6 +526,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -576,9 +582,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -597,6 +603,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/windowsiot/src/package_2019_06/models.rs b/services/mgmt/windowsiot/src/package_2019_06/models.rs index 0667a2a0a0..39df95926f 100644 --- a/services/mgmt/windowsiot/src/package_2019_06/models.rs +++ b/services/mgmt/windowsiot/src/package_2019_06/models.rs @@ -43,8 +43,8 @@ pub struct DeviceServiceDescriptionListResult { pub next_link: Option, } impl azure_core::Continuable for DeviceServiceDescriptionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceServiceDescriptionListResult { @@ -111,7 +111,7 @@ pub struct ErrorDetails { pub error: Option, } impl azure_core::Continuable for ErrorDetails { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -197,8 +197,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/windowsiot/src/package_2019_06/operations.rs b/services/mgmt/windowsiot/src/package_2019_06/operations.rs index 7cb97420e5..8e132a4b56 100644 --- a/services/mgmt/windowsiot/src/package_2019_06/operations.rs +++ b/services/mgmt/windowsiot/src/package_2019_06/operations.rs @@ -104,9 +104,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.WindowsIoT/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -125,6 +125,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -520,9 +523,9 @@ pub mod services { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -541,6 +544,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -594,9 +600,9 @@ pub mod services { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -615,6 +621,9 @@ pub mod services { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/workloadmonitor/src/package_2018_08_31_preview/models.rs b/services/mgmt/workloadmonitor/src/package_2018_08_31_preview/models.rs index b3c1acc1bd..8eba0b071f 100644 --- a/services/mgmt/workloadmonitor/src/package_2018_08_31_preview/models.rs +++ b/services/mgmt/workloadmonitor/src/package_2018_08_31_preview/models.rs @@ -185,8 +185,8 @@ pub struct ComponentsCollection { pub value: Vec, } impl azure_core::Continuable for ComponentsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComponentsCollection { @@ -226,7 +226,7 @@ pub struct ErrorResponse { pub details: Vec, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -562,8 +562,8 @@ pub struct MonitorInstancesCollection { pub value: Vec, } impl azure_core::Continuable for MonitorInstancesCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitorInstancesCollection { @@ -710,8 +710,8 @@ pub struct MonitorsCollection { pub value: Vec, } impl azure_core::Continuable for MonitorsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitorsCollection { @@ -758,8 +758,8 @@ pub struct NotificationSettingsCollection { pub next_link: Option, } impl azure_core::Continuable for NotificationSettingsCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NotificationSettingsCollection { @@ -796,8 +796,8 @@ pub struct OperationListResult { pub value: Vec, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { diff --git a/services/mgmt/workloadmonitor/src/package_2018_08_31_preview/operations.rs b/services/mgmt/workloadmonitor/src/package_2018_08_31_preview/operations.rs index d29b7a6dc2..4de37b1cf8 100644 --- a/services/mgmt/workloadmonitor/src/package_2018_08_31_preview/operations.rs +++ b/services/mgmt/workloadmonitor/src/package_2018_08_31_preview/operations.rs @@ -200,9 +200,9 @@ pub mod monitors { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -221,6 +221,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -494,9 +497,9 @@ pub mod components { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -515,6 +518,9 @@ pub mod components { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -759,9 +765,9 @@ pub mod monitor_instances { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -780,6 +786,9 @@ pub mod monitor_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -991,9 +1000,9 @@ pub mod notification_settings { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.WorkloadMonitor/notificationSettings" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . resource_namespace , & this . resource_type , & this . resource_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1012,6 +1021,9 @@ pub mod notification_settings { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1223,9 +1235,9 @@ pub mod components_summary { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1244,6 +1256,9 @@ pub mod components_summary { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1373,9 +1388,9 @@ pub mod monitor_instances_summary { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1394,6 +1409,9 @@ pub mod monitor_instances_summary { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1484,9 +1502,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1505,6 +1523,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/workloadmonitor/src/package_2020_01_13_preview/models.rs b/services/mgmt/workloadmonitor/src/package_2020_01_13_preview/models.rs index 59b1d5d53d..cfc8a37d11 100644 --- a/services/mgmt/workloadmonitor/src/package_2020_01_13_preview/models.rs +++ b/services/mgmt/workloadmonitor/src/package_2020_01_13_preview/models.rs @@ -25,7 +25,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -78,8 +78,8 @@ pub struct HealthMonitorList { pub next_link: Option, } impl azure_core::Continuable for HealthMonitorList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HealthMonitorList { @@ -150,8 +150,8 @@ pub struct HealthMonitorStateChangeList { pub next_link: Option, } impl azure_core::Continuable for HealthMonitorStateChangeList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl HealthMonitorStateChangeList { @@ -286,8 +286,8 @@ pub struct OperationList { pub next_link: Option, } impl azure_core::Continuable for OperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationList { diff --git a/services/mgmt/workloadmonitor/src/package_2020_01_13_preview/operations.rs b/services/mgmt/workloadmonitor/src/package_2020_01_13_preview/operations.rs index 7f5db051b3..cac209537e 100644 --- a/services/mgmt/workloadmonitor/src/package_2020_01_13_preview/operations.rs +++ b/services/mgmt/workloadmonitor/src/package_2020_01_13_preview/operations.rs @@ -107,9 +107,9 @@ pub mod operations { this.client.endpoint(), ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -128,6 +128,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -293,9 +296,9 @@ pub mod health_monitors { &this.resource_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -314,6 +317,9 @@ pub mod health_monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -460,9 +466,9 @@ pub mod health_monitors { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/{}/{}/{}/providers/Microsoft.WorkloadMonitor/monitors/{}/history" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . provider_name , & this . resource_collection_name , & this . resource_name , & this . monitor_id)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -481,6 +487,9 @@ pub mod health_monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/mgmt/workloads/src/package_2021_12_01_preview/models.rs b/services/mgmt/workloads/src/package_2021_12_01_preview/models.rs index e5a89dee55..900d60eae0 100644 --- a/services/mgmt/workloads/src/package_2021_12_01_preview/models.rs +++ b/services/mgmt/workloads/src/package_2021_12_01_preview/models.rs @@ -624,7 +624,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -986,8 +986,8 @@ pub struct MonitorListResult { pub next_link: Option, } impl azure_core::Continuable for MonitorListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MonitorListResult { @@ -1370,8 +1370,8 @@ pub struct OperationListResult { pub next_link: Option, } impl azure_core::Continuable for OperationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OperationListResult { @@ -1685,8 +1685,8 @@ pub struct ProviderInstanceListResult { pub next_link: Option, } impl azure_core::Continuable for ProviderInstanceListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderInstanceListResult { @@ -1892,8 +1892,8 @@ pub struct SapApplicationServerInstanceList { pub next_link: Option, } impl azure_core::Continuable for SapApplicationServerInstanceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SapApplicationServerInstanceList { @@ -2012,8 +2012,8 @@ pub struct SapCentralInstanceList { pub next_link: Option, } impl azure_core::Continuable for SapCentralInstanceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SapCentralInstanceList { @@ -2126,8 +2126,8 @@ pub struct SapDatabaseInstanceList { pub next_link: Option, } impl azure_core::Continuable for SapDatabaseInstanceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SapDatabaseInstanceList { @@ -2580,8 +2580,8 @@ pub struct SapVirtualInstanceList { pub next_link: Option, } impl azure_core::Continuable for SapVirtualInstanceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SapVirtualInstanceList { @@ -3272,8 +3272,8 @@ pub struct SkusListResult { pub next_link: Option, } impl azure_core::Continuable for SkusListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SkusListResult { @@ -4503,8 +4503,8 @@ pub struct PhpWorkloadResourceList { pub next_link: Option, } impl azure_core::Continuable for PhpWorkloadResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PhpWorkloadResourceList { @@ -4873,8 +4873,8 @@ pub struct WordpressInstanceResourceList { pub next_link: Option, } impl azure_core::Continuable for WordpressInstanceResourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl WordpressInstanceResourceList { diff --git a/services/mgmt/workloads/src/package_2021_12_01_preview/operations.rs b/services/mgmt/workloads/src/package_2021_12_01_preview/operations.rs index 1d0615ae3c..e08a18ebe2 100644 --- a/services/mgmt/workloads/src/package_2021_12_01_preview/operations.rs +++ b/services/mgmt/workloads/src/package_2021_12_01_preview/operations.rs @@ -203,9 +203,9 @@ pub mod php_workloads { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -224,6 +224,9 @@ pub mod php_workloads { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -279,9 +282,9 @@ pub mod php_workloads { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -300,6 +303,9 @@ pub mod php_workloads { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -651,9 +657,9 @@ pub mod wordpress_instances { &this.php_workload_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -672,6 +678,9 @@ pub mod wordpress_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1497,9 +1506,9 @@ pub mod sap_virtual_instances { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1518,6 +1527,9 @@ pub mod sap_virtual_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1571,9 +1583,9 @@ pub mod sap_virtual_instances { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1592,6 +1604,9 @@ pub mod sap_virtual_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2093,9 +2108,9 @@ pub mod sap_central_instances { &this.sap_virtual_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2114,6 +2129,9 @@ pub mod sap_central_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2488,9 +2506,9 @@ pub mod sap_database_instances { &this.sap_virtual_instance_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2509,6 +2527,9 @@ pub mod sap_database_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2877,9 +2898,9 @@ pub mod sap_application_server_instances { async move { let mut url = azure_core :: Url :: parse (& format ! ("{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Workloads/sapVirtualInstances/{}/applicationInstances" , this . client . endpoint () , & this . subscription_id , & this . resource_group_name , & this . sap_virtual_instance_name)) ? ; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2898,6 +2919,9 @@ pub mod sap_application_server_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2956,9 +2980,9 @@ pub mod operations { let mut url = azure_core::Url::parse(&format!("{}/providers/Microsoft.Workloads/operations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2977,6 +3001,9 @@ pub mod operations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3115,9 +3142,9 @@ pub mod monitors { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3136,6 +3163,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3191,9 +3221,9 @@ pub mod monitors { &this.resource_group_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3212,6 +3242,9 @@ pub mod monitors { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3569,9 +3602,9 @@ pub mod provider_instances { &this.monitor_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3590,6 +3623,9 @@ pub mod provider_instances { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3837,9 +3873,9 @@ pub mod skus { &this.subscription_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3858,6 +3894,9 @@ pub mod skus { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/appconfiguration/src/package_2019_07/models.rs b/services/svc/appconfiguration/src/package_2019_07/models.rs index 95efa68d2f..21cd31a78b 100644 --- a/services/svc/appconfiguration/src/package_2019_07/models.rs +++ b/services/svc/appconfiguration/src/package_2019_07/models.rs @@ -24,7 +24,7 @@ pub struct Error { pub status: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -54,8 +54,8 @@ pub struct KeyListResult { pub next_link: Option, } impl azure_core::Continuable for KeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyListResult { @@ -98,8 +98,8 @@ pub struct KeyValueListResult { pub next_link: Option, } impl azure_core::Continuable for KeyValueListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyValueListResult { @@ -128,8 +128,8 @@ pub struct LabelListResult { pub next_link: Option, } impl azure_core::Continuable for LabelListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LabelListResult { diff --git a/services/svc/appconfiguration/src/package_2019_07/operations.rs b/services/svc/appconfiguration/src/package_2019_07/operations.rs index 27874a5fb8..a11abe4222 100644 --- a/services/svc/appconfiguration/src/package_2019_07/operations.rs +++ b/services/svc/appconfiguration/src/package_2019_07/operations.rs @@ -271,9 +271,9 @@ pub mod get_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/keys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -292,6 +292,9 @@ pub mod get_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -453,9 +456,9 @@ pub mod get_key_values { async move { let mut url = azure_core::Url::parse(&format!("{}/kv", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -474,6 +477,9 @@ pub mod get_key_values { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -979,9 +985,9 @@ pub mod get_labels { async move { let mut url = azure_core::Url::parse(&format!("{}/labels", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1000,6 +1006,9 @@ pub mod get_labels { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1318,9 +1327,9 @@ pub mod get_revisions { async move { let mut url = azure_core::Url::parse(&format!("{}/revisions", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1339,6 +1348,9 @@ pub mod get_revisions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/batch/src/package_2019_08_10_0/models.rs b/services/svc/batch/src/package_2019_08_10_0/models.rs index 0d051cc030..2b866260b8 100644 --- a/services/svc/batch/src/package_2019_08_10_0/models.rs +++ b/services/svc/batch/src/package_2019_08_10_0/models.rs @@ -13,8 +13,8 @@ pub struct AccountListSupportedImagesResult { pub odata_next_link: Option, } impl azure_core::Continuable for AccountListSupportedImagesResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountListSupportedImagesResult { @@ -41,8 +41,8 @@ pub struct ApplicationListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ApplicationListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationListResult { @@ -259,7 +259,7 @@ pub struct BatchError { pub values: Vec, } impl azure_core::Continuable for BatchError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -396,8 +396,8 @@ pub struct CertificateListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -550,8 +550,8 @@ pub struct CloudJobListPreparationAndReleaseTaskStatusResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobListPreparationAndReleaseTaskStatusResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobListPreparationAndReleaseTaskStatusResult { @@ -567,8 +567,8 @@ pub struct CloudJobListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobListResult { @@ -635,8 +635,8 @@ pub struct CloudJobScheduleListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobScheduleListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobScheduleListResult { @@ -777,8 +777,8 @@ pub struct CloudPoolListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudPoolListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudPoolListResult { @@ -891,8 +891,8 @@ pub struct CloudTaskListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudTaskListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudTaskListResult { @@ -1099,8 +1099,8 @@ pub struct ComputeNodeListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ComputeNodeListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComputeNodeListResult { @@ -2623,8 +2623,8 @@ pub struct NodeFileListResult { pub odata_next_link: Option, } impl azure_core::Continuable for NodeFileListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeFileListResult { @@ -2961,8 +2961,8 @@ pub struct PoolListUsageMetricsResult { pub odata_next_link: Option, } impl azure_core::Continuable for PoolListUsageMetricsResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PoolListUsageMetricsResult { @@ -2997,8 +2997,8 @@ pub struct PoolNodeCountsListResult { pub odata_next_link: Option, } impl azure_core::Continuable for PoolNodeCountsListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PoolNodeCountsListResult { diff --git a/services/svc/batch/src/package_2019_08_10_0/operations.rs b/services/svc/batch/src/package_2019_08_10_0/operations.rs index 742a8f2584..a657d094ae 100644 --- a/services/svc/batch/src/package_2019_08_10_0/operations.rs +++ b/services/svc/batch/src/package_2019_08_10_0/operations.rs @@ -168,9 +168,9 @@ pub mod application { async move { let mut url = azure_core::Url::parse(&format!("{}/applications", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -189,6 +189,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -598,9 +601,9 @@ pub mod pool { async move { let mut url = azure_core::Url::parse(&format!("{}/poolusagemetrics", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -619,6 +622,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -806,9 +812,9 @@ pub mod pool { async move { let mut url = azure_core::Url::parse(&format!("{}/pools", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -827,6 +833,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2117,9 +2126,9 @@ pub mod account { async move { let mut url = azure_core::Url::parse(&format!("{}/supportedimages", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2138,6 +2147,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2234,9 +2246,9 @@ pub mod account { async move { let mut url = azure_core::Url::parse(&format!("{}/nodecounts", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2255,6 +2267,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3400,9 +3415,9 @@ pub mod job { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3421,6 +3436,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3608,9 +3626,9 @@ pub mod job { let mut url = azure_core::Url::parse(&format!("{}/jobschedules/{}/jobs", this.client.endpoint(), &this.job_schedule_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3629,6 +3647,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3741,9 +3762,9 @@ pub mod job { &this.job_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3762,6 +3783,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4009,9 +4033,9 @@ pub mod certificate { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4030,6 +4054,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5197,9 +5224,9 @@ pub mod file { &this.task_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5218,6 +5245,9 @@ pub mod file { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5329,9 +5359,9 @@ pub mod file { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5350,6 +5380,9 @@ pub mod file { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6489,9 +6522,9 @@ pub mod job_schedule { async move { let mut url = azure_core::Url::parse(&format!("{}/jobschedules", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6510,6 +6543,9 @@ pub mod job_schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6845,9 +6881,9 @@ pub mod task { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs/{}/tasks", this.client.endpoint(), &this.job_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6866,6 +6902,9 @@ pub mod task { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8890,9 +8929,9 @@ pub mod compute_node { async move { let mut url = azure_core::Url::parse(&format!("{}/pools/{}/nodes", this.client.endpoint(), &this.pool_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8911,6 +8950,9 @@ pub mod compute_node { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/batch/src/package_2020_03_11_0/models.rs b/services/svc/batch/src/package_2020_03_11_0/models.rs index 3b74cee01a..a3e6c6f533 100644 --- a/services/svc/batch/src/package_2020_03_11_0/models.rs +++ b/services/svc/batch/src/package_2020_03_11_0/models.rs @@ -13,8 +13,8 @@ pub struct AccountListSupportedImagesResult { pub odata_next_link: Option, } impl azure_core::Continuable for AccountListSupportedImagesResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountListSupportedImagesResult { @@ -41,8 +41,8 @@ pub struct ApplicationListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ApplicationListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationListResult { @@ -259,7 +259,7 @@ pub struct BatchError { pub values: Vec, } impl azure_core::Continuable for BatchError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -396,8 +396,8 @@ pub struct CertificateListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -550,8 +550,8 @@ pub struct CloudJobListPreparationAndReleaseTaskStatusResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobListPreparationAndReleaseTaskStatusResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobListPreparationAndReleaseTaskStatusResult { @@ -567,8 +567,8 @@ pub struct CloudJobListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobListResult { @@ -635,8 +635,8 @@ pub struct CloudJobScheduleListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobScheduleListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobScheduleListResult { @@ -777,8 +777,8 @@ pub struct CloudPoolListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudPoolListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudPoolListResult { @@ -891,8 +891,8 @@ pub struct CloudTaskListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudTaskListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudTaskListResult { @@ -1099,8 +1099,8 @@ pub struct ComputeNodeListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ComputeNodeListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComputeNodeListResult { @@ -2644,8 +2644,8 @@ pub struct NodeFileListResult { pub odata_next_link: Option, } impl azure_core::Continuable for NodeFileListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeFileListResult { @@ -2983,8 +2983,8 @@ pub struct PoolListUsageMetricsResult { pub odata_next_link: Option, } impl azure_core::Continuable for PoolListUsageMetricsResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PoolListUsageMetricsResult { @@ -3019,8 +3019,8 @@ pub struct PoolNodeCountsListResult { pub odata_next_link: Option, } impl azure_core::Continuable for PoolNodeCountsListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PoolNodeCountsListResult { diff --git a/services/svc/batch/src/package_2020_03_11_0/operations.rs b/services/svc/batch/src/package_2020_03_11_0/operations.rs index b8be09b6c3..8447b3b2ba 100644 --- a/services/svc/batch/src/package_2020_03_11_0/operations.rs +++ b/services/svc/batch/src/package_2020_03_11_0/operations.rs @@ -168,9 +168,9 @@ pub mod application { async move { let mut url = azure_core::Url::parse(&format!("{}/applications", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -189,6 +189,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -598,9 +601,9 @@ pub mod pool { async move { let mut url = azure_core::Url::parse(&format!("{}/poolusagemetrics", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -619,6 +622,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -806,9 +812,9 @@ pub mod pool { async move { let mut url = azure_core::Url::parse(&format!("{}/pools", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -827,6 +833,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2117,9 +2126,9 @@ pub mod account { async move { let mut url = azure_core::Url::parse(&format!("{}/supportedimages", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2138,6 +2147,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2234,9 +2246,9 @@ pub mod account { async move { let mut url = azure_core::Url::parse(&format!("{}/nodecounts", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2255,6 +2267,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3400,9 +3415,9 @@ pub mod job { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3421,6 +3436,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3608,9 +3626,9 @@ pub mod job { let mut url = azure_core::Url::parse(&format!("{}/jobschedules/{}/jobs", this.client.endpoint(), &this.job_schedule_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3629,6 +3647,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3741,9 +3762,9 @@ pub mod job { &this.job_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3762,6 +3783,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4009,9 +4033,9 @@ pub mod certificate { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4030,6 +4054,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5197,9 +5224,9 @@ pub mod file { &this.task_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5218,6 +5245,9 @@ pub mod file { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5329,9 +5359,9 @@ pub mod file { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5350,6 +5380,9 @@ pub mod file { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6489,9 +6522,9 @@ pub mod job_schedule { async move { let mut url = azure_core::Url::parse(&format!("{}/jobschedules", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6510,6 +6543,9 @@ pub mod job_schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6845,9 +6881,9 @@ pub mod task { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs/{}/tasks", this.client.endpoint(), &this.job_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6866,6 +6902,9 @@ pub mod task { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8890,9 +8929,9 @@ pub mod compute_node { async move { let mut url = azure_core::Url::parse(&format!("{}/pools/{}/nodes", this.client.endpoint(), &this.pool_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8911,6 +8950,9 @@ pub mod compute_node { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/batch/src/package_2020_09_12_0/models.rs b/services/svc/batch/src/package_2020_09_12_0/models.rs index 8dea8f75a3..8eb8ccf812 100644 --- a/services/svc/batch/src/package_2020_09_12_0/models.rs +++ b/services/svc/batch/src/package_2020_09_12_0/models.rs @@ -13,8 +13,8 @@ pub struct AccountListSupportedImagesResult { pub odata_next_link: Option, } impl azure_core::Continuable for AccountListSupportedImagesResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountListSupportedImagesResult { @@ -41,8 +41,8 @@ pub struct ApplicationListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ApplicationListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationListResult { @@ -259,7 +259,7 @@ pub struct BatchError { pub values: Vec, } impl azure_core::Continuable for BatchError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -396,8 +396,8 @@ pub struct CertificateListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -550,8 +550,8 @@ pub struct CloudJobListPreparationAndReleaseTaskStatusResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobListPreparationAndReleaseTaskStatusResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobListPreparationAndReleaseTaskStatusResult { @@ -567,8 +567,8 @@ pub struct CloudJobListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobListResult { @@ -635,8 +635,8 @@ pub struct CloudJobScheduleListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobScheduleListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobScheduleListResult { @@ -777,8 +777,8 @@ pub struct CloudPoolListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudPoolListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudPoolListResult { @@ -894,8 +894,8 @@ pub struct CloudTaskListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudTaskListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudTaskListResult { @@ -1104,8 +1104,8 @@ pub struct ComputeNodeListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ComputeNodeListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComputeNodeListResult { @@ -2653,8 +2653,8 @@ pub struct NodeFileListResult { pub odata_next_link: Option, } impl azure_core::Continuable for NodeFileListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeFileListResult { @@ -2993,8 +2993,8 @@ pub struct PoolListUsageMetricsResult { pub odata_next_link: Option, } impl azure_core::Continuable for PoolListUsageMetricsResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PoolListUsageMetricsResult { @@ -3029,8 +3029,8 @@ pub struct PoolNodeCountsListResult { pub odata_next_link: Option, } impl azure_core::Continuable for PoolNodeCountsListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PoolNodeCountsListResult { diff --git a/services/svc/batch/src/package_2020_09_12_0/operations.rs b/services/svc/batch/src/package_2020_09_12_0/operations.rs index 7907346ba8..88ce9bce74 100644 --- a/services/svc/batch/src/package_2020_09_12_0/operations.rs +++ b/services/svc/batch/src/package_2020_09_12_0/operations.rs @@ -168,9 +168,9 @@ pub mod application { async move { let mut url = azure_core::Url::parse(&format!("{}/applications", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -189,6 +189,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -598,9 +601,9 @@ pub mod pool { async move { let mut url = azure_core::Url::parse(&format!("{}/poolusagemetrics", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -619,6 +622,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -806,9 +812,9 @@ pub mod pool { async move { let mut url = azure_core::Url::parse(&format!("{}/pools", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -827,6 +833,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2117,9 +2126,9 @@ pub mod account { async move { let mut url = azure_core::Url::parse(&format!("{}/supportedimages", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2138,6 +2147,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2234,9 +2246,9 @@ pub mod account { async move { let mut url = azure_core::Url::parse(&format!("{}/nodecounts", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2255,6 +2267,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3400,9 +3415,9 @@ pub mod job { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3421,6 +3436,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3608,9 +3626,9 @@ pub mod job { let mut url = azure_core::Url::parse(&format!("{}/jobschedules/{}/jobs", this.client.endpoint(), &this.job_schedule_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3629,6 +3647,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3741,9 +3762,9 @@ pub mod job { &this.job_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3762,6 +3783,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4009,9 +4033,9 @@ pub mod certificate { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4030,6 +4054,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5197,9 +5224,9 @@ pub mod file { &this.task_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5218,6 +5245,9 @@ pub mod file { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5329,9 +5359,9 @@ pub mod file { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5350,6 +5380,9 @@ pub mod file { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6489,9 +6522,9 @@ pub mod job_schedule { async move { let mut url = azure_core::Url::parse(&format!("{}/jobschedules", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6510,6 +6543,9 @@ pub mod job_schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6845,9 +6881,9 @@ pub mod task { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs/{}/tasks", this.client.endpoint(), &this.job_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6866,6 +6902,9 @@ pub mod task { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8890,9 +8929,9 @@ pub mod compute_node { async move { let mut url = azure_core::Url::parse(&format!("{}/pools/{}/nodes", this.client.endpoint(), &this.pool_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8911,6 +8950,9 @@ pub mod compute_node { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/batch/src/package_2021_06_14_0/models.rs b/services/svc/batch/src/package_2021_06_14_0/models.rs index f24037690d..b8d89232f0 100644 --- a/services/svc/batch/src/package_2021_06_14_0/models.rs +++ b/services/svc/batch/src/package_2021_06_14_0/models.rs @@ -13,8 +13,8 @@ pub struct AccountListSupportedImagesResult { pub odata_next_link: Option, } impl azure_core::Continuable for AccountListSupportedImagesResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountListSupportedImagesResult { @@ -41,8 +41,8 @@ pub struct ApplicationListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ApplicationListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationListResult { @@ -263,7 +263,7 @@ pub struct BatchError { pub values: Vec, } impl azure_core::Continuable for BatchError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -427,8 +427,8 @@ pub struct CertificateListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -584,8 +584,8 @@ pub struct CloudJobListPreparationAndReleaseTaskStatusResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobListPreparationAndReleaseTaskStatusResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobListPreparationAndReleaseTaskStatusResult { @@ -601,8 +601,8 @@ pub struct CloudJobListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobListResult { @@ -669,8 +669,8 @@ pub struct CloudJobScheduleListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobScheduleListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobScheduleListResult { @@ -814,8 +814,8 @@ pub struct CloudPoolListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudPoolListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudPoolListResult { @@ -931,8 +931,8 @@ pub struct CloudTaskListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudTaskListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudTaskListResult { @@ -1155,8 +1155,8 @@ pub struct ComputeNodeListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ComputeNodeListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComputeNodeListResult { @@ -2771,8 +2771,8 @@ pub struct NodeFileListResult { pub odata_next_link: Option, } impl azure_core::Continuable for NodeFileListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeFileListResult { @@ -2931,8 +2931,8 @@ pub struct NodeVmExtensionList { pub odata_next_link: Option, } impl azure_core::Continuable for NodeVmExtensionList { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeVmExtensionList { @@ -3183,8 +3183,8 @@ pub struct PoolListUsageMetricsResult { pub odata_next_link: Option, } impl azure_core::Continuable for PoolListUsageMetricsResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PoolListUsageMetricsResult { @@ -3219,8 +3219,8 @@ pub struct PoolNodeCountsListResult { pub odata_next_link: Option, } impl azure_core::Continuable for PoolNodeCountsListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PoolNodeCountsListResult { diff --git a/services/svc/batch/src/package_2021_06_14_0/operations.rs b/services/svc/batch/src/package_2021_06_14_0/operations.rs index c2448e7256..c4c6065da4 100644 --- a/services/svc/batch/src/package_2021_06_14_0/operations.rs +++ b/services/svc/batch/src/package_2021_06_14_0/operations.rs @@ -171,9 +171,9 @@ pub mod application { async move { let mut url = azure_core::Url::parse(&format!("{}/applications", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -192,6 +192,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -601,9 +604,9 @@ pub mod pool { async move { let mut url = azure_core::Url::parse(&format!("{}/poolusagemetrics", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -622,6 +625,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -809,9 +815,9 @@ pub mod pool { async move { let mut url = azure_core::Url::parse(&format!("{}/pools", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -830,6 +836,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2120,9 +2129,9 @@ pub mod account { async move { let mut url = azure_core::Url::parse(&format!("{}/supportedimages", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2141,6 +2150,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2237,9 +2249,9 @@ pub mod account { async move { let mut url = azure_core::Url::parse(&format!("{}/nodecounts", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2258,6 +2270,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3403,9 +3418,9 @@ pub mod job { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3424,6 +3439,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3611,9 +3629,9 @@ pub mod job { let mut url = azure_core::Url::parse(&format!("{}/jobschedules/{}/jobs", this.client.endpoint(), &this.job_schedule_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3632,6 +3650,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3744,9 +3765,9 @@ pub mod job { &this.job_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3765,6 +3786,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4012,9 +4036,9 @@ pub mod certificate { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4033,6 +4057,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5200,9 +5227,9 @@ pub mod file { &this.task_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5221,6 +5248,9 @@ pub mod file { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5332,9 +5362,9 @@ pub mod file { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5353,6 +5383,9 @@ pub mod file { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6492,9 +6525,9 @@ pub mod job_schedule { async move { let mut url = azure_core::Url::parse(&format!("{}/jobschedules", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6513,6 +6546,9 @@ pub mod job_schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6848,9 +6884,9 @@ pub mod task { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs/{}/tasks", this.client.endpoint(), &this.job_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6869,6 +6905,9 @@ pub mod task { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8893,9 +8932,9 @@ pub mod compute_node { async move { let mut url = azure_core::Url::parse(&format!("{}/pools/{}/nodes", this.client.endpoint(), &this.pool_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8914,6 +8953,9 @@ pub mod compute_node { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9146,9 +9188,9 @@ pub mod compute_node_extension { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9167,6 +9209,9 @@ pub mod compute_node_extension { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/batch/src/package_2022_01_15_0/models.rs b/services/svc/batch/src/package_2022_01_15_0/models.rs index 4dba880f01..3c7c4212ad 100644 --- a/services/svc/batch/src/package_2022_01_15_0/models.rs +++ b/services/svc/batch/src/package_2022_01_15_0/models.rs @@ -13,8 +13,8 @@ pub struct AccountListSupportedImagesResult { pub odata_next_link: Option, } impl azure_core::Continuable for AccountListSupportedImagesResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AccountListSupportedImagesResult { @@ -41,8 +41,8 @@ pub struct ApplicationListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ApplicationListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationListResult { @@ -263,7 +263,7 @@ pub struct BatchError { pub values: Vec, } impl azure_core::Continuable for BatchError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -427,8 +427,8 @@ pub struct CertificateListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -587,8 +587,8 @@ pub struct CloudJobListPreparationAndReleaseTaskStatusResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobListPreparationAndReleaseTaskStatusResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobListPreparationAndReleaseTaskStatusResult { @@ -604,8 +604,8 @@ pub struct CloudJobListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobListResult { @@ -672,8 +672,8 @@ pub struct CloudJobScheduleListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudJobScheduleListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudJobScheduleListResult { @@ -817,8 +817,8 @@ pub struct CloudPoolListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudPoolListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudPoolListResult { @@ -934,8 +934,8 @@ pub struct CloudTaskListResult { pub odata_next_link: Option, } impl azure_core::Continuable for CloudTaskListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CloudTaskListResult { @@ -1158,8 +1158,8 @@ pub struct ComputeNodeListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ComputeNodeListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ComputeNodeListResult { @@ -2804,8 +2804,8 @@ pub struct NodeFileListResult { pub odata_next_link: Option, } impl azure_core::Continuable for NodeFileListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeFileListResult { @@ -2964,8 +2964,8 @@ pub struct NodeVmExtensionList { pub odata_next_link: Option, } impl azure_core::Continuable for NodeVmExtensionList { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl NodeVmExtensionList { @@ -3220,8 +3220,8 @@ pub struct PoolListUsageMetricsResult { pub odata_next_link: Option, } impl azure_core::Continuable for PoolListUsageMetricsResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PoolListUsageMetricsResult { @@ -3256,8 +3256,8 @@ pub struct PoolNodeCountsListResult { pub odata_next_link: Option, } impl azure_core::Continuable for PoolNodeCountsListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PoolNodeCountsListResult { diff --git a/services/svc/batch/src/package_2022_01_15_0/operations.rs b/services/svc/batch/src/package_2022_01_15_0/operations.rs index b90b92848c..45292e44c6 100644 --- a/services/svc/batch/src/package_2022_01_15_0/operations.rs +++ b/services/svc/batch/src/package_2022_01_15_0/operations.rs @@ -171,9 +171,9 @@ pub mod application { async move { let mut url = azure_core::Url::parse(&format!("{}/applications", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -192,6 +192,9 @@ pub mod application { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -601,9 +604,9 @@ pub mod pool { async move { let mut url = azure_core::Url::parse(&format!("{}/poolusagemetrics", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -622,6 +625,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -809,9 +815,9 @@ pub mod pool { async move { let mut url = azure_core::Url::parse(&format!("{}/pools", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -830,6 +836,9 @@ pub mod pool { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2120,9 +2129,9 @@ pub mod account { async move { let mut url = azure_core::Url::parse(&format!("{}/supportedimages", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2141,6 +2150,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2237,9 +2249,9 @@ pub mod account { async move { let mut url = azure_core::Url::parse(&format!("{}/nodecounts", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2258,6 +2270,9 @@ pub mod account { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3403,9 +3418,9 @@ pub mod job { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3424,6 +3439,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3611,9 +3629,9 @@ pub mod job { let mut url = azure_core::Url::parse(&format!("{}/jobschedules/{}/jobs", this.client.endpoint(), &this.job_schedule_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3632,6 +3650,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3744,9 +3765,9 @@ pub mod job { &this.job_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3765,6 +3786,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4012,9 +4036,9 @@ pub mod certificate { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4033,6 +4057,9 @@ pub mod certificate { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5200,9 +5227,9 @@ pub mod file { &this.task_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5221,6 +5248,9 @@ pub mod file { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5332,9 +5362,9 @@ pub mod file { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5353,6 +5383,9 @@ pub mod file { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6492,9 +6525,9 @@ pub mod job_schedule { async move { let mut url = azure_core::Url::parse(&format!("{}/jobschedules", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6513,6 +6546,9 @@ pub mod job_schedule { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6848,9 +6884,9 @@ pub mod task { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs/{}/tasks", this.client.endpoint(), &this.job_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6869,6 +6905,9 @@ pub mod task { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -8893,9 +8932,9 @@ pub mod compute_node { async move { let mut url = azure_core::Url::parse(&format!("{}/pools/{}/nodes", this.client.endpoint(), &this.pool_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -8914,6 +8953,9 @@ pub mod compute_node { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -9146,9 +9188,9 @@ pub mod compute_node_extension { &this.node_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -9167,6 +9209,9 @@ pub mod compute_node_extension { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/blobstorage/src/package_2020_10/models.rs b/services/svc/blobstorage/src/package_2020_10/models.rs index 177254f51e..202084fd17 100644 --- a/services/svc/blobstorage/src/package_2020_10/models.rs +++ b/services/svc/blobstorage/src/package_2020_10/models.rs @@ -1097,8 +1097,8 @@ pub struct ListBlobsFlatSegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsFlatSegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsFlatSegmentResponse { @@ -1135,8 +1135,8 @@ pub struct ListBlobsHierarchySegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsHierarchySegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsHierarchySegmentResponse { @@ -1170,8 +1170,8 @@ pub struct ListContainersSegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListContainersSegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListContainersSegmentResponse { @@ -1260,8 +1260,8 @@ pub struct PageList { pub next_marker: Option, } impl azure_core::Continuable for PageList { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl PageList { @@ -1518,7 +1518,7 @@ pub struct StorageError { pub message: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/blobstorage/src/package_2020_10/operations.rs b/services/svc/blobstorage/src/package_2020_10/operations.rs index 7955136562..471992df14 100644 --- a/services/svc/blobstorage/src/package_2020_10/operations.rs +++ b/services/svc/blobstorage/src/package_2020_10/operations.rs @@ -403,9 +403,9 @@ pub mod service { async move { let mut url = azure_core::Url::parse(&format!("{}/?comp=list", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -417,6 +417,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2138,9 +2141,9 @@ pub mod container { &this.container_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2152,6 +2155,9 @@ pub mod container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2250,9 +2256,9 @@ pub mod container { &this.container_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2264,6 +2270,9 @@ pub mod container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6962,9 +6971,9 @@ pub mod page_blob { &this.blob ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6976,6 +6985,9 @@ pub mod page_blob { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7136,9 +7148,9 @@ pub mod page_blob { &this.blob ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7150,6 +7162,9 @@ pub mod page_blob { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/blobstorage/src/package_2020_12/models.rs b/services/svc/blobstorage/src/package_2020_12/models.rs index 177254f51e..202084fd17 100644 --- a/services/svc/blobstorage/src/package_2020_12/models.rs +++ b/services/svc/blobstorage/src/package_2020_12/models.rs @@ -1097,8 +1097,8 @@ pub struct ListBlobsFlatSegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsFlatSegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsFlatSegmentResponse { @@ -1135,8 +1135,8 @@ pub struct ListBlobsHierarchySegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsHierarchySegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsHierarchySegmentResponse { @@ -1170,8 +1170,8 @@ pub struct ListContainersSegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListContainersSegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListContainersSegmentResponse { @@ -1260,8 +1260,8 @@ pub struct PageList { pub next_marker: Option, } impl azure_core::Continuable for PageList { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl PageList { @@ -1518,7 +1518,7 @@ pub struct StorageError { pub message: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/blobstorage/src/package_2020_12/operations.rs b/services/svc/blobstorage/src/package_2020_12/operations.rs index b5affcbfdc..a4830605db 100644 --- a/services/svc/blobstorage/src/package_2020_12/operations.rs +++ b/services/svc/blobstorage/src/package_2020_12/operations.rs @@ -403,9 +403,9 @@ pub mod service { async move { let mut url = azure_core::Url::parse(&format!("{}/?comp=list", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -417,6 +417,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2138,9 +2141,9 @@ pub mod container { &this.container_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2152,6 +2155,9 @@ pub mod container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2250,9 +2256,9 @@ pub mod container { &this.container_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2264,6 +2270,9 @@ pub mod container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6971,9 +6980,9 @@ pub mod page_blob { &this.blob ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6985,6 +6994,9 @@ pub mod page_blob { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7145,9 +7157,9 @@ pub mod page_blob { &this.blob ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7159,6 +7171,9 @@ pub mod page_blob { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/blobstorage/src/package_2021_02/models.rs b/services/svc/blobstorage/src/package_2021_02/models.rs index 8e7bb2a2c2..bec24580d1 100644 --- a/services/svc/blobstorage/src/package_2021_02/models.rs +++ b/services/svc/blobstorage/src/package_2021_02/models.rs @@ -1111,8 +1111,8 @@ pub struct ListBlobsFlatSegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsFlatSegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsFlatSegmentResponse { @@ -1149,8 +1149,8 @@ pub struct ListBlobsHierarchySegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsHierarchySegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsHierarchySegmentResponse { @@ -1184,8 +1184,8 @@ pub struct ListContainersSegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListContainersSegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListContainersSegmentResponse { @@ -1274,8 +1274,8 @@ pub struct PageList { pub next_marker: Option, } impl azure_core::Continuable for PageList { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl PageList { @@ -1532,7 +1532,7 @@ pub struct StorageError { pub message: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/blobstorage/src/package_2021_02/operations.rs b/services/svc/blobstorage/src/package_2021_02/operations.rs index b5affcbfdc..a4830605db 100644 --- a/services/svc/blobstorage/src/package_2021_02/operations.rs +++ b/services/svc/blobstorage/src/package_2021_02/operations.rs @@ -403,9 +403,9 @@ pub mod service { async move { let mut url = azure_core::Url::parse(&format!("{}/?comp=list", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -417,6 +417,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2138,9 +2141,9 @@ pub mod container { &this.container_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2152,6 +2155,9 @@ pub mod container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2250,9 +2256,9 @@ pub mod container { &this.container_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2264,6 +2270,9 @@ pub mod container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -6971,9 +6980,9 @@ pub mod page_blob { &this.blob ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -6985,6 +6994,9 @@ pub mod page_blob { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7145,9 +7157,9 @@ pub mod page_blob { &this.blob ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7159,6 +7171,9 @@ pub mod page_blob { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/blobstorage/src/package_2021_04/models.rs b/services/svc/blobstorage/src/package_2021_04/models.rs index 8e7bb2a2c2..bec24580d1 100644 --- a/services/svc/blobstorage/src/package_2021_04/models.rs +++ b/services/svc/blobstorage/src/package_2021_04/models.rs @@ -1111,8 +1111,8 @@ pub struct ListBlobsFlatSegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsFlatSegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsFlatSegmentResponse { @@ -1149,8 +1149,8 @@ pub struct ListBlobsHierarchySegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsHierarchySegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsHierarchySegmentResponse { @@ -1184,8 +1184,8 @@ pub struct ListContainersSegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListContainersSegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListContainersSegmentResponse { @@ -1274,8 +1274,8 @@ pub struct PageList { pub next_marker: Option, } impl azure_core::Continuable for PageList { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl PageList { @@ -1532,7 +1532,7 @@ pub struct StorageError { pub message: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/blobstorage/src/package_2021_04/operations.rs b/services/svc/blobstorage/src/package_2021_04/operations.rs index 3d1b185306..8f39ee174d 100644 --- a/services/svc/blobstorage/src/package_2021_04/operations.rs +++ b/services/svc/blobstorage/src/package_2021_04/operations.rs @@ -403,9 +403,9 @@ pub mod service { async move { let mut url = azure_core::Url::parse(&format!("{}/?comp=list", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -417,6 +417,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2237,9 +2240,9 @@ pub mod container { &this.container_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2251,6 +2254,9 @@ pub mod container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2349,9 +2355,9 @@ pub mod container { &this.container_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2363,6 +2369,9 @@ pub mod container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7079,9 +7088,9 @@ pub mod page_blob { &this.blob ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7093,6 +7102,9 @@ pub mod page_blob { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7253,9 +7265,9 @@ pub mod page_blob { &this.blob ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7267,6 +7279,9 @@ pub mod page_blob { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/blobstorage/src/package_2021_08/models.rs b/services/svc/blobstorage/src/package_2021_08/models.rs index c8bbaa6b3b..44b957aa3f 100644 --- a/services/svc/blobstorage/src/package_2021_08/models.rs +++ b/services/svc/blobstorage/src/package_2021_08/models.rs @@ -1117,8 +1117,8 @@ pub struct ListBlobsFlatSegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsFlatSegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsFlatSegmentResponse { @@ -1155,8 +1155,8 @@ pub struct ListBlobsHierarchySegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsHierarchySegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsHierarchySegmentResponse { @@ -1190,8 +1190,8 @@ pub struct ListContainersSegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListContainersSegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListContainersSegmentResponse { @@ -1280,8 +1280,8 @@ pub struct PageList { pub next_marker: Option, } impl azure_core::Continuable for PageList { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl PageList { @@ -1538,7 +1538,7 @@ pub struct StorageError { pub message: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/blobstorage/src/package_2021_08/operations.rs b/services/svc/blobstorage/src/package_2021_08/operations.rs index fd78607e22..a3ee076c66 100644 --- a/services/svc/blobstorage/src/package_2021_08/operations.rs +++ b/services/svc/blobstorage/src/package_2021_08/operations.rs @@ -404,9 +404,9 @@ pub mod service { async move { let mut url = azure_core::Url::parse(&format!("{}/?comp=list", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -418,6 +418,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2249,9 +2252,9 @@ pub mod container { &this.container_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2263,6 +2266,9 @@ pub mod container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2361,9 +2367,9 @@ pub mod container { &this.container_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2375,6 +2381,9 @@ pub mod container { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7091,9 +7100,9 @@ pub mod page_blob { &this.blob ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7105,6 +7114,9 @@ pub mod page_blob { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -7265,9 +7277,9 @@ pub mod page_blob { &this.blob ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -7279,6 +7291,9 @@ pub mod page_blob { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/datalakeanalytics/src/package_catalog_2016_11/models.rs b/services/svc/datalakeanalytics/src/package_catalog_2016_11/models.rs index 5bd12fa2b5..1dfaba82a8 100644 --- a/services/svc/datalakeanalytics/src/package_catalog_2016_11/models.rs +++ b/services/svc/datalakeanalytics/src/package_catalog_2016_11/models.rs @@ -304,7 +304,7 @@ pub struct AclList { pub value: Vec, } impl azure_core::Continuable for AclList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -603,7 +603,7 @@ pub struct USqlAssemblyList { pub value: Vec, } impl azure_core::Continuable for USqlAssemblyList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -636,7 +636,7 @@ pub struct USqlCredentialList { pub value: Vec, } impl azure_core::Continuable for USqlCredentialList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -669,7 +669,7 @@ pub struct USqlDatabaseList { pub value: Vec, } impl azure_core::Continuable for USqlDatabaseList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -750,7 +750,7 @@ pub struct USqlExternalDataSourceList { pub value: Vec, } impl azure_core::Continuable for USqlExternalDataSourceList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -831,7 +831,7 @@ pub struct USqlPackageList { pub value: Vec, } impl azure_core::Continuable for USqlPackageList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -873,7 +873,7 @@ pub struct USqlProcedureList { pub value: Vec, } impl azure_core::Continuable for USqlProcedureList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -909,7 +909,7 @@ pub struct USqlSchemaList { pub value: Vec, } impl azure_core::Continuable for USqlSchemaList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1034,7 +1034,7 @@ pub struct USqlTableFragmentList { pub value: Vec, } impl azure_core::Continuable for USqlTableFragmentList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1053,7 +1053,7 @@ pub struct USqlTableList { pub value: Vec, } impl azure_core::Continuable for USqlTableList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1104,7 +1104,7 @@ pub struct USqlTablePartitionList { pub value: Vec, } impl azure_core::Continuable for USqlTablePartitionList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1197,7 +1197,7 @@ pub struct USqlTableStatisticsList { pub value: Vec, } impl azure_core::Continuable for USqlTableStatisticsList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1230,7 +1230,7 @@ pub struct USqlTableTypeList { pub value: Vec, } impl azure_core::Continuable for USqlTableTypeList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1272,7 +1272,7 @@ pub struct USqlTableValuedFunctionList { pub value: Vec, } impl azure_core::Continuable for USqlTableValuedFunctionList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1347,7 +1347,7 @@ pub struct USqlTypeList { pub value: Vec, } impl azure_core::Continuable for USqlTypeList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1389,7 +1389,7 @@ pub struct USqlViewList { pub value: Vec, } impl azure_core::Continuable for USqlViewList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/datalakeanalytics/src/package_catalog_2016_11/operations.rs b/services/svc/datalakeanalytics/src/package_catalog_2016_11/operations.rs index ae8b3f35e0..47f922d7c6 100644 --- a/services/svc/datalakeanalytics/src/package_catalog_2016_11/operations.rs +++ b/services/svc/datalakeanalytics/src/package_catalog_2016_11/operations.rs @@ -1353,9 +1353,9 @@ pub mod catalog { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1374,6 +1374,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1525,9 +1528,9 @@ pub mod catalog { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1546,6 +1549,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1701,9 +1707,9 @@ pub mod catalog { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1722,6 +1728,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1879,9 +1888,9 @@ pub mod catalog { &this.table_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1900,6 +1909,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2008,9 +2020,9 @@ pub mod catalog { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2029,6 +2041,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2135,9 +2150,9 @@ pub mod catalog { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2156,6 +2171,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2311,9 +2329,9 @@ pub mod catalog { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2332,6 +2350,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2487,9 +2508,9 @@ pub mod catalog { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2508,6 +2529,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2663,9 +2687,9 @@ pub mod catalog { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2684,6 +2708,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2843,9 +2870,9 @@ pub mod catalog { &this.table_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2864,6 +2891,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3161,9 +3191,9 @@ pub mod catalog { &this.table_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3182,6 +3212,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3285,9 +3318,9 @@ pub mod catalog { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3306,6 +3339,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3461,9 +3497,9 @@ pub mod catalog { &this.schema_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3482,6 +3518,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3633,9 +3672,9 @@ pub mod catalog { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3654,6 +3693,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3805,9 +3847,9 @@ pub mod catalog { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3826,6 +3868,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3927,9 +3972,9 @@ pub mod catalog { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3948,6 +3993,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4054,9 +4102,9 @@ pub mod catalog { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4075,6 +4123,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4179,9 +4230,9 @@ pub mod catalog { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4200,6 +4251,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4301,9 +4355,9 @@ pub mod catalog { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4322,6 +4376,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4423,9 +4480,9 @@ pub mod catalog { &this.database_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4444,6 +4501,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4540,9 +4600,9 @@ pub mod catalog { async move { let mut url = azure_core::Url::parse(&format!("{}/catalog/usql/acl", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4561,6 +4621,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4705,9 +4768,9 @@ pub mod catalog { async move { let mut url = azure_core::Url::parse(&format!("{}/catalog/usql/databases", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4726,6 +4789,9 @@ pub mod catalog { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/datalakeanalytics/src/package_job_2015_11_preview/models.rs b/services/svc/datalakeanalytics/src/package_job_2015_11_preview/models.rs index 0d1a9ac334..a80fba3a68 100644 --- a/services/svc/datalakeanalytics/src/package_job_2015_11_preview/models.rs +++ b/services/svc/datalakeanalytics/src/package_job_2015_11_preview/models.rs @@ -148,8 +148,8 @@ pub struct JobInfoListResult { pub count: Option, } impl azure_core::Continuable for JobInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobInfoListResult { diff --git a/services/svc/datalakeanalytics/src/package_job_2015_11_preview/operations.rs b/services/svc/datalakeanalytics/src/package_job_2015_11_preview/operations.rs index 1609aa016b..4bb0036ab6 100644 --- a/services/svc/datalakeanalytics/src/package_job_2015_11_preview/operations.rs +++ b/services/svc/datalakeanalytics/src/package_job_2015_11_preview/operations.rs @@ -460,9 +460,9 @@ pub mod job { async move { let mut url = azure_core::Url::parse(&format!("{}/Jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -481,6 +481,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/datalakeanalytics/src/package_job_2016_03_preview/models.rs b/services/svc/datalakeanalytics/src/package_job_2016_03_preview/models.rs index cd60f2e5be..5b035f4edc 100644 --- a/services/svc/datalakeanalytics/src/package_job_2016_03_preview/models.rs +++ b/services/svc/datalakeanalytics/src/package_job_2016_03_preview/models.rs @@ -161,8 +161,8 @@ pub struct JobInfoListResult { pub count: Option, } impl azure_core::Continuable for JobInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobInfoListResult { diff --git a/services/svc/datalakeanalytics/src/package_job_2016_03_preview/operations.rs b/services/svc/datalakeanalytics/src/package_job_2016_03_preview/operations.rs index 28c8625f57..96971a4eee 100644 --- a/services/svc/datalakeanalytics/src/package_job_2016_03_preview/operations.rs +++ b/services/svc/datalakeanalytics/src/package_job_2016_03_preview/operations.rs @@ -459,9 +459,9 @@ pub mod job { async move { let mut url = azure_core::Url::parse(&format!("{}/Jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -480,6 +480,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/datalakeanalytics/src/package_job_2016_11/models.rs b/services/svc/datalakeanalytics/src/package_job_2016_11/models.rs index 2f9f9a1488..345f55b1f5 100644 --- a/services/svc/datalakeanalytics/src/package_job_2016_11/models.rs +++ b/services/svc/datalakeanalytics/src/package_job_2016_11/models.rs @@ -290,8 +290,8 @@ pub struct JobInfoListResult { pub next_link: Option, } impl azure_core::Continuable for JobInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobInfoListResult { @@ -541,8 +541,8 @@ pub struct JobPipelineInformationListResult { pub next_link: Option, } impl azure_core::Continuable for JobPipelineInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobPipelineInformationListResult { @@ -633,8 +633,8 @@ pub struct JobRecurrenceInformationListResult { pub next_link: Option, } impl azure_core::Continuable for JobRecurrenceInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobRecurrenceInformationListResult { diff --git a/services/svc/datalakeanalytics/src/package_job_2016_11/operations.rs b/services/svc/datalakeanalytics/src/package_job_2016_11/operations.rs index 11ca6ddf71..6dc610f999 100644 --- a/services/svc/datalakeanalytics/src/package_job_2016_11/operations.rs +++ b/services/svc/datalakeanalytics/src/package_job_2016_11/operations.rs @@ -128,9 +128,9 @@ pub mod pipeline { async move { let mut url = azure_core::Url::parse(&format!("{}/pipelines", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -149,6 +149,9 @@ pub mod pipeline { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -294,9 +297,9 @@ pub mod recurrence { async move { let mut url = azure_core::Url::parse(&format!("{}/recurrences", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -315,6 +318,9 @@ pub mod recurrence { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -778,9 +784,9 @@ pub mod job { async move { let mut url = azure_core::Url::parse(&format!("{}/Jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -799,6 +805,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/datalakeanalytics/src/package_job_2017_09_preview/models.rs b/services/svc/datalakeanalytics/src/package_job_2017_09_preview/models.rs index cede9c94cd..d943bb5348 100644 --- a/services/svc/datalakeanalytics/src/package_job_2017_09_preview/models.rs +++ b/services/svc/datalakeanalytics/src/package_job_2017_09_preview/models.rs @@ -329,8 +329,8 @@ pub struct JobInfoListResult { pub next_link: Option, } impl azure_core::Continuable for JobInfoListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobInfoListResult { @@ -587,8 +587,8 @@ pub struct JobPipelineInformationListResult { pub next_link: Option, } impl azure_core::Continuable for JobPipelineInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobPipelineInformationListResult { @@ -679,8 +679,8 @@ pub struct JobRecurrenceInformationListResult { pub next_link: Option, } impl azure_core::Continuable for JobRecurrenceInformationListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobRecurrenceInformationListResult { diff --git a/services/svc/datalakeanalytics/src/package_job_2017_09_preview/operations.rs b/services/svc/datalakeanalytics/src/package_job_2017_09_preview/operations.rs index 6a520fc0e7..2c62aef43e 100644 --- a/services/svc/datalakeanalytics/src/package_job_2017_09_preview/operations.rs +++ b/services/svc/datalakeanalytics/src/package_job_2017_09_preview/operations.rs @@ -194,9 +194,9 @@ pub mod job { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -215,6 +215,9 @@ pub mod job { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -696,9 +699,9 @@ pub mod pipeline { async move { let mut url = azure_core::Url::parse(&format!("{}/pipelines", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -717,6 +720,9 @@ pub mod pipeline { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -862,9 +868,9 @@ pub mod recurrence { async move { let mut url = azure_core::Url::parse(&format!("{}/recurrences", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -883,6 +889,9 @@ pub mod recurrence { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/deviceupdate/src/package_2020_09_01/models.rs b/services/svc/deviceupdate/src/package_2020_09_01/models.rs index e957a556d1..cb488109c6 100644 --- a/services/svc/deviceupdate/src/package_2020_09_01/models.rs +++ b/services/svc/deviceupdate/src/package_2020_09_01/models.rs @@ -850,8 +850,8 @@ pub struct PageableListOfDeploymentDeviceStates { pub next_link: Option, } impl azure_core::Continuable for PageableListOfDeploymentDeviceStates { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageableListOfDeploymentDeviceStates { @@ -870,8 +870,8 @@ pub struct PageableListOfDeployments { pub next_link: Option, } impl azure_core::Continuable for PageableListOfDeployments { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageableListOfDeployments { @@ -890,8 +890,8 @@ pub struct PageableListOfDeviceClasses { pub next_link: Option, } impl azure_core::Continuable for PageableListOfDeviceClasses { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageableListOfDeviceClasses { @@ -910,8 +910,8 @@ pub struct PageableListOfDeviceTags { pub next_link: Option, } impl azure_core::Continuable for PageableListOfDeviceTags { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageableListOfDeviceTags { @@ -930,8 +930,8 @@ pub struct PageableListOfDevices { pub next_link: Option, } impl azure_core::Continuable for PageableListOfDevices { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageableListOfDevices { @@ -950,8 +950,8 @@ pub struct PageableListOfGroups { pub next_link: Option, } impl azure_core::Continuable for PageableListOfGroups { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageableListOfGroups { @@ -970,8 +970,8 @@ pub struct PageableListOfOperations { pub next_link: Option, } impl azure_core::Continuable for PageableListOfOperations { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageableListOfOperations { @@ -990,8 +990,8 @@ pub struct PageableListOfStrings { pub next_link: Option, } impl azure_core::Continuable for PageableListOfStrings { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageableListOfStrings { @@ -1010,8 +1010,8 @@ pub struct PageableListOfUpdatableDevices { pub next_link: Option, } impl azure_core::Continuable for PageableListOfUpdatableDevices { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageableListOfUpdatableDevices { @@ -1030,8 +1030,8 @@ pub struct PageableListOfUpdateIds { pub next_link: Option, } impl azure_core::Continuable for PageableListOfUpdateIds { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PageableListOfUpdateIds { diff --git a/services/svc/deviceupdate/src/package_2020_09_01/operations.rs b/services/svc/deviceupdate/src/package_2020_09_01/operations.rs index c83ca0d50a..e1731f5e7c 100644 --- a/services/svc/deviceupdate/src/package_2020_09_01/operations.rs +++ b/services/svc/deviceupdate/src/package_2020_09_01/operations.rs @@ -280,9 +280,9 @@ pub mod deployments { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -294,6 +294,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -540,9 +543,9 @@ pub mod deployments { &this.deployment_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -554,6 +557,9 @@ pub mod deployments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -881,9 +887,9 @@ pub mod updates { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -895,6 +901,9 @@ pub mod updates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -947,9 +956,9 @@ pub mod updates { &this.provider ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -961,6 +970,9 @@ pub mod updates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1015,9 +1027,9 @@ pub mod updates { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1029,6 +1041,9 @@ pub mod updates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1085,9 +1100,9 @@ pub mod updates { &this.version ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1099,6 +1114,9 @@ pub mod updates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1220,9 +1238,9 @@ pub mod updates { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1234,6 +1252,9 @@ pub mod updates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1475,9 +1496,9 @@ pub mod devices { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1489,6 +1510,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1588,9 +1612,9 @@ pub mod devices { &this.device_class_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1602,6 +1626,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1654,9 +1681,9 @@ pub mod devices { &this.device_class_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1668,6 +1695,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1723,9 +1753,9 @@ pub mod devices { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1737,6 +1767,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1882,9 +1915,9 @@ pub mod devices { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1896,6 +1929,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1993,9 +2029,9 @@ pub mod devices { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2007,6 +2043,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2255,9 +2294,9 @@ pub mod devices { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2269,6 +2308,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/deviceupdate/src/package_2021_06_01_preview/models.rs b/services/svc/deviceupdate/src/package_2021_06_01_preview/models.rs index 68eb6e624f..ed6a3183c6 100644 --- a/services/svc/deviceupdate/src/package_2021_06_01_preview/models.rs +++ b/services/svc/deviceupdate/src/package_2021_06_01_preview/models.rs @@ -105,8 +105,8 @@ pub struct DeploymentDeviceStatesList { pub next_link: Option, } impl azure_core::Continuable for DeploymentDeviceStatesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentDeviceStatesList { @@ -215,8 +215,8 @@ pub struct DeploymentsList { pub next_link: Option, } impl azure_core::Continuable for DeploymentsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentsList { @@ -312,8 +312,8 @@ pub struct DeviceClassesList { pub next_link: Option, } impl azure_core::Continuable for DeviceClassesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceClassesList { @@ -423,8 +423,8 @@ pub struct DeviceOperationsList { pub next_link: Option, } impl azure_core::Continuable for DeviceOperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceOperationsList { @@ -504,8 +504,8 @@ pub struct DeviceTagsList { pub next_link: Option, } impl azure_core::Continuable for DeviceTagsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceTagsList { @@ -541,8 +541,8 @@ pub struct DevicesList { pub next_link: Option, } impl azure_core::Continuable for DevicesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DevicesList { @@ -589,7 +589,7 @@ pub struct ErrorResponse { pub error: Error, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -717,8 +717,8 @@ pub struct GroupsList { pub next_link: Option, } impl azure_core::Continuable for GroupsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GroupsList { @@ -987,8 +987,8 @@ pub struct LogCollectionOperationList { pub next_link: Option, } impl azure_core::Continuable for LogCollectionOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogCollectionOperationList { @@ -1243,8 +1243,8 @@ pub struct StringsList { pub next_link: Option, } impl azure_core::Continuable for StringsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StringsList { @@ -1277,8 +1277,8 @@ pub struct UpdatableDevicesList { pub next_link: Option, } impl azure_core::Continuable for UpdatableDevicesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdatableDevicesList { @@ -1465,8 +1465,8 @@ pub struct UpdateIdsList { pub next_link: Option, } impl azure_core::Continuable for UpdateIdsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateIdsList { @@ -1484,8 +1484,8 @@ pub struct UpdateList { pub next_link: Option, } impl azure_core::Continuable for UpdateList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateList { @@ -1548,8 +1548,8 @@ pub struct UpdateOperationsList { pub next_link: Option, } impl azure_core::Continuable for UpdateOperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateOperationsList { diff --git a/services/svc/deviceupdate/src/package_2021_06_01_preview/operations.rs b/services/svc/deviceupdate/src/package_2021_06_01_preview/operations.rs index 81c0290054..488bc848c5 100644 --- a/services/svc/deviceupdate/src/package_2021_06_01_preview/operations.rs +++ b/services/svc/deviceupdate/src/package_2021_06_01_preview/operations.rs @@ -513,9 +513,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -534,6 +534,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -639,9 +642,9 @@ pub mod device_management { &this.device_class_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -660,6 +663,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -718,9 +724,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -739,6 +745,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -995,9 +1004,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1016,6 +1025,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1119,9 +1131,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1140,6 +1152,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1398,9 +1413,9 @@ pub mod device_management { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1419,6 +1434,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1482,9 +1500,9 @@ pub mod device_management { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1503,6 +1521,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1774,9 +1795,9 @@ pub mod device_management { &this.deployment_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1795,6 +1816,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1919,9 +1943,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1940,6 +1964,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2101,9 +2128,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2122,6 +2149,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2366,9 +2396,9 @@ pub mod device_update { let mut url = azure_core::Url::parse(&format!("{}/deviceupdate/{}/updates", this.client.endpoint(), &this.instance_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2387,6 +2417,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2610,9 +2643,9 @@ pub mod device_update { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2631,6 +2664,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2686,9 +2722,9 @@ pub mod device_update { &this.provider ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2707,6 +2743,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2769,9 +2808,9 @@ pub mod device_update { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2790,6 +2829,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2852,9 +2894,9 @@ pub mod device_update { &this.version ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2873,6 +2915,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3000,9 +3045,9 @@ pub mod device_update { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3021,6 +3066,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/deviceupdate/src/package_2022_07_01_preview/models.rs b/services/svc/deviceupdate/src/package_2022_07_01_preview/models.rs index 404dbdee4b..8da59ed95e 100644 --- a/services/svc/deviceupdate/src/package_2022_07_01_preview/models.rs +++ b/services/svc/deviceupdate/src/package_2022_07_01_preview/models.rs @@ -160,8 +160,8 @@ pub struct DeploymentDeviceStatesList { pub next_link: Option, } impl azure_core::Continuable for DeploymentDeviceStatesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentDeviceStatesList { @@ -260,8 +260,8 @@ pub struct DeploymentsList { pub next_link: Option, } impl azure_core::Continuable for DeploymentsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeploymentsList { @@ -515,8 +515,8 @@ pub struct DeviceClassSubgroupUpdatableDevicesList { pub next_link: Option, } impl azure_core::Continuable for DeviceClassSubgroupUpdatableDevicesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceClassSubgroupUpdatableDevicesList { @@ -548,8 +548,8 @@ pub struct DeviceClassesList { pub next_link: Option, } impl azure_core::Continuable for DeviceClassesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceClassesList { @@ -763,8 +763,8 @@ pub struct DeviceOperationsList { pub next_link: Option, } impl azure_core::Continuable for DeviceOperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceOperationsList { @@ -847,8 +847,8 @@ pub struct DevicesList { pub next_link: Option, } impl azure_core::Continuable for DevicesList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DevicesList { @@ -895,7 +895,7 @@ pub struct ErrorResponse { pub error: Error, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1033,8 +1033,8 @@ pub struct GroupsList { pub next_link: Option, } impl azure_core::Continuable for GroupsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GroupsList { @@ -1357,8 +1357,8 @@ pub struct LogCollectionOperationList { pub next_link: Option, } impl azure_core::Continuable for LogCollectionOperationList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl LogCollectionOperationList { @@ -1623,8 +1623,8 @@ pub struct StringsList { pub next_link: Option, } impl azure_core::Continuable for StringsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StringsList { @@ -1869,8 +1869,8 @@ pub struct UpdateInfoList { pub next_link: Option, } impl azure_core::Continuable for UpdateInfoList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateInfoList { @@ -1888,8 +1888,8 @@ pub struct UpdateList { pub next_link: Option, } impl azure_core::Continuable for UpdateList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateList { @@ -1952,8 +1952,8 @@ pub struct UpdateOperationsList { pub next_link: Option, } impl azure_core::Continuable for UpdateOperationsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UpdateOperationsList { diff --git a/services/svc/deviceupdate/src/package_2022_07_01_preview/operations.rs b/services/svc/deviceupdate/src/package_2022_07_01_preview/operations.rs index 565099c506..4ab5c744cf 100644 --- a/services/svc/deviceupdate/src/package_2022_07_01_preview/operations.rs +++ b/services/svc/deviceupdate/src/package_2022_07_01_preview/operations.rs @@ -238,9 +238,9 @@ pub mod device_update { let mut url = azure_core::Url::parse(&format!("{}/deviceUpdate/{}/updates", this.client.endpoint(), &this.instance_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -259,6 +259,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -478,9 +481,9 @@ pub mod device_update { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -499,6 +502,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -554,9 +560,9 @@ pub mod device_update { &this.provider ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -575,6 +581,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -637,9 +646,9 @@ pub mod device_update { &this.name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -658,6 +667,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -720,9 +732,9 @@ pub mod device_update { &this.version ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -741,6 +753,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -868,9 +883,9 @@ pub mod device_update { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -889,6 +904,9 @@ pub mod device_update { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1447,9 +1465,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1468,6 +1486,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1671,9 +1692,9 @@ pub mod device_management { &this.device_class_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1692,6 +1713,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1750,9 +1774,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1771,6 +1795,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2029,9 +2056,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2050,6 +2077,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2259,9 +2289,9 @@ pub mod device_management { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2280,6 +2310,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2343,9 +2376,9 @@ pub mod device_management { &this.group_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2364,6 +2397,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2897,9 +2933,9 @@ pub mod device_management { &this.device_class_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2918,6 +2954,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3253,9 +3292,9 @@ pub mod device_management { &this.deployment_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3274,6 +3313,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3398,9 +3440,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3419,6 +3461,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3580,9 +3625,9 @@ pub mod device_management { &this.instance_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3601,6 +3646,9 @@ pub mod device_management { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/digitaltwins/src/package_2020_05_31_preview/models.rs b/services/svc/digitaltwins/src/package_2020_05_31_preview/models.rs index 2e3aec433d..d94dbc4230 100644 --- a/services/svc/digitaltwins/src/package_2020_05_31_preview/models.rs +++ b/services/svc/digitaltwins/src/package_2020_05_31_preview/models.rs @@ -33,7 +33,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -75,8 +75,8 @@ pub struct EventRouteCollection { pub next_link: Option, } impl azure_core::Continuable for EventRouteCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventRouteCollection { @@ -115,8 +115,8 @@ pub struct IncomingRelationshipCollection { pub next_link: Option, } impl azure_core::Continuable for IncomingRelationshipCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncomingRelationshipCollection { @@ -184,8 +184,8 @@ pub struct PagedModelDataCollection { pub next_link: Option, } impl azure_core::Continuable for PagedModelDataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedModelDataCollection { @@ -234,8 +234,8 @@ pub struct RelationshipCollection { pub next_link: Option, } impl azure_core::Continuable for RelationshipCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationshipCollection { diff --git a/services/svc/digitaltwins/src/package_2020_05_31_preview/operations.rs b/services/svc/digitaltwins/src/package_2020_05_31_preview/operations.rs index 1abdc85ebf..cfc983fae5 100644 --- a/services/svc/digitaltwins/src/package_2020_05_31_preview/operations.rs +++ b/services/svc/digitaltwins/src/package_2020_05_31_preview/operations.rs @@ -155,9 +155,9 @@ pub mod digital_twin_models { async move { let mut url = azure_core::Url::parse(&format!("{}/models", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -176,6 +176,9 @@ pub mod digital_twin_models { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1050,9 +1053,9 @@ pub mod digital_twins { let mut url = azure_core::Url::parse(&format!("{}/digitaltwins/{}/relationships", this.client.endpoint(), &this.id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1071,6 +1074,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1127,9 +1133,9 @@ pub mod digital_twins { &this.id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1148,6 +1154,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1457,9 +1466,9 @@ pub mod event_routes { async move { let mut url = azure_core::Url::parse(&format!("{}/eventroutes", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1478,6 +1487,9 @@ pub mod event_routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/digitaltwins/src/package_2020_10_31/models.rs b/services/svc/digitaltwins/src/package_2020_10_31/models.rs index 0c298a4f74..c722de6785 100644 --- a/services/svc/digitaltwins/src/package_2020_10_31/models.rs +++ b/services/svc/digitaltwins/src/package_2020_10_31/models.rs @@ -66,7 +66,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -107,8 +107,8 @@ pub struct EventRouteCollection { pub next_link: Option, } impl azure_core::Continuable for EventRouteCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventRouteCollection { @@ -147,8 +147,8 @@ pub struct IncomingRelationshipCollection { pub next_link: Option, } impl azure_core::Continuable for IncomingRelationshipCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncomingRelationshipCollection { @@ -183,8 +183,8 @@ pub struct PagedDigitalTwinsModelDataCollection { pub next_link: Option, } impl azure_core::Continuable for PagedDigitalTwinsModelDataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedDigitalTwinsModelDataCollection { @@ -233,8 +233,8 @@ pub struct RelationshipCollection { pub next_link: Option, } impl azure_core::Continuable for RelationshipCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationshipCollection { diff --git a/services/svc/digitaltwins/src/package_2020_10_31/operations.rs b/services/svc/digitaltwins/src/package_2020_10_31/operations.rs index ce437a9fc6..188f9d0351 100644 --- a/services/svc/digitaltwins/src/package_2020_10_31/operations.rs +++ b/services/svc/digitaltwins/src/package_2020_10_31/operations.rs @@ -175,9 +175,9 @@ pub mod digital_twin_models { async move { let mut url = azure_core::Url::parse(&format!("{}/models", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -196,6 +196,9 @@ pub mod digital_twin_models { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1336,9 +1339,9 @@ pub mod digital_twins { let mut url = azure_core::Url::parse(&format!("{}/digitaltwins/{}/relationships", this.client.endpoint(), &this.id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1357,6 +1360,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1429,9 +1435,9 @@ pub mod digital_twins { &this.id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1450,6 +1456,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1843,9 +1852,9 @@ pub mod event_routes { async move { let mut url = azure_core::Url::parse(&format!("{}/eventroutes", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1864,6 +1873,9 @@ pub mod event_routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/digitaltwins/src/package_2021_06_30_preview/models.rs b/services/svc/digitaltwins/src/package_2021_06_30_preview/models.rs index 25b2ea4a96..dfdc6ec56c 100644 --- a/services/svc/digitaltwins/src/package_2021_06_30_preview/models.rs +++ b/services/svc/digitaltwins/src/package_2021_06_30_preview/models.rs @@ -66,7 +66,7 @@ pub struct ErrorResponse { pub error: Option, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -107,8 +107,8 @@ pub struct EventRouteCollection { pub next_link: Option, } impl azure_core::Continuable for EventRouteCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl EventRouteCollection { @@ -147,8 +147,8 @@ pub struct IncomingRelationshipCollection { pub next_link: Option, } impl azure_core::Continuable for IncomingRelationshipCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl IncomingRelationshipCollection { @@ -183,8 +183,8 @@ pub struct PagedDigitalTwinsModelDataCollection { pub next_link: Option, } impl azure_core::Continuable for PagedDigitalTwinsModelDataCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl PagedDigitalTwinsModelDataCollection { @@ -233,8 +233,8 @@ pub struct RelationshipCollection { pub next_link: Option, } impl azure_core::Continuable for RelationshipCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RelationshipCollection { diff --git a/services/svc/digitaltwins/src/package_2021_06_30_preview/operations.rs b/services/svc/digitaltwins/src/package_2021_06_30_preview/operations.rs index 4d73edcca1..bcc028ef78 100644 --- a/services/svc/digitaltwins/src/package_2021_06_30_preview/operations.rs +++ b/services/svc/digitaltwins/src/package_2021_06_30_preview/operations.rs @@ -175,9 +175,9 @@ pub mod digital_twin_models { async move { let mut url = azure_core::Url::parse(&format!("{}/models", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -196,6 +196,9 @@ pub mod digital_twin_models { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1336,9 +1339,9 @@ pub mod digital_twins { let mut url = azure_core::Url::parse(&format!("{}/digitaltwins/{}/relationships", this.client.endpoint(), &this.id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1357,6 +1360,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1429,9 +1435,9 @@ pub mod digital_twins { &this.id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1450,6 +1456,9 @@ pub mod digital_twins { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1843,9 +1852,9 @@ pub mod event_routes { async move { let mut url = azure_core::Url::parse(&format!("{}/eventroutes", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1864,6 +1873,9 @@ pub mod event_routes { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/filestorage/src/package_2020_10/models.rs b/services/svc/filestorage/src/package_2020_10/models.rs index 84fa5cf8c2..d3bbdac1b1 100644 --- a/services/svc/filestorage/src/package_2020_10/models.rs +++ b/services/svc/filestorage/src/package_2020_10/models.rs @@ -459,11 +459,11 @@ pub struct ListFilesAndDirectoriesSegmentResponse { pub directory_id: Option, } impl azure_core::Continuable for ListFilesAndDirectoriesSegmentResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_marker.is_empty() { None } else { - Some(self.next_marker.clone()) + Some(azure_core::prelude::Continuation::from(self.next_marker.clone())) } } } @@ -523,11 +523,11 @@ pub struct ListSharesResponse { pub next_marker: String, } impl azure_core::Continuable for ListSharesResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_marker.is_empty() { None } else { - Some(self.next_marker.clone()) + Some(azure_core::prelude::Continuation::from(self.next_marker.clone())) } } } @@ -785,7 +785,7 @@ pub struct StorageError { pub message: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/filestorage/src/package_2020_10/operations.rs b/services/svc/filestorage/src/package_2020_10/operations.rs index 7d53baaca1..59241696e9 100644 --- a/services/svc/filestorage/src/package_2020_10/operations.rs +++ b/services/svc/filestorage/src/package_2020_10/operations.rs @@ -260,9 +260,9 @@ pub mod service { async move { let mut url = azure_core::Url::parse(&format!("{}/?comp=list", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -274,6 +274,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2281,9 +2284,9 @@ pub mod directory { &this.directory ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2295,6 +2298,9 @@ pub mod directory { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/filestorage/src/package_2021_02/models.rs b/services/svc/filestorage/src/package_2021_02/models.rs index 5c33666796..ecffa9abd2 100644 --- a/services/svc/filestorage/src/package_2021_02/models.rs +++ b/services/svc/filestorage/src/package_2021_02/models.rs @@ -459,11 +459,11 @@ pub struct ListFilesAndDirectoriesSegmentResponse { pub directory_id: Option, } impl azure_core::Continuable for ListFilesAndDirectoriesSegmentResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_marker.is_empty() { None } else { - Some(self.next_marker.clone()) + Some(azure_core::prelude::Continuation::from(self.next_marker.clone())) } } } @@ -523,11 +523,11 @@ pub struct ListSharesResponse { pub next_marker: String, } impl azure_core::Continuable for ListSharesResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_marker.is_empty() { None } else { - Some(self.next_marker.clone()) + Some(azure_core::prelude::Continuation::from(self.next_marker.clone())) } } } @@ -788,7 +788,7 @@ pub struct StorageError { pub message: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/filestorage/src/package_2021_02/operations.rs b/services/svc/filestorage/src/package_2021_02/operations.rs index 7d53baaca1..59241696e9 100644 --- a/services/svc/filestorage/src/package_2021_02/operations.rs +++ b/services/svc/filestorage/src/package_2021_02/operations.rs @@ -260,9 +260,9 @@ pub mod service { async move { let mut url = azure_core::Url::parse(&format!("{}/?comp=list", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -274,6 +274,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2281,9 +2284,9 @@ pub mod directory { &this.directory ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2295,6 +2298,9 @@ pub mod directory { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/filestorage/src/package_2021_04/models.rs b/services/svc/filestorage/src/package_2021_04/models.rs index 5c33666796..ecffa9abd2 100644 --- a/services/svc/filestorage/src/package_2021_04/models.rs +++ b/services/svc/filestorage/src/package_2021_04/models.rs @@ -459,11 +459,11 @@ pub struct ListFilesAndDirectoriesSegmentResponse { pub directory_id: Option, } impl azure_core::Continuable for ListFilesAndDirectoriesSegmentResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_marker.is_empty() { None } else { - Some(self.next_marker.clone()) + Some(azure_core::prelude::Continuation::from(self.next_marker.clone())) } } } @@ -523,11 +523,11 @@ pub struct ListSharesResponse { pub next_marker: String, } impl azure_core::Continuable for ListSharesResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_marker.is_empty() { None } else { - Some(self.next_marker.clone()) + Some(azure_core::prelude::Continuation::from(self.next_marker.clone())) } } } @@ -788,7 +788,7 @@ pub struct StorageError { pub message: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/filestorage/src/package_2021_04/operations.rs b/services/svc/filestorage/src/package_2021_04/operations.rs index 6697efa96c..119bd29e62 100644 --- a/services/svc/filestorage/src/package_2021_04/operations.rs +++ b/services/svc/filestorage/src/package_2021_04/operations.rs @@ -260,9 +260,9 @@ pub mod service { async move { let mut url = azure_core::Url::parse(&format!("{}/?comp=list", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -274,6 +274,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2307,9 +2310,9 @@ pub mod directory { &this.directory ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2321,6 +2324,9 @@ pub mod directory { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/filestorage/src/package_2021_06/models.rs b/services/svc/filestorage/src/package_2021_06/models.rs index 5c33666796..ecffa9abd2 100644 --- a/services/svc/filestorage/src/package_2021_06/models.rs +++ b/services/svc/filestorage/src/package_2021_06/models.rs @@ -459,11 +459,11 @@ pub struct ListFilesAndDirectoriesSegmentResponse { pub directory_id: Option, } impl azure_core::Continuable for ListFilesAndDirectoriesSegmentResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_marker.is_empty() { None } else { - Some(self.next_marker.clone()) + Some(azure_core::prelude::Continuation::from(self.next_marker.clone())) } } } @@ -523,11 +523,11 @@ pub struct ListSharesResponse { pub next_marker: String, } impl azure_core::Continuable for ListSharesResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_marker.is_empty() { None } else { - Some(self.next_marker.clone()) + Some(azure_core::prelude::Continuation::from(self.next_marker.clone())) } } } @@ -788,7 +788,7 @@ pub struct StorageError { pub message: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/filestorage/src/package_2021_06/operations.rs b/services/svc/filestorage/src/package_2021_06/operations.rs index 45c7950424..32b69fcc79 100644 --- a/services/svc/filestorage/src/package_2021_06/operations.rs +++ b/services/svc/filestorage/src/package_2021_06/operations.rs @@ -260,9 +260,9 @@ pub mod service { async move { let mut url = azure_core::Url::parse(&format!("{}/?comp=list", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -274,6 +274,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2346,9 +2349,9 @@ pub mod directory { &this.directory ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2360,6 +2363,9 @@ pub mod directory { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/graphrbac/src/v1_6/models.rs b/services/svc/graphrbac/src/v1_6/models.rs index ac803eaf00..672f712306 100644 --- a/services/svc/graphrbac/src/v1_6/models.rs +++ b/services/svc/graphrbac/src/v1_6/models.rs @@ -122,8 +122,8 @@ pub struct AppRoleAssignmentListResult { pub odata_next_link: Option, } impl azure_core::Continuable for AppRoleAssignmentListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AppRoleAssignmentListResult { @@ -400,8 +400,8 @@ pub struct ApplicationListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ApplicationListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApplicationListResult { @@ -486,8 +486,8 @@ pub struct DirectoryObjectListResult { pub odata_next_link: Option, } impl azure_core::Continuable for DirectoryObjectListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DirectoryObjectListResult { @@ -528,7 +528,7 @@ pub struct DomainListResult { pub value: Vec, } impl azure_core::Continuable for DomainListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -575,7 +575,7 @@ pub struct GraphError { pub odata_error: Option, } impl azure_core::Continuable for GraphError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -655,7 +655,7 @@ pub struct GroupGetMemberGroupsResult { pub value: Vec, } impl azure_core::Continuable for GroupGetMemberGroupsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -675,8 +675,8 @@ pub struct GroupListResult { pub odata_next_link: Option, } impl azure_core::Continuable for GroupListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl GroupListResult { @@ -782,7 +782,7 @@ pub struct KeyCredentialListResult { pub value: Vec, } impl azure_core::Continuable for KeyCredentialListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -921,8 +921,8 @@ pub struct OAuth2PermissionGrantListResult { pub odata_next_link: Option, } impl azure_core::Continuable for OAuth2PermissionGrantListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OAuth2PermissionGrantListResult { @@ -1015,7 +1015,7 @@ pub struct PasswordCredentialListResult { pub value: Vec, } impl azure_core::Continuable for PasswordCredentialListResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1280,8 +1280,8 @@ pub struct ServicePrincipalListResult { pub odata_next_link: Option, } impl azure_core::Continuable for ServicePrincipalListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ServicePrincipalListResult { @@ -1553,7 +1553,7 @@ pub struct UserGetMemberGroupsResult { pub value: Vec, } impl azure_core::Continuable for UserGetMemberGroupsResult { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -1573,8 +1573,8 @@ pub struct UserListResult { pub odata_next_link: Option, } impl azure_core::Continuable for UserListResult { - fn continuation(&self) -> Option { - self.odata_next_link.clone() + fn continuation(&self) -> Option { + self.odata_next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserListResult { diff --git a/services/svc/graphrbac/src/v1_6/operations.rs b/services/svc/graphrbac/src/v1_6/operations.rs index 8aa455ae90..1616615062 100644 --- a/services/svc/graphrbac/src/v1_6/operations.rs +++ b/services/svc/graphrbac/src/v1_6/operations.rs @@ -156,9 +156,9 @@ pub mod o_auth2_permission_grant { &this.next_link ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -177,6 +177,9 @@ pub mod o_auth2_permission_grant { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -232,9 +235,9 @@ pub mod o_auth2_permission_grant { let mut url = azure_core::Url::parse(&format!("{}/{}/oauth2PermissionGrants", this.client.endpoint(), &this.tenant_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -253,6 +256,9 @@ pub mod o_auth2_permission_grant { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -441,9 +447,9 @@ pub mod signed_in_user { &this.next_link ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -462,6 +468,9 @@ pub mod signed_in_user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -555,9 +564,9 @@ pub mod signed_in_user { async move { let mut url = azure_core::Url::parse(&format!("{}/{}/me/ownedObjects", this.client.endpoint(), &this.tenant_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -576,6 +585,9 @@ pub mod signed_in_user { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -774,9 +786,9 @@ pub mod groups { &this.next_link ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -795,6 +807,9 @@ pub mod groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -850,9 +865,9 @@ pub mod groups { &this.next_link ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -871,6 +886,9 @@ pub mod groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1067,9 +1085,9 @@ pub mod groups { async move { let mut url = azure_core::Url::parse(&format!("{}/{}/groups", this.client.endpoint(), &this.tenant_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1088,6 +1106,9 @@ pub mod groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1192,9 +1213,9 @@ pub mod groups { &this.object_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1213,6 +1234,9 @@ pub mod groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1417,9 +1441,9 @@ pub mod groups { &this.object_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1438,6 +1462,9 @@ pub mod groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1736,9 +1763,9 @@ pub mod applications { &this.next_link ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1757,6 +1784,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1811,9 +1841,9 @@ pub mod applications { async move { let mut url = azure_core::Url::parse(&format!("{}/{}/applications", this.client.endpoint(), &this.tenant_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1832,6 +1862,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2080,9 +2113,9 @@ pub mod applications { &this.application_object_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2101,6 +2134,9 @@ pub mod applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2534,9 +2570,9 @@ pub mod deleted_applications { &this.next_link ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2555,6 +2591,9 @@ pub mod deleted_applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2661,9 +2700,9 @@ pub mod deleted_applications { let mut url = azure_core::Url::parse(&format!("{}/{}/deletedApplications", this.client.endpoint(), &this.tenant_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2682,6 +2721,9 @@ pub mod deleted_applications { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2946,9 +2988,9 @@ pub mod service_principals { &this.next_link ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2967,6 +3009,9 @@ pub mod service_principals { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3021,9 +3066,9 @@ pub mod service_principals { async move { let mut url = azure_core::Url::parse(&format!("{}/{}/servicePrincipals", this.client.endpoint(), &this.tenant_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3042,6 +3087,9 @@ pub mod service_principals { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3290,9 +3338,9 @@ pub mod service_principals { &this.object_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3311,6 +3359,9 @@ pub mod service_principals { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3366,9 +3417,9 @@ pub mod service_principals { &this.object_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3387,6 +3438,9 @@ pub mod service_principals { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3442,9 +3496,9 @@ pub mod service_principals { &this.object_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3463,6 +3517,9 @@ pub mod service_principals { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3881,9 +3938,9 @@ pub mod users { &this.next_link ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3902,6 +3959,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3966,9 +4026,9 @@ pub mod users { async move { let mut url = azure_core::Url::parse(&format!("{}/{}/users", this.client.endpoint(), &this.tenant_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3987,6 +4047,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4322,9 +4385,9 @@ pub mod objects { &this.next_link ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4343,6 +4406,9 @@ pub mod objects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); @@ -4395,9 +4461,9 @@ pub mod objects { let mut url = azure_core::Url::parse(&format!("{}/{}/getObjectsByObjectIds", this.client.endpoint(), &this.tenant_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4416,6 +4482,9 @@ pub mod objects { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::POST); let credential = this.client.token_credential(); diff --git a/services/svc/iotcentral/src/package_1_0/models.rs b/services/svc/iotcentral/src/package_1_0/models.rs index e27a5771de..b83d34cf7a 100644 --- a/services/svc/iotcentral/src/package_1_0/models.rs +++ b/services/svc/iotcentral/src/package_1_0/models.rs @@ -39,8 +39,8 @@ pub struct ApiTokenCollection { pub next_link: Option, } impl azure_core::Continuable for ApiTokenCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiTokenCollection { @@ -113,8 +113,8 @@ pub struct DeviceCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCollection { @@ -159,8 +159,8 @@ pub struct DeviceCommandCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceCommandCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCommandCollection { @@ -261,8 +261,8 @@ pub struct DeviceTemplateCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceTemplateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceTemplateCollection { @@ -330,8 +330,8 @@ pub struct RoleCollection { pub next_link: Option, } impl azure_core::Continuable for RoleCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleCollection { @@ -451,8 +451,8 @@ pub struct UserCollection { pub next_link: Option, } impl azure_core::Continuable for UserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserCollection { diff --git a/services/svc/iotcentral/src/package_1_0/operations.rs b/services/svc/iotcentral/src/package_1_0/operations.rs index a64874800b..90310fe9d0 100644 --- a/services/svc/iotcentral/src/package_1_0/operations.rs +++ b/services/svc/iotcentral/src/package_1_0/operations.rs @@ -135,9 +135,9 @@ pub mod api_tokens { async move { let mut url = azure_core::Url::parse(&format!("{}/apiTokens", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -156,6 +156,9 @@ pub mod api_tokens { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -374,9 +377,9 @@ pub mod device_templates { async move { let mut url = azure_core::Url::parse(&format!("{}/deviceTemplates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -395,6 +398,9 @@ pub mod device_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1051,9 +1057,9 @@ pub mod devices { async move { let mut url = azure_core::Url::parse(&format!("{}/devices", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1072,6 +1078,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1479,9 +1488,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1500,6 +1509,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1653,9 +1665,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1674,6 +1686,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2079,9 +2094,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2100,6 +2115,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2263,9 +2281,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2284,6 +2302,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3011,9 +3032,9 @@ pub mod roles { async move { let mut url = azure_core::Url::parse(&format!("{}/roles", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3032,6 +3053,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3164,9 +3188,9 @@ pub mod users { async move { let mut url = azure_core::Url::parse(&format!("{}/users", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3185,6 +3209,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/iotcentral/src/package_1_1_preview/models.rs b/services/svc/iotcentral/src/package_1_1_preview/models.rs index 9c4389b355..0064302118 100644 --- a/services/svc/iotcentral/src/package_1_1_preview/models.rs +++ b/services/svc/iotcentral/src/package_1_1_preview/models.rs @@ -57,8 +57,8 @@ pub struct ApiTokenCollection { pub next_link: Option, } impl azure_core::Continuable for ApiTokenCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiTokenCollection { @@ -309,8 +309,8 @@ pub struct DestinationCollection { pub next_link: Option, } impl azure_core::Continuable for DestinationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DestinationCollection { @@ -372,8 +372,8 @@ pub struct DeviceCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCollection { @@ -416,8 +416,8 @@ pub struct DeviceCommandCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceCommandCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCommandCollection { @@ -473,8 +473,8 @@ pub struct DeviceGroupCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceGroupCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceGroupCollection { @@ -584,8 +584,8 @@ pub struct DeviceTemplateCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceTemplateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceTemplateCollection { @@ -746,8 +746,8 @@ pub struct ExportCollection { pub next_link: Option, } impl azure_core::Continuable for ExportCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExportCollection { @@ -905,8 +905,8 @@ pub struct JobCollection { pub next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -990,8 +990,8 @@ pub struct OrganizationCollection { pub next_link: Option, } impl azure_core::Continuable for OrganizationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrganizationCollection { @@ -1074,8 +1074,8 @@ pub struct RoleCollection { pub next_link: Option, } impl azure_core::Continuable for RoleCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleCollection { @@ -1308,8 +1308,8 @@ pub struct UserCollection { pub next_link: Option, } impl azure_core::Continuable for UserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserCollection { diff --git a/services/svc/iotcentral/src/package_1_1_preview/operations.rs b/services/svc/iotcentral/src/package_1_1_preview/operations.rs index e6627979c7..b102698df5 100644 --- a/services/svc/iotcentral/src/package_1_1_preview/operations.rs +++ b/services/svc/iotcentral/src/package_1_1_preview/operations.rs @@ -156,9 +156,9 @@ pub mod api_tokens { async move { let mut url = azure_core::Url::parse(&format!("{}/apiTokens", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -177,6 +177,9 @@ pub mod api_tokens { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -402,9 +405,9 @@ pub mod destinations { async move { let mut url = azure_core::Url::parse(&format!("{}/dataExport/destinations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -423,6 +426,9 @@ pub mod destinations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -668,9 +674,9 @@ pub mod destinations { &this.destination_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -689,6 +695,9 @@ pub mod destinations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -784,9 +793,9 @@ pub mod exports { async move { let mut url = azure_core::Url::parse(&format!("{}/dataExport/exports", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -805,6 +814,9 @@ pub mod exports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1034,9 +1046,9 @@ pub mod exports { &this.export_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1055,6 +1067,9 @@ pub mod exports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1113,9 +1128,9 @@ pub mod device_groups { async move { let mut url = azure_core::Url::parse(&format!("{}/deviceGroups", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1134,6 +1149,9 @@ pub mod device_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1242,9 +1260,9 @@ pub mod device_templates { async move { let mut url = azure_core::Url::parse(&format!("{}/deviceTemplates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1263,6 +1281,9 @@ pub mod device_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2003,9 +2024,9 @@ pub mod devices { async move { let mut url = azure_core::Url::parse(&format!("{}/devices", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2024,6 +2045,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2440,9 +2464,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2461,6 +2485,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2614,9 +2641,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2635,6 +2662,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3040,9 +3070,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3061,6 +3091,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3224,9 +3257,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3245,6 +3278,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4454,9 +4490,9 @@ pub mod jobs { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4475,6 +4511,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4829,9 +4868,9 @@ pub mod organizations { async move { let mut url = azure_core::Url::parse(&format!("{}/organizations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4850,6 +4889,9 @@ pub mod organizations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5149,9 +5191,9 @@ pub mod roles { async move { let mut url = azure_core::Url::parse(&format!("{}/roles", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5170,6 +5212,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5302,9 +5347,9 @@ pub mod users { async move { let mut url = azure_core::Url::parse(&format!("{}/users", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5323,6 +5368,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/iotcentral/src/package_1_2_preview/models.rs b/services/svc/iotcentral/src/package_1_2_preview/models.rs index 79c9fc6920..0357176ea1 100644 --- a/services/svc/iotcentral/src/package_1_2_preview/models.rs +++ b/services/svc/iotcentral/src/package_1_2_preview/models.rs @@ -67,8 +67,8 @@ pub struct ApiTokenCollection { pub next_link: Option, } impl azure_core::Continuable for ApiTokenCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiTokenCollection { @@ -372,8 +372,8 @@ pub struct DestinationCollection { pub next_link: Option, } impl azure_core::Continuable for DestinationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DestinationCollection { @@ -451,8 +451,8 @@ pub struct DeviceCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCollection { @@ -496,8 +496,8 @@ pub struct DeviceCommandCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceCommandCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCommandCollection { @@ -573,8 +573,8 @@ pub struct DeviceGroupCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceGroupCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceGroupCollection { @@ -686,8 +686,8 @@ pub struct DeviceTemplateCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceTemplateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceTemplateCollection { @@ -747,7 +747,7 @@ pub struct Error { pub error: Option, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -907,8 +907,8 @@ pub struct ExportCollection { pub next_link: Option, } impl azure_core::Continuable for ExportCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ExportCollection { @@ -1089,8 +1089,8 @@ pub struct JobCollection { pub next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -1134,8 +1134,8 @@ pub struct JobDeviceStatusCollection { pub next_link: Option, } impl azure_core::Continuable for JobDeviceStatusCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobDeviceStatusCollection { @@ -1170,8 +1170,8 @@ pub struct OrganizationCollection { pub next_link: Option, } impl azure_core::Continuable for OrganizationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrganizationCollection { @@ -1265,8 +1265,8 @@ pub struct RoleCollection { pub next_link: Option, } impl azure_core::Continuable for RoleCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleCollection { @@ -1517,8 +1517,8 @@ pub struct UserCollection { pub next_link: Option, } impl azure_core::Continuable for UserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserCollection { diff --git a/services/svc/iotcentral/src/package_1_2_preview/operations.rs b/services/svc/iotcentral/src/package_1_2_preview/operations.rs index 279f2c248a..4830712845 100644 --- a/services/svc/iotcentral/src/package_1_2_preview/operations.rs +++ b/services/svc/iotcentral/src/package_1_2_preview/operations.rs @@ -156,9 +156,9 @@ pub mod api_tokens { async move { let mut url = azure_core::Url::parse(&format!("{}/apiTokens", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -177,6 +177,9 @@ pub mod api_tokens { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -402,9 +405,9 @@ pub mod destinations { async move { let mut url = azure_core::Url::parse(&format!("{}/dataExport/destinations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -423,6 +426,9 @@ pub mod destinations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -668,9 +674,9 @@ pub mod destinations { &this.destination_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -689,6 +695,9 @@ pub mod destinations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -784,9 +793,9 @@ pub mod exports { async move { let mut url = azure_core::Url::parse(&format!("{}/dataExport/exports", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -805,6 +814,9 @@ pub mod exports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1034,9 +1046,9 @@ pub mod exports { &this.export_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1055,6 +1067,9 @@ pub mod exports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1163,9 +1178,9 @@ pub mod device_groups { async move { let mut url = azure_core::Url::parse(&format!("{}/deviceGroups", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1184,6 +1199,9 @@ pub mod device_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1477,9 +1495,9 @@ pub mod device_templates { async move { let mut url = azure_core::Url::parse(&format!("{}/deviceTemplates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1498,6 +1516,9 @@ pub mod device_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2238,9 +2259,9 @@ pub mod devices { async move { let mut url = azure_core::Url::parse(&format!("{}/devices", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2259,6 +2280,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2675,9 +2699,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2696,6 +2720,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2849,9 +2876,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2870,6 +2897,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3275,9 +3305,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3296,6 +3326,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3459,9 +3492,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3480,6 +3513,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4688,9 +4724,9 @@ pub mod jobs { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4709,6 +4745,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4848,9 +4887,9 @@ pub mod jobs { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs/{}/devices", this.client.endpoint(), &this.job_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4869,6 +4908,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5089,9 +5131,9 @@ pub mod organizations { async move { let mut url = azure_core::Url::parse(&format!("{}/organizations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5110,6 +5152,9 @@ pub mod organizations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5409,9 +5454,9 @@ pub mod roles { async move { let mut url = azure_core::Url::parse(&format!("{}/roles", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5430,6 +5475,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5562,9 +5610,9 @@ pub mod users { async move { let mut url = azure_core::Url::parse(&format!("{}/users", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5583,6 +5631,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/iotcentral/src/package_2021_04_30_preview/models.rs b/services/svc/iotcentral/src/package_2021_04_30_preview/models.rs index 98c4ffb56b..69e5eb8c62 100644 --- a/services/svc/iotcentral/src/package_2021_04_30_preview/models.rs +++ b/services/svc/iotcentral/src/package_2021_04_30_preview/models.rs @@ -57,8 +57,8 @@ pub struct ApiTokenCollection { pub next_link: Option, } impl azure_core::Continuable for ApiTokenCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiTokenCollection { @@ -152,8 +152,8 @@ pub struct ContinuousDataExportCollection { pub next_link: Option, } impl azure_core::Continuable for ContinuousDataExportCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ContinuousDataExportCollection { @@ -207,8 +207,8 @@ pub struct DeviceCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCollection { @@ -251,8 +251,8 @@ pub struct DeviceCommandCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceCommandCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCommandCollection { @@ -305,8 +305,8 @@ pub struct DeviceGroupCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceGroupCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceGroupCollection { @@ -381,8 +381,8 @@ pub struct DeviceTemplateCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceTemplateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceTemplateCollection { @@ -529,8 +529,8 @@ pub struct JobCollection { pub next_link: Option, } impl azure_core::Continuable for JobCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobCollection { @@ -641,8 +641,8 @@ pub struct RoleCollection { pub next_link: Option, } impl azure_core::Continuable for RoleCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleCollection { @@ -783,8 +783,8 @@ pub struct UserCollection { pub next_link: Option, } impl azure_core::Continuable for UserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserCollection { diff --git a/services/svc/iotcentral/src/package_2021_04_30_preview/operations.rs b/services/svc/iotcentral/src/package_2021_04_30_preview/operations.rs index bfc4a91c91..db14a5ccb9 100644 --- a/services/svc/iotcentral/src/package_2021_04_30_preview/operations.rs +++ b/services/svc/iotcentral/src/package_2021_04_30_preview/operations.rs @@ -144,9 +144,9 @@ pub mod api_tokens { async move { let mut url = azure_core::Url::parse(&format!("{}/apiTokens", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -165,6 +165,9 @@ pub mod api_tokens { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -383,9 +386,9 @@ pub mod continuous_data_exports { async move { let mut url = azure_core::Url::parse(&format!("{}/continuousDataExports", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -404,6 +407,9 @@ pub mod continuous_data_exports { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -638,9 +644,9 @@ pub mod device_groups { async move { let mut url = azure_core::Url::parse(&format!("{}/deviceGroups", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -659,6 +665,9 @@ pub mod device_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -761,9 +770,9 @@ pub mod device_templates { async move { let mut url = azure_core::Url::parse(&format!("{}/deviceTemplates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -782,6 +791,9 @@ pub mod device_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1015,9 +1027,9 @@ pub mod device_templates { &this.device_template_id ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1036,6 +1048,9 @@ pub mod device_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1591,9 +1606,9 @@ pub mod devices { async move { let mut url = azure_core::Url::parse(&format!("{}/devices", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1612,6 +1627,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2158,9 +2176,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2179,6 +2197,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2332,9 +2353,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2353,6 +2374,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2758,9 +2782,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2779,6 +2803,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2942,9 +2969,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2963,6 +2990,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3727,9 +3757,9 @@ pub mod jobs { async move { let mut url = azure_core::Url::parse(&format!("{}/jobs", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3748,6 +3778,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4079,9 +4112,9 @@ pub mod roles { async move { let mut url = azure_core::Url::parse(&format!("{}/roles", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4100,6 +4133,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4232,9 +4268,9 @@ pub mod users { async move { let mut url = azure_core::Url::parse(&format!("{}/users", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4253,6 +4289,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/iotcentral/src/package_2022_05_31/models.rs b/services/svc/iotcentral/src/package_2022_05_31/models.rs index e50fe862db..dda723a014 100644 --- a/services/svc/iotcentral/src/package_2022_05_31/models.rs +++ b/services/svc/iotcentral/src/package_2022_05_31/models.rs @@ -68,8 +68,8 @@ pub struct ApiTokenCollection { pub next_link: Option, } impl azure_core::Continuable for ApiTokenCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ApiTokenCollection { @@ -146,8 +146,8 @@ pub struct DeviceCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCollection { @@ -192,8 +192,8 @@ pub struct DeviceCommandCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceCommandCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceCommandCollection { @@ -270,8 +270,8 @@ pub struct DeviceGroupCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceGroupCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceGroupCollection { @@ -346,8 +346,8 @@ pub struct DeviceTemplateCollection { pub next_link: Option, } impl azure_core::Continuable for DeviceTemplateCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeviceTemplateCollection { @@ -375,7 +375,7 @@ pub struct Error { pub error: ErrorDetails, } impl azure_core::Continuable for Error { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -485,8 +485,8 @@ pub struct OrganizationCollection { pub next_link: Option, } impl azure_core::Continuable for OrganizationCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl OrganizationCollection { @@ -544,8 +544,8 @@ pub struct RoleCollection { pub next_link: Option, } impl azure_core::Continuable for RoleCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleCollection { @@ -665,8 +665,8 @@ pub struct UserCollection { pub next_link: Option, } impl azure_core::Continuable for UserCollection { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl UserCollection { diff --git a/services/svc/iotcentral/src/package_2022_05_31/operations.rs b/services/svc/iotcentral/src/package_2022_05_31/operations.rs index 3d886c5abc..d6bab31c97 100644 --- a/services/svc/iotcentral/src/package_2022_05_31/operations.rs +++ b/services/svc/iotcentral/src/package_2022_05_31/operations.rs @@ -144,9 +144,9 @@ pub mod api_tokens { async move { let mut url = azure_core::Url::parse(&format!("{}/apiTokens", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -165,6 +165,9 @@ pub mod api_tokens { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -383,9 +386,9 @@ pub mod device_groups { async move { let mut url = azure_core::Url::parse(&format!("{}/deviceGroups", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -404,6 +407,9 @@ pub mod device_groups { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -668,9 +674,9 @@ pub mod device_templates { async move { let mut url = azure_core::Url::parse(&format!("{}/deviceTemplates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -689,6 +695,9 @@ pub mod device_templates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1345,9 +1354,9 @@ pub mod devices { async move { let mut url = azure_core::Url::parse(&format!("{}/devices", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1366,6 +1375,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1773,9 +1785,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1794,6 +1806,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1947,9 +1962,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1968,6 +1983,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2373,9 +2391,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2394,6 +2412,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2557,9 +2578,9 @@ pub mod devices { &this.command_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2578,6 +2599,9 @@ pub mod devices { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3528,9 +3552,9 @@ pub mod organizations { async move { let mut url = azure_core::Url::parse(&format!("{}/organizations", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3549,6 +3573,9 @@ pub mod organizations { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3790,9 +3817,9 @@ pub mod roles { async move { let mut url = azure_core::Url::parse(&format!("{}/roles", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3811,6 +3838,9 @@ pub mod roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3943,9 +3973,9 @@ pub mod users { async move { let mut url = azure_core::Url::parse(&format!("{}/users", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3964,6 +3994,9 @@ pub mod users { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/keyvault/src/package_7_1_preview/models.rs b/services/svc/keyvault/src/package_7_1_preview/models.rs index dbde82226d..0d0b3ee39b 100644 --- a/services/svc/keyvault/src/package_7_1_preview/models.rs +++ b/services/svc/keyvault/src/package_7_1_preview/models.rs @@ -304,8 +304,8 @@ pub struct CertificateIssuerListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateIssuerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateIssuerListResult { @@ -391,8 +391,8 @@ pub struct CertificateListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -611,8 +611,8 @@ pub struct DeletedCertificateListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedCertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedCertificateListResult { @@ -671,8 +671,8 @@ pub struct DeletedKeyListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedKeyListResult { @@ -731,8 +731,8 @@ pub struct DeletedSasDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedSasDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedSasDefinitionListResult { @@ -791,8 +791,8 @@ pub struct DeletedSecretListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedSecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedSecretListResult { @@ -851,8 +851,8 @@ pub struct DeletedStorageListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedStorageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedStorageListResult { @@ -1388,8 +1388,8 @@ pub struct KeyListResult { pub next_link: Option, } impl azure_core::Continuable for KeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyListResult { @@ -1706,7 +1706,7 @@ pub struct KeyVaultError { pub error: Option, } impl azure_core::Continuable for KeyVaultError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2113,8 +2113,8 @@ pub struct SasDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for SasDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SasDefinitionListResult { @@ -2330,8 +2330,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -2621,8 +2621,8 @@ pub struct StorageListResult { pub next_link: Option, } impl azure_core::Continuable for StorageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageListResult { diff --git a/services/svc/keyvault/src/package_7_1_preview/operations.rs b/services/svc/keyvault/src/package_7_1_preview/operations.rs index a2ece6790b..eb909e97fd 100644 --- a/services/svc/keyvault/src/package_7_1_preview/operations.rs +++ b/services/svc/keyvault/src/package_7_1_preview/operations.rs @@ -790,9 +790,9 @@ pub mod get_certificates { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -811,6 +811,9 @@ pub mod get_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1047,9 +1050,9 @@ pub mod get_certificate_issuers { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates/issuers", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1068,6 +1071,9 @@ pub mod get_certificate_issuers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1409,9 +1415,9 @@ pub mod get_certificate_versions { &this.certificate_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1430,6 +1436,9 @@ pub mod get_certificate_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1981,9 +1990,9 @@ pub mod get_deleted_certificates { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedcertificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2002,6 +2011,9 @@ pub mod get_deleted_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2433,9 +2445,9 @@ pub mod get_key_versions { async move { let mut url = azure_core::Url::parse(&format!("{}/keys/{}/versions", this.client.endpoint(), &this.key_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2454,6 +2466,9 @@ pub mod get_key_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2510,9 +2525,9 @@ pub mod get_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/keys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2531,6 +2546,9 @@ pub mod get_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2989,9 +3007,9 @@ pub mod get_deleted_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedkeys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3010,6 +3028,9 @@ pub mod get_deleted_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3387,9 +3408,9 @@ pub mod get_secrets { async move { let mut url = azure_core::Url::parse(&format!("{}/secrets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3408,6 +3429,9 @@ pub mod get_secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3465,9 +3489,9 @@ pub mod get_secret_versions { async move { let mut url = azure_core::Url::parse(&format!("{}/secrets/{}/versions", this.client.endpoint(), &this.secret_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3486,6 +3510,9 @@ pub mod get_secret_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3542,9 +3569,9 @@ pub mod get_deleted_secrets { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedsecrets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3563,6 +3590,9 @@ pub mod get_deleted_secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3838,9 +3868,9 @@ pub mod get_storage_accounts { async move { let mut url = azure_core::Url::parse(&format!("{}/storage", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3859,6 +3889,9 @@ pub mod get_storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3915,9 +3948,9 @@ pub mod get_deleted_storage_accounts { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedstorage", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3936,6 +3969,9 @@ pub mod get_deleted_storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4447,9 +4483,9 @@ pub mod get_sas_definitions { let mut url = azure_core::Url::parse(&format!("{}/storage/{}/sas", this.client.endpoint(), &this.storage_account_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4468,6 +4504,9 @@ pub mod get_sas_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4529,9 +4568,9 @@ pub mod get_deleted_sas_definitions { &this.storage_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4550,6 +4589,9 @@ pub mod get_deleted_sas_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/keyvault/src/package_7_2/models.rs b/services/svc/keyvault/src/package_7_2/models.rs index 14ef0bd799..d98b4e4358 100644 --- a/services/svc/keyvault/src/package_7_2/models.rs +++ b/services/svc/keyvault/src/package_7_2/models.rs @@ -320,8 +320,8 @@ pub struct CertificateIssuerListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateIssuerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateIssuerListResult { @@ -407,8 +407,8 @@ pub struct CertificateListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -815,8 +815,8 @@ pub struct DeletedCertificateListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedCertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedCertificateListResult { @@ -875,8 +875,8 @@ pub struct DeletedKeyListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedKeyListResult { @@ -935,8 +935,8 @@ pub struct DeletedSasDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedSasDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedSasDefinitionListResult { @@ -995,8 +995,8 @@ pub struct DeletedSecretListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedSecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedSecretListResult { @@ -1055,8 +1055,8 @@ pub struct DeletedStorageListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedStorageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedStorageListResult { @@ -1632,8 +1632,8 @@ pub struct KeyListResult { pub next_link: Option, } impl azure_core::Continuable for KeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyListResult { @@ -2010,7 +2010,7 @@ pub struct KeyVaultError { pub error: Option, } impl azure_core::Continuable for KeyVaultError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2276,8 +2276,8 @@ pub struct RoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentListResult { @@ -2417,8 +2417,8 @@ pub struct RoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for RoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleDefinitionListResult { @@ -2806,8 +2806,8 @@ pub struct SasDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for SasDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SasDefinitionListResult { @@ -3023,8 +3023,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -3440,8 +3440,8 @@ pub struct StorageListResult { pub next_link: Option, } impl azure_core::Continuable for StorageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageListResult { diff --git a/services/svc/keyvault/src/package_7_2/operations.rs b/services/svc/keyvault/src/package_7_2/operations.rs index fd8404c099..8eb2549e5c 100644 --- a/services/svc/keyvault/src/package_7_2/operations.rs +++ b/services/svc/keyvault/src/package_7_2/operations.rs @@ -830,9 +830,9 @@ pub mod get_certificates { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -851,6 +851,9 @@ pub mod get_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1087,9 +1090,9 @@ pub mod get_certificate_issuers { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates/issuers", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1108,6 +1111,9 @@ pub mod get_certificate_issuers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1449,9 +1455,9 @@ pub mod get_certificate_versions { &this.certificate_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1470,6 +1476,9 @@ pub mod get_certificate_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2021,9 +2030,9 @@ pub mod get_deleted_certificates { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedcertificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2042,6 +2051,9 @@ pub mod get_deleted_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2473,9 +2485,9 @@ pub mod get_key_versions { async move { let mut url = azure_core::Url::parse(&format!("{}/keys/{}/versions", this.client.endpoint(), &this.key_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2494,6 +2506,9 @@ pub mod get_key_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2550,9 +2565,9 @@ pub mod get_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/keys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2571,6 +2586,9 @@ pub mod get_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3029,9 +3047,9 @@ pub mod get_deleted_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedkeys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3050,6 +3068,9 @@ pub mod get_deleted_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3427,9 +3448,9 @@ pub mod get_secrets { async move { let mut url = azure_core::Url::parse(&format!("{}/secrets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3448,6 +3469,9 @@ pub mod get_secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3505,9 +3529,9 @@ pub mod get_secret_versions { async move { let mut url = azure_core::Url::parse(&format!("{}/secrets/{}/versions", this.client.endpoint(), &this.secret_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3526,6 +3550,9 @@ pub mod get_secret_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3582,9 +3609,9 @@ pub mod get_deleted_secrets { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedsecrets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3603,6 +3630,9 @@ pub mod get_deleted_secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3878,9 +3908,9 @@ pub mod get_storage_accounts { async move { let mut url = azure_core::Url::parse(&format!("{}/storage", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3899,6 +3929,9 @@ pub mod get_storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3955,9 +3988,9 @@ pub mod get_deleted_storage_accounts { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedstorage", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3976,6 +4009,9 @@ pub mod get_deleted_storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4487,9 +4523,9 @@ pub mod get_sas_definitions { let mut url = azure_core::Url::parse(&format!("{}/storage/{}/sas", this.client.endpoint(), &this.storage_account_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4508,6 +4544,9 @@ pub mod get_sas_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4569,9 +4608,9 @@ pub mod get_deleted_sas_definitions { &this.storage_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4590,6 +4629,9 @@ pub mod get_deleted_sas_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5398,9 +5440,9 @@ pub mod role_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5419,6 +5461,9 @@ pub mod role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5672,9 +5717,9 @@ pub mod role_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5693,6 +5738,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/keyvault/src/package_7_2_preview/models.rs b/services/svc/keyvault/src/package_7_2_preview/models.rs index 4ba6293a0a..68bddc834d 100644 --- a/services/svc/keyvault/src/package_7_2_preview/models.rs +++ b/services/svc/keyvault/src/package_7_2_preview/models.rs @@ -320,8 +320,8 @@ pub struct CertificateIssuerListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateIssuerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateIssuerListResult { @@ -407,8 +407,8 @@ pub struct CertificateListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -805,8 +805,8 @@ pub struct DeletedCertificateListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedCertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedCertificateListResult { @@ -865,8 +865,8 @@ pub struct DeletedKeyListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedKeyListResult { @@ -925,8 +925,8 @@ pub struct DeletedSasDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedSasDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedSasDefinitionListResult { @@ -985,8 +985,8 @@ pub struct DeletedSecretListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedSecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedSecretListResult { @@ -1045,8 +1045,8 @@ pub struct DeletedStorageListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedStorageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedStorageListResult { @@ -1622,8 +1622,8 @@ pub struct KeyListResult { pub next_link: Option, } impl azure_core::Continuable for KeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyListResult { @@ -2000,7 +2000,7 @@ pub struct KeyVaultError { pub error: Option, } impl azure_core::Continuable for KeyVaultError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2266,8 +2266,8 @@ pub struct RoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentListResult { @@ -2407,8 +2407,8 @@ pub struct RoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for RoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleDefinitionListResult { @@ -2796,8 +2796,8 @@ pub struct SasDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for SasDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SasDefinitionListResult { @@ -3013,8 +3013,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -3439,8 +3439,8 @@ pub struct StorageListResult { pub next_link: Option, } impl azure_core::Continuable for StorageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageListResult { diff --git a/services/svc/keyvault/src/package_7_2_preview/operations.rs b/services/svc/keyvault/src/package_7_2_preview/operations.rs index ed6336bacb..72be61f2e5 100644 --- a/services/svc/keyvault/src/package_7_2_preview/operations.rs +++ b/services/svc/keyvault/src/package_7_2_preview/operations.rs @@ -830,9 +830,9 @@ pub mod get_certificates { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -851,6 +851,9 @@ pub mod get_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1087,9 +1090,9 @@ pub mod get_certificate_issuers { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates/issuers", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1108,6 +1111,9 @@ pub mod get_certificate_issuers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1449,9 +1455,9 @@ pub mod get_certificate_versions { &this.certificate_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1470,6 +1476,9 @@ pub mod get_certificate_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2021,9 +2030,9 @@ pub mod get_deleted_certificates { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedcertificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2042,6 +2051,9 @@ pub mod get_deleted_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2473,9 +2485,9 @@ pub mod get_key_versions { async move { let mut url = azure_core::Url::parse(&format!("{}/keys/{}/versions", this.client.endpoint(), &this.key_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2494,6 +2506,9 @@ pub mod get_key_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2550,9 +2565,9 @@ pub mod get_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/keys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2571,6 +2586,9 @@ pub mod get_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3029,9 +3047,9 @@ pub mod get_deleted_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedkeys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3050,6 +3068,9 @@ pub mod get_deleted_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3427,9 +3448,9 @@ pub mod get_secrets { async move { let mut url = azure_core::Url::parse(&format!("{}/secrets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3448,6 +3469,9 @@ pub mod get_secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3505,9 +3529,9 @@ pub mod get_secret_versions { async move { let mut url = azure_core::Url::parse(&format!("{}/secrets/{}/versions", this.client.endpoint(), &this.secret_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3526,6 +3550,9 @@ pub mod get_secret_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3582,9 +3609,9 @@ pub mod get_deleted_secrets { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedsecrets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3603,6 +3630,9 @@ pub mod get_deleted_secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3878,9 +3908,9 @@ pub mod get_storage_accounts { async move { let mut url = azure_core::Url::parse(&format!("{}/storage", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3899,6 +3929,9 @@ pub mod get_storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3955,9 +3988,9 @@ pub mod get_deleted_storage_accounts { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedstorage", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3976,6 +4009,9 @@ pub mod get_deleted_storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4487,9 +4523,9 @@ pub mod get_sas_definitions { let mut url = azure_core::Url::parse(&format!("{}/storage/{}/sas", this.client.endpoint(), &this.storage_account_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4508,6 +4544,9 @@ pub mod get_sas_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4569,9 +4608,9 @@ pub mod get_deleted_sas_definitions { &this.storage_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4590,6 +4629,9 @@ pub mod get_deleted_sas_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5398,9 +5440,9 @@ pub mod role_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5419,6 +5461,9 @@ pub mod role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5672,9 +5717,9 @@ pub mod role_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5693,6 +5738,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/keyvault/src/package_7_3/models.rs b/services/svc/keyvault/src/package_7_3/models.rs index 7aa6d40ca2..d5efa1232f 100644 --- a/services/svc/keyvault/src/package_7_3/models.rs +++ b/services/svc/keyvault/src/package_7_3/models.rs @@ -320,8 +320,8 @@ pub struct CertificateIssuerListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateIssuerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateIssuerListResult { @@ -407,8 +407,8 @@ pub struct CertificateListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -830,8 +830,8 @@ pub struct DeletedCertificateListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedCertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedCertificateListResult { @@ -890,8 +890,8 @@ pub struct DeletedKeyListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedKeyListResult { @@ -950,8 +950,8 @@ pub struct DeletedSasDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedSasDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedSasDefinitionListResult { @@ -1010,8 +1010,8 @@ pub struct DeletedSecretListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedSecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedSecretListResult { @@ -1070,8 +1070,8 @@ pub struct DeletedStorageListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedStorageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedStorageListResult { @@ -1732,8 +1732,8 @@ pub struct KeyListResult { pub next_link: Option, } impl azure_core::Continuable for KeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyListResult { @@ -2243,7 +2243,7 @@ pub struct KeyVaultError { pub error: Option, } impl azure_core::Continuable for KeyVaultError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2573,8 +2573,8 @@ pub struct RoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentListResult { @@ -2714,8 +2714,8 @@ pub struct RoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for RoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleDefinitionListResult { @@ -3103,8 +3103,8 @@ pub struct SasDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for SasDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SasDefinitionListResult { @@ -3320,8 +3320,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -3737,8 +3737,8 @@ pub struct StorageListResult { pub next_link: Option, } impl azure_core::Continuable for StorageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageListResult { diff --git a/services/svc/keyvault/src/package_7_3/operations.rs b/services/svc/keyvault/src/package_7_3/operations.rs index 51b31f531e..da75d421b3 100644 --- a/services/svc/keyvault/src/package_7_3/operations.rs +++ b/services/svc/keyvault/src/package_7_3/operations.rs @@ -1128,9 +1128,9 @@ pub mod get_certificates { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1149,6 +1149,9 @@ pub mod get_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1385,9 +1388,9 @@ pub mod get_certificate_issuers { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates/issuers", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1406,6 +1409,9 @@ pub mod get_certificate_issuers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1747,9 +1753,9 @@ pub mod get_certificate_versions { &this.certificate_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1768,6 +1774,9 @@ pub mod get_certificate_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2319,9 +2328,9 @@ pub mod get_deleted_certificates { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedcertificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2340,6 +2349,9 @@ pub mod get_deleted_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2816,9 +2828,9 @@ pub mod get_key_versions { async move { let mut url = azure_core::Url::parse(&format!("{}/keys/{}/versions", this.client.endpoint(), &this.key_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2837,6 +2849,9 @@ pub mod get_key_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2893,9 +2908,9 @@ pub mod get_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/keys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2914,6 +2929,9 @@ pub mod get_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3424,9 +3442,9 @@ pub mod get_deleted_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedkeys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3445,6 +3463,9 @@ pub mod get_deleted_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3957,9 +3978,9 @@ pub mod get_secrets { async move { let mut url = azure_core::Url::parse(&format!("{}/secrets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3978,6 +3999,9 @@ pub mod get_secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4035,9 +4059,9 @@ pub mod get_secret_versions { async move { let mut url = azure_core::Url::parse(&format!("{}/secrets/{}/versions", this.client.endpoint(), &this.secret_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4056,6 +4080,9 @@ pub mod get_secret_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4112,9 +4139,9 @@ pub mod get_deleted_secrets { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedsecrets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4133,6 +4160,9 @@ pub mod get_deleted_secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4408,9 +4438,9 @@ pub mod get_storage_accounts { async move { let mut url = azure_core::Url::parse(&format!("{}/storage", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4429,6 +4459,9 @@ pub mod get_storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4485,9 +4518,9 @@ pub mod get_deleted_storage_accounts { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedstorage", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4506,6 +4539,9 @@ pub mod get_deleted_storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5017,9 +5053,9 @@ pub mod get_sas_definitions { let mut url = azure_core::Url::parse(&format!("{}/storage/{}/sas", this.client.endpoint(), &this.storage_account_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5038,6 +5074,9 @@ pub mod get_sas_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5099,9 +5138,9 @@ pub mod get_deleted_sas_definitions { &this.storage_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5120,6 +5159,9 @@ pub mod get_deleted_sas_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5677,9 +5719,9 @@ pub mod role_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5698,6 +5740,9 @@ pub mod role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5951,9 +5996,9 @@ pub mod role_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5972,6 +6017,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/keyvault/src/package_preview_7_3_preview/models.rs b/services/svc/keyvault/src/package_preview_7_3_preview/models.rs index 7aa6d40ca2..d5efa1232f 100644 --- a/services/svc/keyvault/src/package_preview_7_3_preview/models.rs +++ b/services/svc/keyvault/src/package_preview_7_3_preview/models.rs @@ -320,8 +320,8 @@ pub struct CertificateIssuerListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateIssuerListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateIssuerListResult { @@ -407,8 +407,8 @@ pub struct CertificateListResult { pub next_link: Option, } impl azure_core::Continuable for CertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CertificateListResult { @@ -830,8 +830,8 @@ pub struct DeletedCertificateListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedCertificateListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedCertificateListResult { @@ -890,8 +890,8 @@ pub struct DeletedKeyListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedKeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedKeyListResult { @@ -950,8 +950,8 @@ pub struct DeletedSasDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedSasDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedSasDefinitionListResult { @@ -1010,8 +1010,8 @@ pub struct DeletedSecretListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedSecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedSecretListResult { @@ -1070,8 +1070,8 @@ pub struct DeletedStorageListResult { pub next_link: Option, } impl azure_core::Continuable for DeletedStorageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DeletedStorageListResult { @@ -1732,8 +1732,8 @@ pub struct KeyListResult { pub next_link: Option, } impl azure_core::Continuable for KeyListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl KeyListResult { @@ -2243,7 +2243,7 @@ pub struct KeyVaultError { pub error: Option, } impl azure_core::Continuable for KeyVaultError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -2573,8 +2573,8 @@ pub struct RoleAssignmentListResult { pub next_link: Option, } impl azure_core::Continuable for RoleAssignmentListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleAssignmentListResult { @@ -2714,8 +2714,8 @@ pub struct RoleDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for RoleDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl RoleDefinitionListResult { @@ -3103,8 +3103,8 @@ pub struct SasDefinitionListResult { pub next_link: Option, } impl azure_core::Continuable for SasDefinitionListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SasDefinitionListResult { @@ -3320,8 +3320,8 @@ pub struct SecretListResult { pub next_link: Option, } impl azure_core::Continuable for SecretListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SecretListResult { @@ -3737,8 +3737,8 @@ pub struct StorageListResult { pub next_link: Option, } impl azure_core::Continuable for StorageListResult { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl StorageListResult { diff --git a/services/svc/keyvault/src/package_preview_7_3_preview/operations.rs b/services/svc/keyvault/src/package_preview_7_3_preview/operations.rs index a864610617..46a9d9b9b8 100644 --- a/services/svc/keyvault/src/package_preview_7_3_preview/operations.rs +++ b/services/svc/keyvault/src/package_preview_7_3_preview/operations.rs @@ -1128,9 +1128,9 @@ pub mod get_certificates { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1149,6 +1149,9 @@ pub mod get_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1385,9 +1388,9 @@ pub mod get_certificate_issuers { async move { let mut url = azure_core::Url::parse(&format!("{}/certificates/issuers", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1406,6 +1409,9 @@ pub mod get_certificate_issuers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1747,9 +1753,9 @@ pub mod get_certificate_versions { &this.certificate_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1768,6 +1774,9 @@ pub mod get_certificate_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2319,9 +2328,9 @@ pub mod get_deleted_certificates { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedcertificates", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2340,6 +2349,9 @@ pub mod get_deleted_certificates { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2816,9 +2828,9 @@ pub mod get_key_versions { async move { let mut url = azure_core::Url::parse(&format!("{}/keys/{}/versions", this.client.endpoint(), &this.key_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2837,6 +2849,9 @@ pub mod get_key_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2893,9 +2908,9 @@ pub mod get_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/keys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2914,6 +2929,9 @@ pub mod get_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3424,9 +3442,9 @@ pub mod get_deleted_keys { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedkeys", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3445,6 +3463,9 @@ pub mod get_deleted_keys { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -3957,9 +3978,9 @@ pub mod get_secrets { async move { let mut url = azure_core::Url::parse(&format!("{}/secrets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -3978,6 +3999,9 @@ pub mod get_secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4035,9 +4059,9 @@ pub mod get_secret_versions { async move { let mut url = azure_core::Url::parse(&format!("{}/secrets/{}/versions", this.client.endpoint(), &this.secret_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4056,6 +4080,9 @@ pub mod get_secret_versions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4112,9 +4139,9 @@ pub mod get_deleted_secrets { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedsecrets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4133,6 +4160,9 @@ pub mod get_deleted_secrets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4408,9 +4438,9 @@ pub mod get_storage_accounts { async move { let mut url = azure_core::Url::parse(&format!("{}/storage", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4429,6 +4459,9 @@ pub mod get_storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -4485,9 +4518,9 @@ pub mod get_deleted_storage_accounts { async move { let mut url = azure_core::Url::parse(&format!("{}/deletedstorage", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -4506,6 +4539,9 @@ pub mod get_deleted_storage_accounts { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5017,9 +5053,9 @@ pub mod get_sas_definitions { let mut url = azure_core::Url::parse(&format!("{}/storage/{}/sas", this.client.endpoint(), &this.storage_account_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5038,6 +5074,9 @@ pub mod get_sas_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5099,9 +5138,9 @@ pub mod get_deleted_sas_definitions { &this.storage_account_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5120,6 +5159,9 @@ pub mod get_deleted_sas_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5677,9 +5719,9 @@ pub mod role_definitions { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5698,6 +5740,9 @@ pub mod role_definitions { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -5951,9 +5996,9 @@ pub mod role_assignments { &this.scope ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -5972,6 +6017,9 @@ pub mod role_assignments { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/mixedreality/src/package_2021_01_01/models.rs b/services/svc/mixedreality/src/package_2021_01_01/models.rs index 446d0d2abd..1c94234c46 100644 --- a/services/svc/mixedreality/src/package_2021_01_01/models.rs +++ b/services/svc/mixedreality/src/package_2021_01_01/models.rs @@ -85,8 +85,8 @@ pub struct ConversionList { pub next_link: Option, } impl azure_core::Continuable for ConversionList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ConversionList { @@ -247,7 +247,7 @@ pub struct ErrorResponse { pub error: Error, } impl azure_core::Continuable for ErrorResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -397,8 +397,8 @@ pub struct SessionsList { pub next_link: Option, } impl azure_core::Continuable for SessionsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SessionsList { diff --git a/services/svc/mixedreality/src/package_2021_01_01/operations.rs b/services/svc/mixedreality/src/package_2021_01_01/operations.rs index ea9676c7ea..918e3ade45 100644 --- a/services/svc/mixedreality/src/package_2021_01_01/operations.rs +++ b/services/svc/mixedreality/src/package_2021_01_01/operations.rs @@ -290,9 +290,9 @@ pub mod remote_rendering { let mut url = azure_core::Url::parse(&format!("{}/accounts/{}/conversions", this.client.endpoint(), &this.account_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -311,6 +311,9 @@ pub mod remote_rendering { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -571,9 +574,9 @@ pub mod remote_rendering { let mut url = azure_core::Url::parse(&format!("{}/accounts/{}/sessions", this.client.endpoint(), &this.account_id))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -592,6 +595,9 @@ pub mod remote_rendering { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/purview/src/package_2021_07_01_preview/models.rs b/services/svc/purview/src/package_2021_07_01_preview/models.rs index 197eaafa3f..444f69c08c 100644 --- a/services/svc/purview/src/package_2021_07_01_preview/models.rs +++ b/services/svc/purview/src/package_2021_07_01_preview/models.rs @@ -230,7 +230,7 @@ pub struct ErrorResponseModel { pub error: ErrorModel, } impl azure_core::Continuable for ErrorResponseModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -266,8 +266,8 @@ pub struct MetadataPolicyList { pub next_link: Option, } impl azure_core::Continuable for MetadataPolicyList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataPolicyList { @@ -325,8 +325,8 @@ pub struct MetadataRoleList { pub next_link: Option, } impl azure_core::Continuable for MetadataRoleList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl MetadataRoleList { diff --git a/services/svc/purview/src/package_2021_07_01_preview/operations.rs b/services/svc/purview/src/package_2021_07_01_preview/operations.rs index 6f280ed469..d80088b5f5 100644 --- a/services/svc/purview/src/package_2021_07_01_preview/operations.rs +++ b/services/svc/purview/src/package_2021_07_01_preview/operations.rs @@ -103,9 +103,9 @@ pub mod metadata_roles { async move { let mut url = azure_core::Url::parse(&format!("{}/metadataRoles", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -124,6 +124,9 @@ pub mod metadata_roles { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -202,9 +205,9 @@ pub mod metadata_policy { async move { let mut url = azure_core::Url::parse(&format!("{}/metadataPolicies", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -223,6 +226,9 @@ pub mod metadata_policy { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/purview/src/package_2021_10_01_preview/models.rs b/services/svc/purview/src/package_2021_10_01_preview/models.rs index a1ba7db833..ceb67f2010 100644 --- a/services/svc/purview/src/package_2021_10_01_preview/models.rs +++ b/services/svc/purview/src/package_2021_10_01_preview/models.rs @@ -1027,8 +1027,8 @@ pub struct AzureKeyVaultList { pub count: Option, } impl azure_core::Continuable for AzureKeyVaultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureKeyVaultList { @@ -2243,8 +2243,8 @@ pub struct ClassificationRuleList { pub count: Option, } impl azure_core::Continuable for ClassificationRuleList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClassificationRuleList { @@ -2773,8 +2773,8 @@ pub struct DataSourceList { pub count: Option, } impl azure_core::Continuable for DataSourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSourceList { @@ -2834,7 +2834,7 @@ pub struct ErrorResponseModel { pub error: Option, } impl azure_core::Continuable for ErrorResponseModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -3894,8 +3894,8 @@ pub struct ScanHistoryList { pub count: Option, } impl azure_core::Continuable for ScanHistoryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScanHistoryList { @@ -3913,8 +3913,8 @@ pub struct ScanList { pub count: Option, } impl azure_core::Continuable for ScanList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScanList { @@ -4303,8 +4303,8 @@ pub struct ScanRulesetList { pub count: Option, } impl azure_core::Continuable for ScanRulesetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScanRulesetList { @@ -4631,8 +4631,8 @@ pub struct SystemScanRulesetList { pub count: Option, } impl azure_core::Continuable for SystemScanRulesetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SystemScanRulesetList { diff --git a/services/svc/purview/src/package_2021_10_01_preview/operations.rs b/services/svc/purview/src/package_2021_10_01_preview/operations.rs index a4ebaf2aec..dd5d97a6fd 100644 --- a/services/svc/purview/src/package_2021_10_01_preview/operations.rs +++ b/services/svc/purview/src/package_2021_10_01_preview/operations.rs @@ -282,9 +282,9 @@ pub mod key_vault_connections { async move { let mut url = azure_core::Url::parse(&format!("{}/azureKeyVaults", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -303,6 +303,9 @@ pub mod key_vault_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -569,9 +572,9 @@ pub mod classification_rules { async move { let mut url = azure_core::Url::parse(&format!("{}/classificationrules", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -590,6 +593,9 @@ pub mod classification_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -643,9 +649,9 @@ pub mod classification_rules { &this.classification_rule_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -664,6 +670,9 @@ pub mod classification_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -950,9 +959,9 @@ pub mod data_sources { async move { let mut url = azure_core::Url::parse(&format!("{}/datasources", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -971,6 +980,9 @@ pub mod data_sources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1366,9 +1378,9 @@ pub mod scans { let mut url = azure_core::Url::parse(&format!("{}/datasources/{}/scans", this.client.endpoint(), &this.data_source_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1387,6 +1399,9 @@ pub mod scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1595,9 +1610,9 @@ pub mod scan_result { &this.scan_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1616,6 +1631,9 @@ pub mod scan_result { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1848,9 +1866,9 @@ pub mod scan_rulesets { async move { let mut url = azure_core::Url::parse(&format!("{}/scanrulesets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1869,6 +1887,9 @@ pub mod scan_rulesets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1951,9 +1972,9 @@ pub mod system_scan_rulesets { async move { let mut url = azure_core::Url::parse(&format!("{}/systemScanRulesets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1972,6 +1993,9 @@ pub mod system_scan_rulesets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2177,9 +2201,9 @@ pub mod system_scan_rulesets { async move { let mut url = azure_core::Url::parse(&format!("{}/systemScanRulesets/versions", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2198,6 +2222,9 @@ pub mod system_scan_rulesets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/purview/src/package_2022_02_01_preview/models.rs b/services/svc/purview/src/package_2022_02_01_preview/models.rs index b97cca965b..748415f557 100644 --- a/services/svc/purview/src/package_2022_02_01_preview/models.rs +++ b/services/svc/purview/src/package_2022_02_01_preview/models.rs @@ -1055,8 +1055,8 @@ pub struct AzureKeyVaultList { pub count: Option, } impl azure_core::Continuable for AzureKeyVaultList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl AzureKeyVaultList { @@ -2287,8 +2287,8 @@ pub struct ClassificationRuleList { pub count: Option, } impl azure_core::Continuable for ClassificationRuleList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ClassificationRuleList { @@ -2472,8 +2472,8 @@ pub struct CredentialList { pub count: Option, } impl azure_core::Continuable for CredentialList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl CredentialList { @@ -2938,8 +2938,8 @@ pub struct DataSourceList { pub count: Option, } impl azure_core::Continuable for DataSourceList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl DataSourceList { @@ -3027,7 +3027,7 @@ pub struct ErrorResponseModel { pub error: Option, } impl azure_core::Continuable for ErrorResponseModel { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -4249,8 +4249,8 @@ pub struct ScanHistoryList { pub count: Option, } impl azure_core::Continuable for ScanHistoryList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScanHistoryList { @@ -4268,8 +4268,8 @@ pub struct ScanList { pub count: Option, } impl azure_core::Continuable for ScanList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScanList { @@ -4658,8 +4658,8 @@ pub struct ScanRulesetList { pub count: Option, } impl azure_core::Continuable for ScanRulesetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ScanRulesetList { @@ -5042,8 +5042,8 @@ pub struct SystemScanRulesetList { pub count: Option, } impl azure_core::Continuable for SystemScanRulesetList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl SystemScanRulesetList { diff --git a/services/svc/purview/src/package_2022_02_01_preview/operations.rs b/services/svc/purview/src/package_2022_02_01_preview/operations.rs index 11d972ddef..cd18653081 100644 --- a/services/svc/purview/src/package_2022_02_01_preview/operations.rs +++ b/services/svc/purview/src/package_2022_02_01_preview/operations.rs @@ -285,9 +285,9 @@ pub mod key_vault_connections { async move { let mut url = azure_core::Url::parse(&format!("{}/azureKeyVaults", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -306,6 +306,9 @@ pub mod key_vault_connections { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -572,9 +575,9 @@ pub mod classification_rules { async move { let mut url = azure_core::Url::parse(&format!("{}/classificationrules", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -593,6 +596,9 @@ pub mod classification_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -646,9 +652,9 @@ pub mod classification_rules { &this.classification_rule_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -667,6 +673,9 @@ pub mod classification_rules { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -949,9 +958,9 @@ pub mod credential { async move { let mut url = azure_core::Url::parse(&format!("{}/credentials", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -970,6 +979,9 @@ pub mod credential { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1202,9 +1214,9 @@ pub mod data_sources { async move { let mut url = azure_core::Url::parse(&format!("{}/datasources", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1223,6 +1235,9 @@ pub mod data_sources { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1618,9 +1633,9 @@ pub mod scans { let mut url = azure_core::Url::parse(&format!("{}/datasources/{}/scans", this.client.endpoint(), &this.data_source_name))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1639,6 +1654,9 @@ pub mod scans { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -1847,9 +1865,9 @@ pub mod scan_result { &this.scan_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -1868,6 +1886,9 @@ pub mod scan_result { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2100,9 +2121,9 @@ pub mod scan_rulesets { async move { let mut url = azure_core::Url::parse(&format!("{}/scanrulesets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2121,6 +2142,9 @@ pub mod scan_rulesets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2203,9 +2227,9 @@ pub mod system_scan_rulesets { async move { let mut url = azure_core::Url::parse(&format!("{}/systemScanRulesets", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2224,6 +2248,9 @@ pub mod system_scan_rulesets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -2429,9 +2456,9 @@ pub mod system_scan_rulesets { async move { let mut url = azure_core::Url::parse(&format!("{}/systemScanRulesets/versions", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -2450,6 +2477,9 @@ pub mod system_scan_rulesets { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/quantum/src/package_2019_11_04_preview/models.rs b/services/svc/quantum/src/package_2019_11_04_preview/models.rs index 34d1356cea..e2439ebd1a 100644 --- a/services/svc/quantum/src/package_2019_11_04_preview/models.rs +++ b/services/svc/quantum/src/package_2019_11_04_preview/models.rs @@ -173,8 +173,8 @@ pub struct JobDetailsList { pub next_link: Option, } impl azure_core::Continuable for JobDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobDetailsList { @@ -251,8 +251,8 @@ pub struct ProviderStatusList { pub next_link: Option, } impl azure_core::Continuable for ProviderStatusList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderStatusList { @@ -377,8 +377,8 @@ pub struct QuotaList { pub next_link: Option, } impl azure_core::Continuable for QuotaList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaList { @@ -469,7 +469,7 @@ pub struct RestError { pub error: Option, } impl azure_core::Continuable for RestError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/quantum/src/package_2019_11_04_preview/operations.rs b/services/svc/quantum/src/package_2019_11_04_preview/operations.rs index 56d5709c38..7409b3982c 100644 --- a/services/svc/quantum/src/package_2019_11_04_preview/operations.rs +++ b/services/svc/quantum/src/package_2019_11_04_preview/operations.rs @@ -175,9 +175,9 @@ pub mod jobs { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -189,6 +189,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -422,9 +425,9 @@ pub mod providers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -436,6 +439,9 @@ pub mod providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -581,9 +587,9 @@ pub mod quotas { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -595,6 +601,9 @@ pub mod quotas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/quantum/src/package_2021_05_06_preview/models.rs b/services/svc/quantum/src/package_2021_05_06_preview/models.rs index 50e4e8d83a..6eab3f6dc1 100644 --- a/services/svc/quantum/src/package_2021_05_06_preview/models.rs +++ b/services/svc/quantum/src/package_2021_05_06_preview/models.rs @@ -177,8 +177,8 @@ pub struct JobDetailsList { pub next_link: Option, } impl azure_core::Continuable for JobDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobDetailsList { @@ -334,8 +334,8 @@ pub struct ProviderStatusList { pub next_link: Option, } impl azure_core::Continuable for ProviderStatusList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderStatusList { @@ -460,8 +460,8 @@ pub struct QuotaList { pub next_link: Option, } impl azure_core::Continuable for QuotaList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaList { @@ -477,7 +477,7 @@ pub struct RestError { pub error: Option, } impl azure_core::Continuable for RestError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/quantum/src/package_2021_05_06_preview/operations.rs b/services/svc/quantum/src/package_2021_05_06_preview/operations.rs index 02c4fed9f3..f220bfdf70 100644 --- a/services/svc/quantum/src/package_2021_05_06_preview/operations.rs +++ b/services/svc/quantum/src/package_2021_05_06_preview/operations.rs @@ -192,9 +192,9 @@ pub mod jobs { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -206,6 +206,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -497,9 +500,9 @@ pub mod providers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -511,6 +514,9 @@ pub mod providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -656,9 +662,9 @@ pub mod quotas { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -670,6 +676,9 @@ pub mod quotas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/quantum/src/package_2021_11_01_preview/models.rs b/services/svc/quantum/src/package_2021_11_01_preview/models.rs index a7037e2ab0..ded868ad4e 100644 --- a/services/svc/quantum/src/package_2021_11_01_preview/models.rs +++ b/services/svc/quantum/src/package_2021_11_01_preview/models.rs @@ -199,8 +199,8 @@ pub struct JobDetailsList { pub next_link: Option, } impl azure_core::Continuable for JobDetailsList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl JobDetailsList { @@ -356,8 +356,8 @@ pub struct ProviderStatusList { pub next_link: Option, } impl azure_core::Continuable for ProviderStatusList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ProviderStatusList { @@ -482,8 +482,8 @@ pub struct QuotaList { pub next_link: Option, } impl azure_core::Continuable for QuotaList { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl QuotaList { @@ -499,7 +499,7 @@ pub struct RestError { pub error: Option, } impl azure_core::Continuable for RestError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/quantum/src/package_2021_11_01_preview/operations.rs b/services/svc/quantum/src/package_2021_11_01_preview/operations.rs index 02c4fed9f3..f220bfdf70 100644 --- a/services/svc/quantum/src/package_2021_11_01_preview/operations.rs +++ b/services/svc/quantum/src/package_2021_11_01_preview/operations.rs @@ -192,9 +192,9 @@ pub mod jobs { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -206,6 +206,9 @@ pub mod jobs { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -497,9 +500,9 @@ pub mod providers { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -511,6 +514,9 @@ pub mod providers { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); @@ -656,9 +662,9 @@ pub mod quotas { &this.workspace_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -670,6 +676,9 @@ pub mod quotas { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/queuestorage/src/package_2018_03/models.rs b/services/svc/queuestorage/src/package_2018_03/models.rs index 8f02f35a72..7599fc5c13 100644 --- a/services/svc/queuestorage/src/package_2018_03/models.rs +++ b/services/svc/queuestorage/src/package_2018_03/models.rs @@ -372,11 +372,11 @@ pub struct ListQueuesSegmentResponse { pub next_marker: String, } impl azure_core::Continuable for ListQueuesSegmentResponse { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { if self.next_marker.is_empty() { None } else { - Some(self.next_marker.clone()) + Some(azure_core::prelude::Continuation::from(self.next_marker.clone())) } } } @@ -549,7 +549,7 @@ pub struct StorageError { pub message: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/queuestorage/src/package_2018_03/operations.rs b/services/svc/queuestorage/src/package_2018_03/operations.rs index 025e0a4195..2f9ffaf153 100644 --- a/services/svc/queuestorage/src/package_2018_03/operations.rs +++ b/services/svc/queuestorage/src/package_2018_03/operations.rs @@ -350,9 +350,9 @@ pub mod service { async move { let mut url = azure_core::Url::parse(&format!("{}/?comp=list", this.client.endpoint(),))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -364,6 +364,9 @@ pub mod service { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/storagedatalake/src/package_2020_06/models.rs b/services/svc/storagedatalake/src/package_2020_06/models.rs index a888d53079..0b1075733b 100644 --- a/services/svc/storagedatalake/src/package_2020_06/models.rs +++ b/services/svc/storagedatalake/src/package_2020_06/models.rs @@ -197,7 +197,7 @@ pub struct FileSystemList { pub filesystems: Vec, } impl azure_core::Continuable for FileSystemList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -227,8 +227,8 @@ pub struct ListBlobsHierarchySegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsHierarchySegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsHierarchySegmentResponse { @@ -279,7 +279,7 @@ pub struct PathList { pub paths: Vec, } impl azure_core::Continuable for PathList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -311,7 +311,7 @@ pub struct StorageError { pub error: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/storagedatalake/src/package_2020_06/operations.rs b/services/svc/storagedatalake/src/package_2020_06/operations.rs index 1b0106118d..8a8faec792 100644 --- a/services/svc/storagedatalake/src/package_2020_06/operations.rs +++ b/services/svc/storagedatalake/src/package_2020_06/operations.rs @@ -733,9 +733,9 @@ pub mod file_system { &this.filesystem ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -747,6 +747,9 @@ pub mod file_system { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/storagedatalake/src/package_2020_10/models.rs b/services/svc/storagedatalake/src/package_2020_10/models.rs index eab99e8383..aebe75e7ac 100644 --- a/services/svc/storagedatalake/src/package_2020_10/models.rs +++ b/services/svc/storagedatalake/src/package_2020_10/models.rs @@ -197,7 +197,7 @@ pub struct FileSystemList { pub filesystems: Vec, } impl azure_core::Continuable for FileSystemList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -227,8 +227,8 @@ pub struct ListBlobsHierarchySegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsHierarchySegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsHierarchySegmentResponse { @@ -282,7 +282,7 @@ pub struct PathList { pub paths: Vec, } impl azure_core::Continuable for PathList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -314,7 +314,7 @@ pub struct StorageError { pub error: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/storagedatalake/src/package_2020_10/operations.rs b/services/svc/storagedatalake/src/package_2020_10/operations.rs index 7975cf4762..bcd0bb0fcf 100644 --- a/services/svc/storagedatalake/src/package_2020_10/operations.rs +++ b/services/svc/storagedatalake/src/package_2020_10/operations.rs @@ -733,9 +733,9 @@ pub mod file_system { &this.filesystem ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -747,6 +747,9 @@ pub mod file_system { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/storagedatalake/src/package_2021_04/models.rs b/services/svc/storagedatalake/src/package_2021_04/models.rs index eab99e8383..aebe75e7ac 100644 --- a/services/svc/storagedatalake/src/package_2021_04/models.rs +++ b/services/svc/storagedatalake/src/package_2021_04/models.rs @@ -197,7 +197,7 @@ pub struct FileSystemList { pub filesystems: Vec, } impl azure_core::Continuable for FileSystemList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -227,8 +227,8 @@ pub struct ListBlobsHierarchySegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsHierarchySegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsHierarchySegmentResponse { @@ -282,7 +282,7 @@ pub struct PathList { pub paths: Vec, } impl azure_core::Continuable for PathList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -314,7 +314,7 @@ pub struct StorageError { pub error: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/storagedatalake/src/package_2021_04/operations.rs b/services/svc/storagedatalake/src/package_2021_04/operations.rs index 7975cf4762..bcd0bb0fcf 100644 --- a/services/svc/storagedatalake/src/package_2021_04/operations.rs +++ b/services/svc/storagedatalake/src/package_2021_04/operations.rs @@ -733,9 +733,9 @@ pub mod file_system { &this.filesystem ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -747,6 +747,9 @@ pub mod file_system { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/storagedatalake/src/package_2021_06/models.rs b/services/svc/storagedatalake/src/package_2021_06/models.rs index eab99e8383..aebe75e7ac 100644 --- a/services/svc/storagedatalake/src/package_2021_06/models.rs +++ b/services/svc/storagedatalake/src/package_2021_06/models.rs @@ -197,7 +197,7 @@ pub struct FileSystemList { pub filesystems: Vec, } impl azure_core::Continuable for FileSystemList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -227,8 +227,8 @@ pub struct ListBlobsHierarchySegmentResponse { pub next_marker: Option, } impl azure_core::Continuable for ListBlobsHierarchySegmentResponse { - fn continuation(&self) -> Option { - self.next_marker.clone() + fn continuation(&self) -> Option { + self.next_marker.clone().map(azure_core::prelude::Continuation::from) } } impl ListBlobsHierarchySegmentResponse { @@ -282,7 +282,7 @@ pub struct PathList { pub paths: Vec, } impl azure_core::Continuable for PathList { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } @@ -314,7 +314,7 @@ pub struct StorageError { pub error: Option, } impl azure_core::Continuable for StorageError { - fn continuation(&self) -> Option { + fn continuation(&self) -> Option { None } } diff --git a/services/svc/storagedatalake/src/package_2021_06/operations.rs b/services/svc/storagedatalake/src/package_2021_06/operations.rs index 7975cf4762..bcd0bb0fcf 100644 --- a/services/svc/storagedatalake/src/package_2021_06/operations.rs +++ b/services/svc/storagedatalake/src/package_2021_06/operations.rs @@ -733,9 +733,9 @@ pub mod file_system { &this.filesystem ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -747,6 +747,9 @@ pub mod file_system { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/synapse/src/package_vnet_2019_06_01_preview/models.rs b/services/svc/synapse/src/package_vnet_2019_06_01_preview/models.rs index 8129b9172c..d8e6e5028c 100644 --- a/services/svc/synapse/src/package_vnet_2019_06_01_preview/models.rs +++ b/services/svc/synapse/src/package_vnet_2019_06_01_preview/models.rs @@ -54,8 +54,8 @@ pub struct ManagedPrivateEndpointListResponse { pub next_link: Option, } impl azure_core::Continuable for ManagedPrivateEndpointListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedPrivateEndpointListResponse { diff --git a/services/svc/synapse/src/package_vnet_2019_06_01_preview/operations.rs b/services/svc/synapse/src/package_vnet_2019_06_01_preview/operations.rs index 62d8862e6a..e0bb8f3ed6 100644 --- a/services/svc/synapse/src/package_vnet_2019_06_01_preview/operations.rs +++ b/services/svc/synapse/src/package_vnet_2019_06_01_preview/operations.rs @@ -296,9 +296,9 @@ pub mod managed_private_endpoints { &this.managed_virtual_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -317,6 +317,9 @@ pub mod managed_private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/synapse/src/package_vnet_2020_12_01/models.rs b/services/svc/synapse/src/package_vnet_2020_12_01/models.rs index f925451560..3a9b433332 100644 --- a/services/svc/synapse/src/package_vnet_2020_12_01/models.rs +++ b/services/svc/synapse/src/package_vnet_2020_12_01/models.rs @@ -54,8 +54,8 @@ pub struct ManagedPrivateEndpointListResponse { pub next_link: Option, } impl azure_core::Continuable for ManagedPrivateEndpointListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedPrivateEndpointListResponse { diff --git a/services/svc/synapse/src/package_vnet_2020_12_01/operations.rs b/services/svc/synapse/src/package_vnet_2020_12_01/operations.rs index c64d97dfad..a126adf740 100644 --- a/services/svc/synapse/src/package_vnet_2020_12_01/operations.rs +++ b/services/svc/synapse/src/package_vnet_2020_12_01/operations.rs @@ -296,9 +296,9 @@ pub mod managed_private_endpoints { &this.managed_virtual_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -317,6 +317,9 @@ pub mod managed_private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); diff --git a/services/svc/synapse/src/package_vnet_2021_06_01_preview/models.rs b/services/svc/synapse/src/package_vnet_2021_06_01_preview/models.rs index f925451560..3a9b433332 100644 --- a/services/svc/synapse/src/package_vnet_2021_06_01_preview/models.rs +++ b/services/svc/synapse/src/package_vnet_2021_06_01_preview/models.rs @@ -54,8 +54,8 @@ pub struct ManagedPrivateEndpointListResponse { pub next_link: Option, } impl azure_core::Continuable for ManagedPrivateEndpointListResponse { - fn continuation(&self) -> Option { - self.next_link.clone() + fn continuation(&self) -> Option { + self.next_link.clone().map(azure_core::prelude::Continuation::from) } } impl ManagedPrivateEndpointListResponse { diff --git a/services/svc/synapse/src/package_vnet_2021_06_01_preview/operations.rs b/services/svc/synapse/src/package_vnet_2021_06_01_preview/operations.rs index 2b37a8d74c..09df937fc0 100644 --- a/services/svc/synapse/src/package_vnet_2021_06_01_preview/operations.rs +++ b/services/svc/synapse/src/package_vnet_2021_06_01_preview/operations.rs @@ -296,9 +296,9 @@ pub mod managed_private_endpoints { &this.managed_virtual_network_name ))?; let rsp = match continuation { - Some(token) => { + Some(azure_core::prelude::Continuation::String(value)) => { url.set_path(""); - url = url.join(&token.into_raw())?; + url = url.join(&value)?; let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential(); let token_response = credential.get_token(&this.client.scopes().join(" ")).await?; @@ -317,6 +317,9 @@ pub mod managed_private_endpoints { req.set_body(req_body); this.client.send(&mut req).await? } + Some(azure_core::prelude::Continuation::Range(_)) => { + panic!("unexpected continuation type"); + } None => { let mut req = azure_core::Request::new(url, http::Method::GET); let credential = this.client.token_credential();